mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-11 15:15:15 +02:00
fix the problem starting multiple process with limited number of GPUs
This commit is contained in:
parent
a7d0438731
commit
872e97af84
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue