<div dir="ltr">Dear Filippo,<div>I created a brand new directory of QE just for the GPU compilation and I'm trying now to use the configure command indicated in the README.</div><div>The error now is the following, it seems that phiGEMM doesn't find libgfortran. </div><div><br></div><div><div>make[3]: Entering directory `/usr/local/src/espresso-5.1_gpu/phiGEMM/src'</div><div>/usr/local/cuda-6.0/bin/nvcc -ccbin gcc -O3 --compiler-options '-c -fPIC -fopenmp' -D__PHIGEMM_WEAK_INTERFACES -D__PHIGEMM_SELFTUNE -D__PHIGEMM_ENABLE_SPECIALK -I/usr/local/src/espresso-5.1_gpu/GPU/..//phiGEMM/include -I/usr/local/cuda-6.0/include -I../include/ -c phigemm_auxiliary.c -o phigemm_auxiliary.o</div><div>nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.</div><div>/usr/local/cuda-6.0/bin/nvcc -ccbin gcc -O3 --compiler-options '-c -fPIC -fopenmp' -D__PHIGEMM_WEAK_INTERFACES -D__PHIGEMM_SELFTUNE -D__PHIGEMM_ENABLE_SPECIALK -I/usr/local/src/espresso-5.1_gpu/GPU/..//phiGEMM/include -I/usr/local/cuda-6.0/include -I../include/ -c phigemm_env.c -o phigemm_env.o</div><div>nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.</div><div>/usr/local/cuda-6.0/bin/nvcc -ccbin gcc -O3 --compiler-options '-c -fPIC -fopenmp' -D__PHIGEMM_WEAK_INTERFACES -D__PHIGEMM_SELFTUNE -D__PHIGEMM_ENABLE_SPECIALK -I/usr/local/src/espresso-5.1_gpu/GPU/..//phiGEMM/include -I/usr/local/cuda-6.0/include -I../include/ -c phigemm_dgemm.c -o phigemm_dgemm.o</div><div>nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.</div><div>/usr/local/cuda-6.0/bin/nvcc -ccbin gcc -O3 --compiler-options '-c -fPIC -fopenmp' -D__PHIGEMM_WEAK_INTERFACES -D__PHIGEMM_SELFTUNE -D__PHIGEMM_ENABLE_SPECIALK -I/usr/local/src/espresso-5.1_gpu/GPU/..//phiGEMM/include -I/usr/local/cuda-6.0/include -I../include/ -c phigemm_zgemm.c -o phigemm_zgemm.o</div><div>nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.</div><div>/usr/local/cuda-6.0/bin/nvcc -ccbin gcc -O3 --compiler-options '-c -fPIC -fopenmp' -D__PHIGEMM_WEAK_INTERFACES -D__PHIGEMM_SELFTUNE -D__PHIGEMM_ENABLE_SPECIALK -I/usr/local/src/espresso-5.1_gpu/GPU/..//phiGEMM/include -I/usr/local/cuda-6.0/include -I../include/ -c phigemm_dgemm_specialK.c -o phigemm_dgemm_specialK.o</div><div>nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.</div><div>/usr/local/cuda-6.0/bin/nvcc -ccbin gcc -O3 --compiler-options '-c -fPIC -fopenmp' -D__PHIGEMM_WEAK_INTERFACES -D__PHIGEMM_SELFTUNE -D__PHIGEMM_ENABLE_SPECIALK -I/usr/local/src/espresso-5.1_gpu/GPU/..//phiGEMM/include -I/usr/local/cuda-6.0/include -I../include/ -c phigemm_zgemm_specialK.c -o phigemm_zgemm_specialK.o</div><div>nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.</div><div>/usr/local/cuda-6.0/bin/nvcc -ccbin gcc -O3 --compiler-options '-c -fPIC -fopenmp' -D__PHIGEMM_WEAK_INTERFACES -D__PHIGEMM_SELFTUNE -D__PHIGEMM_ENABLE_SPECIALK -I/usr/local/src/espresso-5.1_gpu/GPU/..//phiGEMM/include -I/usr/local/cuda-6.0/include -I../include/ -c phigemm_cgemm.c -o phigemm_cgemm.o</div><div>nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.</div><div>/usr/local/cuda-6.0/bin/nvcc -ccbin gcc -O3 --compiler-options '-c -fPIC -fopenmp' -D__PHIGEMM_WEAK_INTERFACES -D__PHIGEMM_SELFTUNE -D__PHIGEMM_ENABLE_SPECIALK -I/usr/local/src/espresso-5.1_gpu/GPU/..//phiGEMM/include -I/usr/local/cuda-6.0/include -I../include/ -c phigemm_sgemm.c -o phigemm_sgemm.o</div><div>nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.</div><div>mkdir -p ../bin ../lib</div><div>ar ruv libphigemm.a 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</div><div>ar: creating libphigemm.a</div><div>a - phigemm_auxiliary.o</div><div>a - phigemm_env.o</div><div>a - phigemm_dgemm.o</div><div>a - phigemm_zgemm.o</div><div>a - phigemm_dgemm_specialK.o</div><div>a - phigemm_zgemm_specialK.o</div><div>a - phigemm_cgemm.o</div><div>a - phigemm_sgemm.o</div><div>mv libphigemm.a ../lib/.</div><div>mkdir -p ../bin ../lib</div><div>cc -O3 -fopenmp -fPIC -z muldefs -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.0/lib64 -lcublas -lcufft -lcudart /usr/local/src/espresso-5.1_gpu/GPU/..//phiGEMM/lib/libphigemm.a /usr/local/src/espresso-5.1_gpu/GPU/..//BLAS/blas.a -L/usr/local/cuda-6.0/lib64 -lcublas -lcufft -lcudart</div><div>/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/crt1.o: In function `_start':</div><div>(.text+0x20): undefined reference to `main'</div><div>/usr/local/src/espresso-5.1_gpu/GPU/..//BLAS/blas.a(xerbla.o): In function `xerbla_':</div><div>xerbla.f:(.text+0x51): undefined reference to `_gfortran_st_write'</div><div>xerbla.f:(.text+0x61): undefined reference to `_gfortran_transfer_character'</div><div>xerbla.f:(.text+0x71): undefined reference to `_gfortran_transfer_integer'</div><div>xerbla.f:(.text+0x79): undefined reference to `_gfortran_st_write_done'</div><div>xerbla.f:(.text+0x83): undefined reference to `_gfortran_stop_numeric'</div><div>collect2: ld returned 1 exit status</div><div>make[3]: *** [shared] Error 1</div><div>make[3]: Leaving directory `/usr/local/src/espresso-5.1_gpu/phiGEMM/src'</div><div>make[2]: *** [phigemm] Error 2</div><div>make[2]: Leaving directory `/usr/local/src/espresso-5.1_gpu/phiGEMM'</div><div>make[1]: *** [libphiGEMM] Error 2</div><div>make[1]: Leaving directory `/usr/local/src/espresso-5.1_gpu/GPU/install'</div><div><br></div><div><br></div><div>Moreover I have some more questions about the integration of external BLAS, LAPACK and FFTW libraries. </div><div>Is it useful in terms of speed to insert manually openblas and fftw3 in the make.sys? </div><div>Moreover, having a single PC with a 8-cores processor and a single GPU, it does make sense to compile the parallel version? Or it's better to use the seria/OMP version? In this last case, how many threads should I use?</div><div><br></div><div>Sorry for the multiple (probably silly) questions..</div><div>Best regards,</div><div>Mauro Sgroi</div><div>Centro Ricerche FIAT</div><div>Italia</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-09-05 9:47 GMT+02:00 Filippo Spiga <span dir="ltr"><<a href="mailto:spiga.filippo@gmail.com" target="_blank">spiga.filippo@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Mauro,<br>
<br>
After configure, what is the text after DFLAGS = inside make.sys?<br>
<br>
I suspect two things:<br>
- it looks like there are dirty object files around, please "make -f Makefile.gpu distclean" first<br>
- by override FFT_LIBS, BLAS_LIBS and LAPACK_LIBS some of the internal checkings in the configure do not work properly<br>
<br>
My strong suggestion is to edit make.sys after you run the configure, overriding FFT_LIBS, BLAS_LIBS and LAPACK_LIBS only if it is strictly necessary. In your particular case, by doing so you miss phiGEMM and MAGMA and other libraries to link to the final executable. I am improving over time the configure but it will take time to percolate these changes to the main distribution and into QE-GPU. I can add OpenBLAS support to the configure natively, it is not a process that take one day.<br>
<br>
Speaking about CUDA 6.5, I has trouble running MAGMA with the latest CUDA toolkit recently. So my suggestion is to use a more stable CUDA 6.0 or temporary disable MAGMA. It is worh try but if the application has problems this is the first thing to remove.<br>
<br>
HTH<br>
F<br>
<br>
<br>
On Sep 4, 2014, at 3:37 PM, Mauro Sgroi <<a href="mailto:maurofrancesco.sgroi@gmail.com">maurofrancesco.sgroi@gmail.com</a>> wrote:<br>
> Dear Developers.<br>
> I'm trying to install the GPU version of Quantum Espresso 5.1.<br>
> I'm using RedHat EL 6.3 with the gcc 4.4.6 compiler and Cuda Toolkit 6.5.<br>
> My configure command is as follows:<br>
><br>
> configure FFT_LIBS='-L/usr/local/lib/ -lfftw3' LAPACK_LIBS='-L/usr/local/lib -lopenblas' --disable-parallel --enable-openmp --enable-cuda --with-gpu-arch=sm_30 --with-cuda-dir=/usr/local/cuda --with-magma --with-phigemm BLAS_LIBS='-L/usr/local/lib -lopenblas'<br>
><br>
> and I get the following error:<br>
><br>
> make[1]: Entering directory `/usr/local/src/espresso-5.1_GPU/GPU/Modules'<br>
> ( if test -x ../install/update_gpu_version ; then \<br>
> ../install/update_gpu_version; \<br>
> else if test ! -f ../include/gpu-version.h ; then \<br>
> cat ../include/<a href="http://gpu-version.h.in" target="_blank">gpu-version.h.in</a> > ../include/gpu-version.h ; fi ; fi )<br>
> nvcc -ccbin=/usr/bin -I../../include -I../include -D__GFORTRAN -D__STD_F95 -D__FFTW -D__OPENMP -c <a href="http://cuda_init.cu" target="_blank">cuda_init.cu</a><br>
> <a href="http://cuda_init.cu" target="_blank">cuda_init.cu</a>(361): error: identifier "ngpus_per_process" is undefined<br>
><br>
> <a href="http://cuda_init.cu" target="_blank">cuda_init.cu</a>(363): error: identifier "qe_gpu_bonded" is undefined<br>
><br>
> <a href="http://cuda_init.cu" target="_blank">cuda_init.cu</a>(376): error: identifier "qe_gpu_kernel_launch" is undefined<br>
><br>
> <a href="http://cuda_init.cu" target="_blank">cuda_init.cu</a>(376): error: identifier "update_gpu_kernel_specs" is undefined<br>
><br>
> <a href="http://cuda_init.cu" target="_blank">cuda_init.cu</a>(413): warning: variable "lRankThisNode" was declared but never referenced<br>
><br>
> <a href="http://cuda_init.cu" target="_blank">cuda_init.cu</a>(413): warning: variable "lSizeThisNode" was declared but never referenced<br>
><br>
> 4 errors detected in the compilation of "/tmp/tmpxft_00004217_00000000-6_cuda_init.cpp1.ii".<br>
> make[1]: *** [cuda_init.o] Error 2<br>
> make[1]: Leaving directory `/usr/local/src/espresso-5.1_GPU/GPU/Modules'<br>
> make: *** [gpu-mods] Error 2<br>
><br>
><br>
> Could you help me with this problem?<br>
> Thanks a lot in advance and best regards,<br>
> Mauro Sgroi.<br>
> _______________________________________________<br>
> Pw_forum mailing list<br>
> <a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
> <a href="http://pwscf.org/mailman/listinfo/pw_forum" target="_blank">http://pwscf.org/mailman/listinfo/pw_forum</a><br>
<br>
--<br>
Mr. Filippo SPIGA, M.Sc.<br>
<a href="http://filippospiga.info" target="_blank">http://filippospiga.info</a> ~ skype: filippo.spiga<br>
<br>
«Nobody will drive us out of Cantor's paradise.» ~ David Hilbert<br>
<br>
*****<br>
Disclaimer: "Please note this message and any attachments are CONFIDENTIAL and may be privileged or otherwise protected from disclosure. The contents are not to be disclosed to anyone other than the addressee. Unauthorized recipients are requested to preserve this confidentiality and to advise the sender immediately of any error in transmission."<br>
<br>
<br>
<br>
_______________________________________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://pwscf.org/mailman/listinfo/pw_forum" target="_blank">http://pwscf.org/mailman/listinfo/pw_forum</a></blockquote></div><br></div>