Sam,
at first you mentionned Open MPI 1.7.3.
though this is now a legacy version, you posted to the right place.
then you
# python setup.py build --mpicc=/usr/lib64/mpich/bin/mpicc
this is mpich, which is a very reputable MPI implementation, but not
Open MPI.
so i do invite you to use Open MPI mpicc, and try again.
Cheers,
Gilles
PS
with Open MPI, you can
mpirun -showme ...
in order to display how the compiler (e.g. gcc) is invoked
with mpich, that would be (there might be a better option i am unaware of)
mpirun -v ...
if mpich mpicc wrapper is not broken, it should include a path to mpi.h
(e.g. -I/usr/lib64/mpich/include)
and unless a package is missing (mpich-devel ?), that file should exist
you cannot use Open MPI mpi.h with mpich, nor the other way around, and
you should not copy this file to an other place
(that should not be needed at all)
On 8/31/2016 4:22 AM, Mahdi, Sam wrote:
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
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/users