[Pw_forum] QE-GPU compilation problems

janardhan H.L. janardhanhl at yahoo.com
Wed Sep 24 04:55:06 CEST 2014


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://lists.quantum-espresso.org/pipermail/users/attachments/20140924/c465cc7f/attachment.html>


More information about the users mailing list