marekandreas / elpa

A scalable eigensolver for dense, symmetric (hermitian) matrices (fork of https://gitlab.mpcdf.mpg.de/elpa/elpa.git)
Other
27 stars 13 forks source link

Compilation error: "cannot find -ludev" #33

Closed dbennett1994 closed 1 year ago

dbennett1994 commented 1 year ago

Hello,

I am trying to compile elpa-2021.11.002 on my HPC cluster. I have the following modules loaded:

Running make, the program compiles for a while, and eventually stops with this error:

GEN      libelpa.la
ld: cannot find -ludev
make[1]: *** [libelpa.la] Error 1
make[1]: Leaving directory `/net/fs2k02/srv/export/kaxiras/share_root/dbennett/elpa-2021.11.002/build'
make: *** [all] Error 2

I tried configuring using the instructions here, here. Also, I tried just simply running configure, specifying the compilers and linking to scalapack following the instructions in INSTALL.md:

FC=mpifort CC=mpicc ../configure \
SCALAPACK_LDFLAGS="-L$MKL_HOME/lib/intel64 -lmkl_scalapack_lp64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_blacs_intelmpi_lp64 -lpthread -lm -Wl,-rpath,$MKL_HOME/lib/intel64" \
SCALAPACK_FCFLAGS="-L$MKL_HOME/lib/intel64 -lmkl_scalapack_lp64
-lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_blacs_intelmpi_lp64
-lpthread -lm -I$MKL_HOME/include/intel64/lp64"

But both give the same error. I couldn't find any reference to libudev in the code, and not really sure why it's being called.

Any advice much appreciated

Log files and configure script attached here

config.txt configure-elpa-skx.txt make.txt

Thanks,

Daniel Bennett

marekandreas commented 1 year ago

Hello,

ELPA does not require libudev for building and/or runtime. This is also an error message neither we have ever encountered before nor any other user has reported it. My feeling is, that this requirement comes in via your software stack on your HPC system... I suggest that you could try two things: