cp2k-2.6.1 and 2.5.1 compilation error with GPU
Shraddhs Vora
shradd... at gmail.com
Tue May 5 09:08:09 UTC 2015
Dear Sir/Madam,
When I am doing : makefiles]$ time make ARCH=
*Linux-x86-64-cuda VERSION=sopt Error I am getting:*
*/opt/CUDA-5.5/bin/nvcc -c -D__CUDAPW -D__FFTW3
/home/internal/sysadmin/shraddhav/APPLI/GPU/CP2K/cp2k-2.6.0/src/dbcsr/libsmm_acc/libcusmm/libcusm*
*m.cu*
*/home/internal/sysadmin/shraddhav/APPLI/GPU/CP2K/cp2k-2.6.0/src/dbcsr/libsmm_acc/libcusmm/./kernels/cusmm_common.h(23):
error: identifier "" is undefined*
*/home/internal/sysadmin/shraddhav/APPLI/GPU/CP2K/cp2k-2.6.0/src/dbcsr/libsmm_acc/libcusmm/./kernels/cusmm_common.h(22):
error: identifier "__dou*
*ble_as_longlong" is undefined*
*/home/internal/sysadmin/shraddhav/APPLI/GPU/CP2K/cp2k-2.6.0/src/dbcsr/libsmm_acc/libcusmm/./kernels/cusmm_dnt_medium.h(301):
warning: subscript out of range*
* detected during instantiation of "void
cusmm_dnt_medium<m,n,k,M,N,bsize,grouping,minblocks>(const int *, int, int,
double *, double *, double *) [with m=9, n=32, k=9, M=2, N=2, bsize=96,
grouping=16, minblocks=12]"*
*/home/internal/sysadmin/shraddhav/APPLI/GPU/CP2K/cp2k-2.6.0/src/dbcsr/libsmm_acc/libcusmm/libcusmm.cu(3772):
here*
*4 errors detected in the compilation of
"/tmp/tmpxft_0002a014_00000000-6_libcusmm.cpp1.ii".*
*make[3]: *** [libcusmm.o] Error 2*
*make[2]: *** [all] Error 2*
*make[1]: *** [sopt] Error 2*
*#######################################################################*
My makefile is as mentioned below:
*vi Linux-x86-64-cuda.sopt*
# by default some intel compilers put temporaries on the stack
# this might lead to segmentation faults is the stack limit is set to low
# stack limits can be increased by sysadmins or e.g with ulimit -s 256000
# furthermore new ifort (10.0?) compilers support the option
# -heap-arrays 64
# add this to the compilation flags is the other options do not work
# The following settings worked for:
# - AMD64 Opteron
# - SUSE Linux Enterprise Server 10.0 (x86_64)
# - Intel(R) Fortran Compiler for Intel(R) EM64T-based applications,
Version 10.0
# - AMD acml library version 3.6.0
# - MPICH2-1.0.5p4
# - FFTW 3.1.2
#
PERL = perl
CC = gcc
CPP = cpp
NVCC = /opt/CUDA-5.5/bin/nvcc
FC = /opt/intel/composer_xe_2013.1.117/bin/intel64/ifort -FR
LD = /opt/intel/composer_xe_2013.1.117/bin/intel64/ifort -i-static
-openmp
AR = ar -r
#DFLAGS = -D__INTEL -D__CUDA -D__FFTSG -D__FFTW3 -D__CUBLASDP
#DFLAGS = -D__INTEL -D__CUDA -D__FFTSG -D__FFTW3 -D__CUBLASDP
-DDGEMM=cuda_d_gemm -Ddgemm=cuda_d_gemm -DDSYMM=gpu_d_symm
-Ddsymm=gpu_d_symm
#DFLAGS = -D__INTEL -D__FFTSG -D__FFTW3 -D__CUBLASDP -DDGEMM=cuda_d_gemm
-Ddgemm=cuda_d_gemm -DDSYMM=gpu_d_symm -Ddsymm=gpu_d_symm
-DDSYEVD=cuda_lapack_dsyevd -Ddsyevd=cuda_lapack_dsyevd
DFLAGSBASE = -D__INTEL -D__FFTSG -D__CUBLASDP -D__FFTW3
DFLAGS = $(DFLAGSBASE) -DDGEMM=cuda_d_gemm -Ddgemm=cuda_d_gemm
-DDSYMM=gpu_d_symm -Ddsymm=gpu_d_symm
DFLAGSCU = $(DFLAGSBASE) -Dcpu_d_gemm=dgemm -Dcpu_d_symm=dsymm
#DFLAGS = -D__INTEL -D__CUDA -D__FFTSG
#DFLAGSCU = $(DFLAGS)
CFLAGS = -O2
CPPFLAGS = -traditional -C $(DFLAGS) -P -I/opt/intel/mkl/include/fftw
CPPFLAGSCU = -traditional -C $(DFLAGSCU) -P -I/opt/intel/mkl/include/fftw
NVFLAGS = $(DFLAGS) -arch sm_13
FCFLAGS = $(DFLAGS) -O2 -xW
FCFLAGSCU = $(DFLAGSCU) -O2 -xW
MKLPATH = /opt/intel/mkl/lib/intel64
CUDAPATH = /opt/CUDA-5.5
LDFLAGS = $(FCFLAGS)
LIBS = -L$(MKLPATH)\
$(MKLPATH)/libmkl_scalapack_lp64.a\
$(MKLPATH)/libmkl_blacs_intelmpi_lp64.a\
$(MKLPATH)/libmkl_intel_lp64.a\
$(MKLPATH)/libguide.a\
$(CUDAPATH)/libcudart.so\
$(CUDAPATH)/libcufft.so\
$(CUDAPATH)/libcublas.so\
$(MKLPATH)/libfftw3xf_intel.a\
-lpthread
cuda_cublas.o: cuda_cublas.F
$(CPP) $(CPPFLAGSCU) $< > cuda_cublas.f90
$(FC) -c $(FCFLAGSCU) cuda_cublas.f90
##################################################################
Kindly provide me guidance to get rid of this error.
Your help will be greatly appreciable.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20150505/f837f173/attachment.htm>
More information about the CP2K-user
mailing list