fix the SSGPLVM with MPI

This commit is contained in:
Zhenwen Dai 2014-06-25 13:57:25 +01:00
parent 08ed72b2f2
commit cf33808673
7 changed files with 28 additions and 30 deletions

View file

@ -13,4 +13,10 @@ try:
cublas_handle = cublas.cublasCreate()
initSuccess = True
except:
initSuccess = False
initSuccess = False
def initGPU(gpuid=None):
if gpuid==None:
return pycuda.tools.make_default_context()
else:
return pycuda.driver.Device(gpuid).make_context()