I tried to build yambo-4.0.0-rev78 TH-1A super computer linking to MKL static libraries. Unfortunately, I ran into linking errors like this.
>>>[Linking yambo]<<<
make[1]: Entering directory `/vol-th/home/jlwang/workspace/yhli/yambo-4.0.0-rev78/driver'
yambo_driver.F
/vol-th/home/jlwang/workspace/yhli/yambo-4.0.0-rev78/lib/libslatec.a(r1mach.o): In function `r1mach_':
r1mach.f:(.text+0x64): undefined reference to `slamch_'
r1mach.f:(.text+0x7d): undefined reference to `slamch_'
r1mach.f:(.text+0x96): undefined reference to `slamch_'
r1mach.f:(.text+0xaf): undefined reference to `slamch_'
r1mach.f:(.text+0xc8): undefined reference to `slamch_'
make[1]: *** [yambo] Error 1
make[1]: Leaving directory `/vol-th/home/jlwang/workspace/yhli/yambo-4.0.0-rev78/driver'
make: *** [yambo] Error 2
Below are my configurations for the static version
Code: Select all
export CC=icc
export FC=ifort
export F77=ifort
export PFC=mpif90
export MPICC=mpicc
export CFLAGS=-O2
export FCFLAGS=-O2
export FFLAGS=-O2
export mkldir=/opt/intel/composer_xe_2013.0.079/mkl/lib/intel64
export fftwdir=$HOME/lib/fftw-3.3.4
export iotkdir=$HOME/workspace/yhli/code/espresso-5.1.1/S3DE/iotk
export netcdfdir=$HOME/lib/netcdf-4.3.2
export libxcdir=$HOME/lib/libxc-2.1.1
./configure \
\
--disable-debug --enable-time-profile \
--disable-open-mp --enable-3d-fft --enable-iotk --enable-netcdf \
\
--with-blas-libs="-Wl,--start-group $mkldir/libmkl_intel_lp64.a $mkldir/libmkl_sequential.a $mkldir/libmkl_core.a -Wl,--end-group" \
--with-lapack-libs="-Wl,--start-group $mkldir/libmkl_intel_lp64.a $mkldir/libmkl_sequential.a $mkldir/libmkl_core.a -Wl,--end-group" \
--with-blacs-libs="$mkldir/libmkl_blacs_intelmpi_lp64.a" \
--with-scalapack-libs="$mkldir/libmkl_scalapack_lp64.a" \
\
--with-fft-libs="-L$fftwdir/lib -lfftw3" \
--with-fft-path=$fftwdir \
\
--with-p2y-version=5.0 \
--with-iotk-libs=$iotkdir/tools/iotk \
--with-iotk-path=$iotkdir \
\
--with-netcdf-libs="-L$netcdfdir/lib -lnetcdff -lnetcdf" \
--with-netcdf-path=$netcdfdir \
\
--with-libxc-libs="-L$libxcdir/lib -lxc" \
--with-libxc-path=$libxcdir
Code: Select all
export CC=icc
export FC=ifort
export F77=ifort
export PFC=mpif90
export MPICC=mpicc
export CFLAGS=-O2
export FCFLAGS=-O2
export FFLAGS=-O2
export mkldir=/opt/intel/composer_xe_2013.0.079/mkl/lib/intel64
export fftwdir=$HOME/lib/fftw-3.3.4
export iotkdir=$HOME/workspace/yhli/code/espresso-5.1.1/S3DE/iotk
export netcdfdir=$HOME/lib/netcdf-4.3.2
export libxcdir=$HOME/lib/libxc-2.1.1
./configure \
\
--disable-debug --enable-time-profile \
--disable-open-mp --enable-3d-fft --enable-iotk --enable-netcdf \
\
--with-blas-libs="-L$mkldir -lmkl_intel_lp64 -lmkl_sequential -lmkl_core" \
--with-lapack-libs="-L$mkldir -lmkl_intel_lp64 -lmkl_sequential -lmkl_core" \
--with-blacs-libs="-L$mkldir -lmkl_blacs_intelmpi_lp64" \
--with-scalapack-libs="-L$mkldir -lmkl_scalapack_lp64" \
\
--with-fft-libs="-L$fftwdir/lib -lfftw3" \
--with-fft-path=$fftwdir \
\
--with-p2y-version=5.0 \
--with-iotk-libs=$iotkdir/tools/iotk \
--with-iotk-path=$iotkdir \
\
--with-netcdf-libs="-L$netcdfdir/lib -lnetcdff -lnetcdf" \
--with-netcdf-path=$netcdfdir \
\
--with-libxc-libs="-L$libxcdir/lib -lxc" \
--with-libxc-path=$libxcdir
Any suggestions are appreciated.
Best,
Yunhai