Fix MPI-CUDA bug

This commit is contained in:
Adam J. Stewart
2016-03-30 11:46:58 -05:00
parent 4ddba5f7ed
commit 9519f3d988
2 changed files with 15 additions and 9 deletions

View File

@@ -49,10 +49,14 @@ def install(self, spec, prefix):
cmake_args.append('-DENABLE_CUDA=OFF')
# CUDA-aware MPI library support
if '+cuda' in spec and '+mpi' in spec:
cmake_args.append('-DENABLE_MPI_CUDA=ON')
else:
cmake_args.append('-DENABLE_MPI_CUDA=OFF')
#if '+cuda' in spec and '+mpi' in spec:
# cmake_args.append('-DENABLE_MPI_CUDA=ON')
#else:
# cmake_args.append('-DENABLE_MPI_CUDA=OFF')
# There may be a bug in the MPI-CUDA code. See:
# https://groups.google.com/forum/#!msg/hoomd-users/2griTESmc5I/E69s_M5fDwAJ
cmake_args.append('-DENABLE_MPI_CUDA=OFF')
# Documentation
if '+doc' in spec:
@@ -64,4 +68,5 @@ def install(self, spec, prefix):
cmake('.', *cmake_args)
make()
make("test")
make("install")