openucx / ucx

Unified Communication X (mailing list - https://elist.ornl.gov/mailman/listinfo/ucx-group)
http://www.openucx.org
Other
1.15k stars 426 forks source link

Error in build: fatal error: shmem.h: No such file or directory #5817

Open jczhang07 opened 4 years ago

jczhang07 commented 4 years ago

Under Ubuntu-18.04.5, with gcc-8.3, and the ucx master branch,

$./autogen.sh
$./contrib/configure-release --prefix=$HOME/soft/ucx --with-cuda CC=gcc CXX=g++
$make
...
Making install in test/mpi
make[1]: Entering directory '/home/jczhang/ucx/test/mpi'
  CC       shmem_pingpong.o
shmem_pingpong.c:13:10: fatal error: shmem.h: No such file or directory
 #include <shmem.h>
          ^~~~~~~~~
compilation terminated.
Makefile:562: recipe for target 'shmem_pingpong.o' failed
dmitrygx commented 4 years ago

is some SHMEM implementation loaded to your LD_LIBRARY_PATH? also, pls specify ./contrib/configure-release --with-mpi ..., it tries to select MPI implementation during configuration (e.g. OpenMPI has OpenSHMEM implementation). If it fails to find MPI, it stops configuring and report the error. So, you will have a good instrument to understand whether everything is ok or not.

1117z commented 1 year ago

I met the same problem when build ucx too. I configured it with ./contrib/configure-release --prefix=/lustre/home/acct-hpc/hpclzy/openeuler/hucx_install --with-mpi. I am a little bit confused about your suggestion @dmitrygx , did you mean that the ucx need mpi as Prerequisity? I had openmpi loaded to my LD_LIBRARY_PATH.