Open hongyi-zhao opened 3 years ago
@hongyi-zhao Could you try to run nm -a /home/werner/www.caam.rice.edu/software/ARPACK/libarpack_LINUX.a |grep zcopy and put the output here?
This problem has been solved in the above-mentioned issue filed on arpack-ng
, see here for details of the discussion.
To be specific, the makefile used by wannier_tools needs to adopt the following change, i.e., putting libarpack.a
and/or libparpack.a
before the intel MKL library group when using static libraries:
LIBS =${ARPACK} \
-Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a \
${MKLROOT}/lib/intel64/libmkl_sequential.a \
${MKLROOT}/lib/intel64/libmkl_core.a \
-Wl,--end-group -lpthread -lm -ldl
Anyway, I post here the info you request:
$ nm -a libarpack_LINUX.a | grep zcopy
U zcopy_
U zcopy_
U zcopy_
U zcopy_
U zcopy_
U zcopy_
zcopy.o:
0000000000000000 T zcopy_
0000000000000000 a zcopy.f
U zcopy_
U zcopy_
U zcopy_
BTW, I still failed to compile the libparpack.a for the original ARPACK version obtained from here, as shown below:
$ module load intel/oneapi
$ make parpacklib
( cd ; /bin/make single double complex complex16 )
make[1]: Entering directory '/home/werner'
make[1]: *** No rule to make target 'single'. Stop.
make[1]: Leaving directory '/home/werner'
make: *** [Makefile:69: parpacklib] Error 2
@hongyi-zhao Thank you very much for your suggestion. I am glad that your issue was solved.
By the way, we don't PARPACK in WannierTools so far. So you don't have to compile the parpacklib.
By the way, we don't PARPACK in WannierTools so far. So you don't have to compile the parpacklib.
I just tried this out of curiosity.
BTW, I think that It is best to make the appropriate corrections/notes in the Makefile
templates supplied in this repo.
On Ubuntu 20.04, I try to compile the git master version of wannier_tools with intel
mkl
and intel MPI as shown below:Then adjust
ARmake.inc
as below according to the notes here for working with ifort and mkl:Finally, compile the library as below:
Replace the
ARPACK=/Users/quan/work/workplace/ARPACK/libarpack_MAC.a
line inMakefile.intel-mpi
with the following one:ARPACK=/home/werner/www.caam.rice.edu/software/ARPACK/libarpack_LINUX.a
Then compile wannier_tools:
Any hints for this problem will be highly appreciated.
Regards, HY