get rid of mpi4py import

This commit is contained in:
Zhenwen Dai 2016-02-09 16:48:23 +00:00
parent 0d3f5a3e74
commit 0dd52981d0

View file

@ -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