Closed anusurendra closed 4 years ago
Hi @anusurendra . Could you paste the output of the commands below:
git clone https://github.com/PolyChord/PolyChordLite.git
cd PolyChordLite
make pypolychord
@williamjameshandley ,
Here is the output from the those commands:
[root@aims apps]# git clone https://github.com/PolyChord/PolyChordLite.git
Cloning into 'PolyChordLite'...
remote: Enumerating objects: 51, done.
remote: Counting objects: 100% (51/51), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 4918 (delta 19), reused 32 (delta 13), pack-reused 4867
Receiving objects: 100% (4918/4918), 1.36 MiB | 0 bytes/s, done.
Resolving deltas: 100% (3596/3596), done.
[root@aims apps]# cd PolyChordLite
[root@aims PolyChordLite]# make pypolychord
make -C /apps/PolyChordLite/src/polychord /apps/PolyChordLite/lib/libchord.so
make[1]: Entering directory `/apps/PolyChordLite/src/polychord'
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c nelder_mead.f90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c utils.F90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c abort.F90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c settings.f90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c calculate.f90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c mpi_utils.F90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c random_utils.F90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c chordal_sampling.f90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c array_utils.f90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c run_time_info.f90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c params.f90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c priors.f90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c read_write.F90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c maximiser.F90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c ini.f90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c feedback.f90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c generate.F90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c clustering.f90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c nested_sampling.F90
mpif90 -ffree-line-length-none -cpp -fPIC -fno-stack-arrays -Ofast -DMPI -c interfaces.F90
mpicxx -std=c++11 -fPIC -Ofast -DUSE_MPI -c c_interface.cpp
mpif90 -shared maximiser.o interfaces.o nelder_mead.o priors.o read_write.o ini.o mpi_utils.o params.o chordal_sampling.o calculate.o settings.o clustering.o abort.o random_utils.o run_time_info.o array_utils.o nested_sampling.o utils.o generate.o feedback.o c_interface.o -o /apps/PolyChordLite/lib/libchord.so -lstdc++
make[1]: Leaving directory `/apps/PolyChordLite/src/polychord'
=======================================================================================
now run:
CC=mpicc CXX=mpicxx python setup.py install --user
[root@aims PolyChordLite]#
Are you certain that the wrapper for the c compiler on your system is called mpicc? if you run which mpicc
does that give you any output?
@williamjameshandley ,
Thanks for helping out with this. Yes, mpicc is my c complier. Here is the output from the which mpicc
:
[root@aims PolyChordLite]# which mpicc
/apps/openmpi/4.0.1/bin/mpicc
This does seem to be an issue that's occurred on centos before, although irritatingly this thread did not seem to resolve it.
What happens if you use the full path, e.g:
CC=/apps/openmpi/4.0.1/bin/mpicc CXX=/apps/openmpi/4.0.1/bin/mpicxx python setup.py install
Hi, I am install PolyChordLite onto a Centos7 system. However, I am getting the following error:
The mpicc, ie. OpenMPI, is in the PATH as you can see:
Any help will be appreciated.