mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-11 21:12:38 +02:00
get rid of mpi4py import
This commit is contained in:
parent
0d3f5a3e74
commit
0dd52981d0
1 changed files with 5 additions and 8 deletions
|
|
@ -10,15 +10,12 @@ gpu_device = None
|
|||
gpu_context = None
|
||||
MPI_enabled = False
|
||||
|
||||
try:
|
||||
from mpi4py import MPI
|
||||
MPI_enabled = True
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
|
||||
def initGPU():
|
||||
try:
|
||||
from mpi4py import MPI
|
||||
MPI_enabled = True
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if MPI_enabled and MPI.COMM_WORLD.size>1:
|
||||
from .parallel import get_id_within_node
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue