HI everyone,

I am using a linux fedora. I downloaded/installed
openmpi-1.7.3-1.fc20(64-bit) and openmpi-devel-1.7.3-1.fc20(64-bit). As
well as pypar-openmpi-2.1.5_108-3.fc20(64-bit) and
python3-mpi4py-openmpi-1.3.1-1.fc20(64-bit). The problem I am having is
building mpi4py using the mpicc wrapper. I have installed and untarred
mpi4py from https://pypi.python.org/pypi/mpi4py#downloads. I went to
compile it and received this error. I typed in
python setup.py build --mpicc=/usr/lib64/mpich/bin/mpicc
This was the output
running build
running build_src
running build_py
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler:    /usr/lib64/mpich/bin/mpicc
running build_ext
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler:    /usr/lib64/mpich/bin/mpicc
checking for MPI compile and link ...
/usr/lib64/mpich/bin/mpicc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c _configtest.c
-o _configtest.o
_configtest.c:2:17: fatal error: mpi.h: No such file or directory
 #include <mpi.h>
                 ^
compilation terminated.
failure.
removing: _configtest.c _configtest.o
error: Cannot compile MPI programs. Check your configuration!!!

I found the file mpi.h and decided to directly export it to the path.
export
path=$path:/usr/lib64/python2.7/site-packages/mpich/mpi4py/include/mpi4py/mpi4py.h
But this did not resolve the include mpi.h dilemma. I still recieve the
same error when attempting to build mpi4py using mpicc wrapper.

Thank you in advance
-Sam
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/users

Reply via email to