Hi Ken,
First thing, I'm not sure you need -Wl,-rpath,/cm/shared/apps/cuda12.3/toolkit/12.3.2/lib64/stubs
in LDLFAGS
but I could be wrong.
For --with-mpi-include
, are the MPI header files in /cm/shared/apps/openmpi4/gcc/4.1.5
if you do ls /cm/shared/apps/openmpi4/gcc/4.1.5
? If not, is there an include
directory in there? If so, you should update --with-mpi-include
with /cm/shared/apps/openmpi4/gcc/4.1.5/include
. Likewise, --with-mpi-libflags
should have -L/cm/shared/apps/openmpi4/gcc/4.1.5/lib -lmpi
.
Regarding libudev/libevent_core/libevent_pthreads
, I'm not sure where it's picking these up in the first place. They may be dependencies of OpenMPI, but their location should be on the path already in that case. Anyhow, what you might do is find /cm/shared -name libevent_pthreads*
and/or find /usr/lib64 -name libevent_pthreads*
. Once you find where it is located (likewise for the other two libraries), we need to supply this to the linker, maybe through LDFLAGS as well but you could also try injecting it at the end of --with-gfortran-lib
. Say you found libevent_pthreads.so
at <PATH>
, add it with -L<PATH> -levent_pthreads
(and, again, with the other two libraries). You will then need to reconfigure and recompile.