fix the problem starting multiple process with limited number of GPUs

This commit is contained in:
Zhenwen Dai 2014-07-03 16:31:22 +01:00
parent a7d0438731
commit 872e97af84

View file

@ -24,7 +24,7 @@ try:
pycuda.driver.init()
if gpuid>=pycuda.driver.Device.count():
print '['+MPI.Get_processor_name()+'] more processes than the GPU numbers!'
MPI.COMM_WORLD.Abort()
#MPI.COMM_WORLD.Abort()
raise
gpu_device = pycuda.driver.Device(gpuid)
gpu_context = gpu_device.make_context()