<div dir="ltr"><div><div>Dear QE users and developers,<br><br>I'm trying to compile GPU-accelerated Quantum Espresso and I'm running into troubles.<br>I'm using QE-GPU 14.03 and I have attempted to compile it with QE 5.1 and QE 5.0.2.<br>My system specifications are: intel xeon CPU, nvidia quadro graphic card with Compute Capability of 3.0, CUDA 6.5, Ubuntu 14.04 lts, OpenMPI 1.8.2, gfortran.<br><br>If I understand correctly, there is no patch needed for the QE 5.1 version. On the QE 5.0.2 I used the espresso-5.0.2_GPU-14.03.patch.<br>Since I don't have Intel's MKL, I started by trying to compile it with the internal libraries:<br><br>cd GPU<br>./configure --enable-openmp --disable-parallel --enable-cuda --with-gpu-arch=sm_30 --with-cuda-dir=/usr/local/cuda-6.5 --with-phigemm --with-magma<br>cd ..<br>make -f Makefile.gpu pw-gpu<br><br>I got Consistent warnings about nonexistent quark include directory and the error:<br><br>gfortran -g -fopenmp -o pw-gpu.x \<br>     pwscf.o  ../../PW/src/libpw.a libpwgpu.a ../../Modules/libqemod.a ../Modules/libqemodgpu.a ../../flib/ptools.a ../../flib/flib.a ../../clib/clib.a ../../iotk/src/libiotk.a  /home/iftahg/QE-GPU_2/espresso-5.1/GPU/..//qe-magma/lib/libmagma.a  /home/iftahg/QE-GPU_2/espresso-5.1/GPU/..//lapack-3.2/lapack.a  /home/iftahg/QE-GPU_2/espresso-5.1/GPU/..//phiGEMM/lib/libphigemm.a  /home/iftahg/QE-GPU_2/espresso-5.1/GPU/..//BLAS/blas.a   -L/usr/local/cuda-6.5/lib64 -lcublas  -lcufft -lcudart <br>/usr/bin/ld: /home/iftahg/QE-GPU_2/espresso-5.1/GPU/..//qe-magma/lib/libmagma.a(dtrevc3_mt.o): undefined reference to symbol '__cxa_pure_virtual@@CXXABI_1.3'<br>//usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line<br>collect2: error: ld returned 1 exit status<br>make[1]: *** [pw-gpu.x] Error 1<br><br>I tried adding -lstdc++ flag which resulted in many undefined reference errors:<br><br>/home/iftahg/QE-GPU_2/espresso-5.1/GPU/..//qe-magma/lib/libmagma.a(zgeqp3.o): In function `magma_zgeqp3':<br>zgeqp3.cpp:(.text+0x33f): undefined reference to `cblas_dznrm2'<br>/home/iftahg/QE-GPU_2/espresso-5.1/GPU/..//qe-magma/lib/libmagma.a(zlaqps.o): In function `magma_zlaqps':<br>zlaqps.cpp:(.text+0x207): undefined reference to `cblas_idamax'<br>zlaqps.cpp:(.text+0x97c): undefined reference to `cblas_dznrm2'<br>zlaqps.cpp:(.text+0xa15): undefined reference to `cblas_dznrm2'<br>/home/iftahg/QE-GPU_2/espresso-5.1/GPU/..//qe-magma/lib/libmagma.a(zlatrd.o): In function `magma_zlatrd':<br>zlatrd.cpp:(.text+0x716): undefined reference to `cblas_zdotc_sub'<br>zlatrd.cpp:(.text+0xb25): undefined reference to `cblas_zdotc_sub'<br>...<br><br>I also tried to compile with OpenBLAS and with the most recent FFTW instead of the internal libraries.<br><br>./configure --enable-openmp --disable-parallel --enable-cuda --with-gpu-arch=sm_30 --with-cuda-dir=/usr/local/cuda-6.5 --with-phigemm --with-magma FFT_LIBS=/usr/local/lib/libfftw3.a BLAS_LIBS=/home/iftahg/espresso-5.1/OpenBLAS/libopenblas_haswellp-r0.2.11.a<br><br>and I got:<br><br>gfortran -O3 -g -fopenmp -x f95-cpp-input -fopenmp -D__GFORTRAN -D__STD_F95 -D__FFTW -D__CUDA -D__PHIGEMM -D__MAGMA -DHAVE_CUBLAS -D__OPENMP  -I../include -I/home/iftahg/QE-GPU_2/espresso-5.0.2/GPU/..//qe-magma/include -I/home/iftahg/QE-GPU_2/espresso-5.0.2/GPU/..//quark/include -I/home/iftahg/QE-GPU_2/espresso-5.0.2/GPU/..//phiGEMM/include -I/usr/local/cuda-6.5/include -I../../iotk/src -I../../PW/src -I../../Modules -I../Modules -I.  -c newq_compute_gpu.f90<br>Warning: Nonexistent include directory "/home/iftahg/QE-GPU_2/espresso-5.0.2/GPU/..//quark/include"<br>newq_compute_gpu.f90:30.6:<br><br>  USE mp_bands,             ONLY : intra_bgrp_comm<br>      1<br>Fatal Error: Can't open module file 'mp_bands.mod' for reading at (1): No such file or directory<br>make[1]: *** [newq_compute_gpu.o] Error 1<br>make[1]: Leaving directory `/home/iftahg/QE-GPU_2/espresso-5.0.2/GPU/PW'<br><br>Does any of these errors ring a bell? Is it plausible that getting Intel's MKL would solve my problems?<br><br>Uri Argaman<br></div>Ben-Gurion University<br></div>Israel<br></div>