cudaDeviceReset() in Torch7

101 views
Skip to first unread message

Bálint Tóth

unread,
Aug 17, 2015, 4:14:10 AM8/17/15
to torch7

Dear All,

Sometimes I got "Segmentation fault (core dump)" error message while training (with Cuda 7.0). If I reboot the machine everything works fine.
I don't know if this is caused by some unfreed GPU memory? Or garbagecollect does free GPU memory as well?

Is there a way to call cudaDeviceReset() via Torch7 / cutorch?

Any hints are highly appreciated!

Best regards,
Balint Toth

alban desmaison

unread,
Aug 17, 2015, 6:07:28 AM8/17/15
to torch7
Hello,

There used to be a binding to this function but it has been removed due to unexpected behaviors. See https://github.com/torch/cutorch/issues/129 for details.

A call to collectgarbage does free unused memory on GPU.

Without more informations, it is hard to say what's the cause for this segfault. Maybe Soumith has seen this before?
Reply all
Reply to author
Forward
0 new messages