mila-iqia / platoon

Multi-GPU mini-framework for Theano
MIT License
195 stars 41 forks source link

AttributeError: 'Worker' object has no attribute '_global_rank' #85

Open christopher5106 opened 7 years ago

christopher5106 commented 7 years ago

is the lstm example working ? thanks

christopher5106 commented 7 years ago

if I remove this line i get :

'Worker' object has no attribute '_multinode'

cshanbo commented 7 years ago

I got this error, too. Can anybody help? I installed every dependency that platoon needs. But still got this error. I did some debug step by step. I found that the error might be caused by

self._local_id = gpucoll.GpuCommCliqueId(context=self.gpuctx)

in channel/worker.py. I'm not familiar with the gpuarray class and not sure about how GpuCommCliqueId works. But this expression seems to be crushed. So the following initialization for worker is not complete.

update

I got the idea from another issue, and the error was solved. We should install nccl first, then install libgpuarray and pygpu. (Remember to set your LD_LIBRARY_PATH).