mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-12 05:22: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
|
gpu_context = None
|
||||||
MPI_enabled = False
|
MPI_enabled = False
|
||||||
|
|
||||||
|
def initGPU():
|
||||||
try:
|
try:
|
||||||
from mpi4py import MPI
|
from mpi4py import MPI
|
||||||
MPI_enabled = True
|
MPI_enabled = True
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def initGPU():
|
|
||||||
try:
|
try:
|
||||||
if MPI_enabled and MPI.COMM_WORLD.size>1:
|
if MPI_enabled and MPI.COMM_WORLD.size>1:
|
||||||
from .parallel import get_id_within_node
|
from .parallel import get_id_within_node
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue