Dear all, compiling BLAS with -fPIC (as shared library by modifying "make.inc" "OPTS = -shared -O2 -fPIC") resulted in successful compilation of QE-GPU without any errors. It was an exciting experience.
Additionally I had to give nvcc binding to g++ in .bashrc, (alias nvcc='nvcc -ccbin=/usr/bin/g++') without this it was giving error:"-ccbin not found" I think these issues may be system specific, may depend on OS and CUDA. Thanking you with respectful regards Janardhan H L Poornaprajna Institute of Scientific Research Bagalore, India www.ppisr.res.in On Wednesday, 24 September 2014 8:25 AM, janardhan H.L. <janardhanhl at yahoo.com> wrote: Dear respected, I have experinced the same problem while compiling QE-GPU. 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/lib64 -lcublas -lcufft -lcudart /home/mool/espresso-GPU/GPU/..//phiGEMM/lib/libphigemm.a /home/mool/espresso-GPU/GPU/..//BLAS/blas.a -L/usr/local/cuda/lib64 -lcublas -lcufft -lcudart /usr/bin/ld: /home/mool/espresso-GPU/GPU/..//BLAS/blas.a(sgemm.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/mool/espresso-GPU/GPU/..//BLAS/blas.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[3]: *** [shared] Error 1 make[3]: Leaving directory `/home/mool/espresso-GPU/phiGEMM/src' make[2]: *** [phigemm] Error 2 make[2]: Leaving directory `/home/mool/espresso-GPU/phiGEMM' make[1]: *** [libphiGEMM] Error 2 make[1]: Leaving directory `/home/mool/espresso-GPU/GPU/install' make: *** [libphiGEMM] Error 2 My system variables are as follows intel xenon processors with Tesla C1060 / M1060, OS: Ubuntu 14.04, gnu compiliers are of V4.8.2 , Cuda compilation tools are, release 6.5, V6.5.12, QE 5.1, QE-GPU 14.06 I have tried with "./configure --with-fPIC" but it didnt help. As I am interested to compile GPU version of QE can you please share how to compile BLAS with -fPIC. What does -fPIC mean? thak you for your kind support with respectful regards Janardhan H L Poornaprajna Institute of Scientific Research Bagalore, India www.ppisr.res.in -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pwscf.org/pipermail/pw_forum/attachments/20140924/805f0ed5/attachment.html
