<div dir="ltr">Dear Mr. Spiga, thanks for the fast reply.<br><div><div><div><br>My gcc is 4.8.2 and the Quadro card is K600.<br><br>On a fresh new QE 5.1 with QE-GPU 14.06 using internal libraries without MAGMA (--without-magma flag in configure) I get:<br><br>cc -O3 -fopenmp -fPIC -z muldefs -shared -o libphigemm.so.2.0 phigemm_auxiliary.o phigemm_env.o phigemm_dgemm.o phigemm_zgemm.o phigemm_dgemm_specialK.o phigemm_zgemm_specialK.o phigemm_cgemm.o phigemm_sgemm.o -L/usr/local/cuda-6.5/lib64 -lcublas  -lcufft -lcudart /home/iftahg/New-QE-GPU/espresso-5.1/phiGEMM/lib/libphigemm.a  /home/iftahg/New-QE-GPU/espresso-5.1/BLAS/blas.a -L/usr/local/cuda-6.5/lib64 -lcublas  -lcufft -lcudart <br>/usr/bin/ld: /home/iftahg/New-QE-GPU/espresso-5.1/BLAS/blas.a(sgemm.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC<br>/home/iftahg/New-QE-GPU/espresso-5.1/BLAS/blas.a: error adding symbols: Bad value<br>collect2: error: ld returned 1 exit status<br>make[3]: *** [shared] Error 1<br>make[3]: Leaving directory `/home/iftahg/New-QE-GPU/espresso-5.1/phiGEMM/src'<br>make[2]: *** [phigemm] Error 2<br>make[2]: Leaving directory `/home/iftahg/New-QE-GPU/espresso-5.1/phiGEMM'<br>make[1]: *** [libphiGEMM] Error 2<br>make[1]: Leaving directory `/home/iftahg/New-QE-GPU/espresso-5.1/GPU/install'<br>make: *** [libphiGEMM] Error 2<br><br></div><div>I tried recompiling BLAS with -fPIC and after that it seems to be able to compile pw-gpu, neb-gpu, cp-gpu, although it doesn't put pw.x, neb.x etc in the bin directory, but trying to compile ph-gpu gives the following error:<br><br>make[6]: Entering directory `/home/iftahg/New-QE-GPU/espresso-5.1/PW/src'<br>if test -n "" ; then \<br>    ( cd ../.. ; make  || exit 1 ) ; fi<br>gfortran -g -fopenmp -o pw.x \<br>       pwscf.o  libpw.a ../../Modules/libqemod.a ../../flib/ptools.a ../../flib/flib.a ../../clib/clib.a ../../iotk/src/libiotk.a  /home/iftahg/New-QE-GPU/espresso-5.1/GPU/..//lapack-3.2/lapack.a  /home/iftahg/New-QE-GPU/espresso-5.1/GPU/..//phiGEMM/lib/libphigemm.a  /home/iftahg/New-QE-GPU/espresso-5.1/GPU/..//BLAS/blas.a   -L/usr/local/cuda-6.5/lib64 -lcublas  -lcufft -lcudart <br>libpw.a(addusdens.o): In function `addusdens_':<br>/home/iftahg/New-QE-GPU/espresso-5.1/PW/src/addusdens.f90:28: undefined reference to `addusdens_g_gpu_'<br>libpw.a(newd.o): In function `__dfunct_MOD_newq':<br>/home/iftahg/New-QE-GPU/espresso-5.1/PW/src/newd.f90:33: undefined reference to `newq_compute_gpu_'<br>/home/iftahg/New-QE-GPU/espresso-5.1/PW/src/newd.f90:33: undefined reference to `newq_compute_gpu_'<br>libpw.a(vloc_psi.o): In function `vloc_psi_gamma_':<br>/home/iftahg/New-QE-GPU/espresso-5.1/PW/src/vloc_psi.f90:41: undefined reference to `vloc_psi_gamma_gpu_'<br>libpw.a(vloc_psi.o): In function `vloc_psi_k_':<br>/home/iftahg/New-QE-GPU/espresso-5.1/PW/src/vloc_psi.f90:230: undefined reference to `vloc_psi_k_gpu_'<br>../../Modules/libqemod.a(mp.o): In function `__mp_MOD_mp_end':<br>/home/iftahg/New-QE-GPU/espresso-5.1/Modules/mp.f90:213: undefined reference to `closecudaenv_'<br>../../Modules/libqemod.a(mp.o): In function `__mp_MOD_mp_start':<br>/home/iftahg/New-QE-GPU/espresso-5.1/Modules/mp.f90:184: undefined reference to `initcudaenv_'<br>collect2: error: ld returned 1 exit status<br>make[6]: *** [pw.x] Error 1<br>make[6]: Leaving directory `/home/iftahg/New-QE-GPU/espresso-5.1/PW/src'<br>make[5]: *** [pw] Error 1<br>make[5]: Leaving directory `/home/iftahg/New-QE-GPU/espresso-5.1/PW'<br>make[4]: *** [pw] Error 1<br>make[4]: Leaving directory `/home/iftahg/New-QE-GPU/espresso-5.1'<br>make[3]: *** [tldeps] Error 1<br>make[3]: Leaving directory `/home/iftahg/New-QE-GPU/espresso-5.1/PHonon/PH'<br>make[2]: *** [phonon] Error 1<br>make[2]: Leaving directory `/home/iftahg/New-QE-GPU/espresso-5.1/PHonon'<br>make[1]: *** [phonon] Error 1<br>make[1]: Leaving directory `/home/iftahg/New-QE-GPU/espresso-5.1/install'<br>make: *** [ph-gpu] Error 2<br><br>Which is similar to the error I got trying to compile with OpenBLAS (after making the appropriate changes to the make.sys and the make_phiGEMM.inc files).<br><br></div><div>Thanks in advance,<br><br>Uri Argaman<br>Ben-Gurion University<br>Israel<br></div></div></div></div>