Issues with compiling mpi4py and Python 3.10 for IntelMPI

2121 views
Skip to first unread message

Michael Thomadakis

unread,
Oct 11, 2021, 12:53:35 PM10/11/21
to mpi...@googlegroups.com
Hello, 

I am trying to build mpi4py with python 3.10 and IntelMPI 2021.02 

It is failing as follows (mpi4py is not yet installed in that env). See below. Any suggestions will be greatly appreciated

Thank you

$ pip install mpi4py --no-cache-dir
Collecting mpi4py
  Downloading mpi4py-3.1.1.tar.gz (2.4 MB)
     |████████████████████████████████| 2.4 MB 1.7 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: mpi4py
  Building wheel for mpi4py (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/U/.conda/envs/devito_intel_2021.03/bin/python /home/U/.conda/envs/devito_intel_2021.03/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp8v0eykp2
       cwd: /tmp/pip-install-ju5a_gqi/mpi4py_c525d73704954ad7aa0344c837a22619
  Complete output (165 lines):
  running bdist_wheel
  running build
  running build_src
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.10
  creating build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/__init__.py -> build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/__main__.py -> build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/bench.py -> build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/run.py -> build/lib.linux-x86_64-3.10/mpi4py
  creating build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/__init__.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/__main__.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/_base.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/_core.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/_lib.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/aplus.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/pool.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/server.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
  creating build/lib.linux-x86_64-3.10/mpi4py/util
  copying src/mpi4py/util/__init__.py -> build/lib.linux-x86_64-3.10/mpi4py/util
  copying src/mpi4py/util/dtlib.py -> build/lib.linux-x86_64-3.10/mpi4py/util
  copying src/mpi4py/util/pkl5.py -> build/lib.linux-x86_64-3.10/mpi4py/util
  copying src/mpi4py/py.typed -> build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/MPI.pyi -> build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/__init__.pyi -> build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/__main__.pyi -> build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/bench.pyi -> build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/dl.pyi -> build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/run.pyi -> build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/MPI.pxd -> build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/__init__.pxd -> build/lib.linux-x86_64-3.10/mpi4py
  copying src/mpi4py/libmpi.pxd -> build/lib.linux-x86_64-3.10/mpi4py
  creating build/lib.linux-x86_64-3.10/mpi4py/include
  creating build/lib.linux-x86_64-3.10/mpi4py/include/mpi4py
  copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.linux-x86_64-3.10/mpi4py/include/mpi4py
  copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.linux-x86_64-3.10/mpi4py/include/mpi4py
  copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.linux-x86_64-3.10/mpi4py/include/mpi4py
  copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.linux-x86_64-3.10/mpi4py/include/mpi4py
  copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.linux-x86_64-3.10/mpi4py/include/mpi4py
  copying src/mpi4py/futures/__init__.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/__main__.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/_core.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/_lib.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/aplus.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/pool.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/futures/server.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
  copying src/mpi4py/util/__init__.pyi -> build/lib.linux-x86_64-3.10/mpi4py/util
  copying src/mpi4py/util/dtlib.pyi -> build/lib.linux-x86_64-3.10/mpi4py/util
  copying src/mpi4py/util/pkl5.pyi -> build/lib.linux-x86_64-3.10/mpi4py/util
  running build_clib
  MPI configuration: [mpi] from 'mpi.cfg'
  MPI C compiler:    /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc
  MPI C++ compiler:  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicpc
  checking for library 'lmpe' ...
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -c _configtest.c -o _configtest.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat _configtest.o -llmpe -o _configtest
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: cannot find -llmpe
  failure.
  removing: _configtest.c _configtest.o
  building 'mpe' dylib library
  creating build/temp.linux-x86_64-3.10
  creating build/temp.linux-x86_64-3.10/src
  creating build/temp.linux-x86_64-3.10/src/lib-pmpi
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -c src/lib-pmpi/mpe.c -o build/temp.linux-x86_64-3.10/src/lib-pmpi/mpe.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  creating build/lib.linux-x86_64-3.10/mpi4py/lib-pmpi
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -shared -Wl,-rpath,/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath-link,/home/U/.conda/envs/devito_intel_2021.03/lib -L/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath,/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath-link,/home/U/.conda/envs/devito_intel_2021.03/lib -L/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,--no-as-needed build/temp.linux-x86_64-3.10/src/lib-pmpi/mpe.o -o build/lib.linux-x86_64-3.10/mpi4py/lib-pmpi/libmpe.so
  checking for library 'vt-mpi' ...
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -c _configtest.c -o _configtest.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat _configtest.o -lvt-mpi -o _configtest
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: cannot find -lvt-mpi
  failure.
  removing: _configtest.c _configtest.o
  checking for library 'vt.mpi' ...
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -c _configtest.c -o _configtest.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat _configtest.o -lvt.mpi -o _configtest
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: cannot find -lvt.mpi
  failure.
  removing: _configtest.c _configtest.o
  building 'vt' dylib library
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -c src/lib-pmpi/vt.c -o build/temp.linux-x86_64-3.10/src/lib-pmpi/vt.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -shared -Wl,-rpath,/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath-link,/home/U/.conda/envs/devito_intel_2021.03/lib -L/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath,/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath-link,/home/U/.conda/envs/devito_intel_2021.03/lib -L/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,--no-as-needed build/temp.linux-x86_64-3.10/src/lib-pmpi/vt.o -o build/lib.linux-x86_64-3.10/mpi4py/lib-pmpi/libvt.so
  checking for library 'vt-mpi' ...
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -c _configtest.c -o _configtest.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat _configtest.o -lvt-mpi -o _configtest
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: cannot find -lvt-mpi
  failure.
  removing: _configtest.c _configtest.o
  checking for library 'vt.mpi' ...
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -c _configtest.c -o _configtest.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat _configtest.o -lvt.mpi -o _configtest
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: cannot find -lvt.mpi
  failure.
  removing: _configtest.c _configtest.o
  building 'vt-mpi' dylib library
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -c src/lib-pmpi/vt-mpi.c -o build/temp.linux-x86_64-3.10/src/lib-pmpi/vt-mpi.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -shared -Wl,-rpath,/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath-link,/home/U/.conda/envs/devito_intel_2021.03/lib -L/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath,/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath-link,/home/U/.conda/envs/devito_intel_2021.03/lib -L/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,--no-as-needed build/temp.linux-x86_64-3.10/src/lib-pmpi/vt-mpi.o -o build/lib.linux-x86_64-3.10/mpi4py/lib-pmpi/libvt-mpi.so
  checking for library 'vt-hyb' ...
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -c _configtest.c -o _configtest.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat _configtest.o -lvt-hyb -o _configtest
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: cannot find -lvt-hyb
  failure.
  removing: _configtest.c _configtest.o
  checking for library 'vt.ompi' ...
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -c _configtest.c -o _configtest.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat _configtest.o -lvt.ompi -o _configtest
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: cannot find -lvt.ompi
  failure.
  removing: _configtest.c _configtest.o
  building 'vt-hyb' dylib library
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -c src/lib-pmpi/vt-hyb.c -o build/temp.linux-x86_64-3.10/src/lib-pmpi/vt-hyb.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -shared -Wl,-rpath,/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath-link,/home/U/.conda/envs/devito_intel_2021.03/lib -L/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath,/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath-link,/home/U/.conda/envs/devito_intel_2021.03/lib -L/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,--no-as-needed build/temp.linux-x86_64-3.10/src/lib-pmpi/vt-hyb.o -o build/lib.linux-x86_64-3.10/mpi4py/lib-pmpi/libvt-hyb.so
  running build_ext
  MPI configuration: [mpi] from 'mpi.cfg'
  MPI C compiler:    /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc
  MPI C++ compiler:  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicpc
  checking for dlopen() availability ...
  checking for header 'dlfcn.h' ...
  gcc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -I/home/U/.conda/envs/devito_intel_2021.03/include/python3.10 -c _configtest.c -o _configtest.o
  success!
  removing: _configtest.c _configtest.o
  success!
  checking for library 'dl' ...
  gcc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -I/home/U/.conda/envs/devito_intel_2021.03/include/python3.10 -c _configtest.c -o _configtest.o
  gcc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat _configtest.o -Lbuild/temp.linux-x86_64-3.10 -ldl -o _configtest
  success!
  removing: _configtest.c _configtest.o _configtest
  checking for function 'dlopen' ...
  gcc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -I/home/U/.conda/envs/devito_intel_2021.03/include/python3.10 -c _configtest.c -o _configtest.o
  gcc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat _configtest.o -Lbuild/temp.linux-x86_64-3.10 -ldl -o _configtest
  success!
  removing: _configtest.c _configtest.o _configtest
  building 'mpi4py.dl' extension
  gcc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/home/U/.conda/envs/devito_intel_2021.03/include/python3.10 -c src/dynload.c -o build/temp.linux-x86_64-3.10/src/dynload.o
  gcc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -shared -Wl,-rpath,/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath-link,/home/U/.conda/envs/devito_intel_2021.03/lib -L/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath,/home/U/.conda/envs/devito_intel_2021.03/lib -Wl,-rpath-link,/home/U/.conda/envs/devito_intel_2021.03/lib -L/home/U/.conda/envs/devito_intel_2021.03/lib build/temp.linux-x86_64-3.10/src/dynload.o -Lbuild/temp.linux-x86_64-3.10 -ldl -o build/lib.linux-x86_64-3.10/mpi4py/dl.cpython-310-x86_64-linux-gnu.so
  checking for MPI compile and link ...
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -I/home/U/.conda/envs/devito_intel_2021.03/include/python3.10 -c _configtest.c -o _configtest.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  success!
  removing: _configtest.c _configtest.o
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -O2 -isystem /home/U/.conda/envs/devito_intel_2021.03/include -fPIC -I/home/U/.conda/envs/devito_intel_2021.03/include/python3.10 -c _configtest.c -o _configtest.o
  icc: command line warning #10148: option '-Wno-unused-result' not supported
  /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/bin/mpiicc -pthread -B /home/U/.conda/envs/devito_intel_2021.03/compiler_compat _configtest.o -Lbuild/temp.linux-x86_64-3.10 -o _configtest
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: warning: libfabric.so.1, needed by /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/lib/release/libmpi.so, not found (try using -rpath or -rpath-link)
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/lib/release/libmpi.so: undefined reference to `fi_strerror@FABRIC_1.0'
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/lib/release/libmpi.so: undefined reference to `fi_tostr@FABRIC_1.0'
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/lib/release/libmpi.so: undefined reference to `fi_fabric@FABRIC_1.1'
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/lib/release/libmpi.so: undefined reference to `fi_dupinfo@FABRIC_1.1'
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/lib/release/libmpi.so: undefined reference to `fi_getinfo@FABRIC_1.1'
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/lib/release/libmpi.so: undefined reference to `fi_freeinfo@FABRIC_1.1'
  failure.
  removing: _configtest.c _configtest.o
  error: Cannot link MPI programs. Check your configuration!!!
  ----------------------------------------
  ERROR: Failed building wheel for mpi4py
Failed to build mpi4py
ERROR: Could not build wheels for mpi4py which use PEP 517 and cannot be installed directly

Lisandro Dalcin

unread,
Oct 12, 2021, 3:32:36 AM10/12/21
to mpi...@googlegroups.com


On Mon, 11 Oct 2021 at 19:53, Michael Thomadakis <drmicha...@gmail.com> wrote:
  /home/U/.conda/envs/devito_intel_2021.03/compiler_compat/ld: warning: libfabric.so.1, needed by /data/saet/U/software/x86_64/RHEL7/intel/oneapi/mpi/2021.2.0/lib/release/libmpi.so, not found (try using -rpath or -rpath-link)

There is the problem, libfabric.so is not found or missing. Looks like similar issues have shown up before with the Intel distribution. You should follow up with them.


--
Lisandro Dalcin
============
Senior Research Scientist
Extreme Computing Research Center (ECRC)
King Abdullah University of Science and Technology (KAUST)
http://ecrc.kaust.edu.sa/

Michael Thomadakis

unread,
Oct 12, 2021, 9:19:46 AM10/12/21
to mpi...@googlegroups.com
Actually downgrading python to 3.8 allows us to build mpi2py.

Michael 
Reply all
Reply to author
Forward
0 new messages