Skip to content

Commit

Permalink
cythonization: make MPI include and lib path coming from LD_LIBRARY_P…
Browse files Browse the repository at this point in the history
…ATH env variable in setup.py
  • Loading branch information
marcocisternino committed Mar 1, 2019
1 parent 6de1c76 commit 84bd749
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python-wrapper/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ def def_ext_modules(self):
include_paths.append(self.mpi_include_path)
os.environ["CXX"] = "mpic++"
os.environ["CC"] = "mpicc"
mpi_lib = "/usr/local/openmpi-1.10.5_intel/lib/libmpi.so"
mpi_lib = "/usr/lib64/openmpi-1.10/lib/libmpi.so"
mpi_lib = re.sub("/include/","/lib/",self.mpi_include_path) + "libmpi.so"

_extra_compile_args = ["-std=c++11",
"-g" ,
Expand Down

0 comments on commit 84bd749

Please sign in to comment.