soumith / imagenet-multiGPU.torch

an imagenet example in torch.
BSD 2-Clause "Simplified" License
401 stars 158 forks source link

mattorch.load with multi threading. #45

Open skrealworld opened 8 years ago

skrealworld commented 8 years ago

Hi, I am using mattorch.load to read ".mat" data files saved using "-v7.3" in matlab. It is working fine with "-nDonkeys 0 or 1". However when I run it with "-nDonkeys 2 or more " it gives segmentation fault (core dump) and sometimes it throws bus error (core dump). Thank you in advance.

soumith commented 8 years ago

the matlab C lib is probably not thread-safe or reentrant, you'll have to check that.

skrealworld commented 8 years ago

How do I check this? I am using this library. https://github.com/clementfarabet/lua---mattorch/blob/master/mattorch.c Is there any way to verify, if this supports multi-threading. Thanks