<div dir="ltr">I download SVN revision 17503 today. The compilation has gone pass cusmm. However, I run into another error. Here is the error message.<div><br></div><div><div>/home/cdpoon/Downloads/cp2k/cp2k/src/pw/cuda/fft_cuda_z.cu(73): error: identifier "CUFFT_COMPATIBILITY_NATIVE" is undefined</div><div><br></div><div>/home/cdpoon/Downloads/cp2k/cp2k/src/pw/cuda/fft_cuda_z.cu(142): error: identifier "CUFFT_COMPATIBILITY_NATIVE" is undefined</div><div><br></div><div>/home/cdpoon/Downloads/cp2k/cp2k/src/pw/cuda/fft_cuda_z.cu(210): error: identifier "CUFFT_COMPATIBILITY_NATIVE" is undefined</div><div><br></div><div>3 errors detected in the compilation of "/tmp/tmpxft_00006c08_00000000-7_fft_cuda_z.cpp1.ii".</div><div>make[3]: *** [fft_cuda_z.o] Error 2</div><div>make[2]: *** [all] Error 2</div><div>make[1]: *** [ssmp] Error 2</div><div>make: *** [all] Error 2</div><div><br></div><div>What should I do to fix this problem?</div><br>On Tuesday, October 25, 2016 at 6:38:21 PM UTC-4, Ole Schütt wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Dear Chi-Duen,
<br>
<br>the problem with Cuda 8.0 has been fixed in SVN revision 17473.
<br>Unfortunately, the issue only came to our attention shortly after the
<br>CP2K 4.1 release.
<br>
<br>-Ole
<br>
<br>
<br>On 2016-10-25 21:27, Chi-Duen Poon wrote:
<br>> I have no problem compiling sopt and ssmp of CP2K 4.1 in CentOS 7.2.
<br>> However, I am getting the following error to add CUDA support.
<br>> CUDA is at version 8.0.
<br>>
<br>> <command-line>:0:0: warning: "__GNUC_MINOR__" redefined [enabled by
<br>> default]
<br>> <built-in>:0:0: note: this is the location of the previous definition
<br>> 1 error detected in the compilation of
<br>> "/tmp/tmpxft_000031e7_<wbr>00000000-5_libcusmm_part03.<wbr>cpp4.ii".
<br>> make[3]: *** [libcusmm_part03.o] Error 2
<br>> /nas02/data/thl/packages/el7/<wbr>BUILD/x86_64/cp2k-4.1/src/<wbr>dbcsr/libsmm_acc/libcusmm/./<wbr>kernels/cusmm_common.h(15):
<br>> error: function "atomicAdd(double *, double)" has already been defined
<br>>
<br>> /nas02/data/thl/packages/el7/<wbr>BUILD/x86_64/cp2k-4.1/src/<wbr>dbcsr/libsmm_acc/libcusmm/./<wbr>kernels/cusmm_common.h(15):
<br>> error: function "atomicAdd(double *, double)" has already been defined
<br>>
<br>> /nas02/data/thl/packages/el7/<wbr>BUILD/x86_64/cp2k-4.1/src/<wbr>dbcsr/libsmm_acc/libcusmm/./<wbr>kernels/cusmm_common.h(15):
<br>> error: function "atomicAdd(double *, double)" has already been defined
<br>>
<br>> 1 error detected in the compilation of
<br>> "/tmp/tmpxft_0000321b_<wbr>00000000-5_libcusmm_part05.<wbr>cpp4.ii".
<br>> make[3]: *** [libcusmm_part05.o] Error 2
<br>> 1 error detected in the compilation of
<br>> "/tmp/tmpxft_000031fc_<wbr>00000000-5_libcusmm_part04.<wbr>cpp4.ii".
<br>> make[3]: *** [libcusmm_part04.o] Error 2
<br>> 1 error detected in the compilation of
<br>> "/tmp/tmpxft_00003223_<wbr>00000000-5_libcusmm_part06.<wbr>cpp4.ii".
<br>> make[3]: *** [libcusmm_part06.o] Error 2
<br>> make[2]: *** [all] Error 2
<br>> make[1]: *** [ssmp] Error 2
<br>> make: *** [all] Error 2
<br>>
<br>> The arch file has the following listing.
<br>>
<br>> CC = gcc
<br>> CXX = g++
<br>> CPP =
<br>> AR = ar -r
<br>> FC = gfortran
<br>> LD = gfortran
<br>> #
<br>> DFLAGS = -D__ACC -D__DBCSR_ACC -D__PW_CUDA -D__LIBXSMM
<br>> -D__FFTW3 -D__LIBINT -D__LIBINT_MAX_AM=6 -D__LIBDERIV_MAX_AM1=5
<br>> -D__LIBXC
<br>> #
<br>> WFLAGS = -Werror=aliasing -Werror=ampersand
<br>> -Werror=c-binding-type -Werror=intrinsic-shadow -Werror=intrinsics-std
<br>> -Werror=line-truncation -Werror=tabs -Werror=realloc-lhs-all
<br>> -Werror=target-lifetime -Werror=underflow
<br>> -Werror=unused-but-set-<wbr>variable -Werror=unused-variable
<br>> -Werror=unused-dummy-argument -Werror=conversion -Werror=uninitialized
<br>> -Wno-maybe-uninitialized
<br>> #
<br>> FCDEBFLAGS = -ffree-form -std=f2003 -fimplicit-none
<br>> CFLAGS = -march=native -fno-omit-frame-pointer -g -O3
<br>> -funroll-loops -ffast-math $(PROFOPT) -fopenmp $(DFLAGS)
<br>> FCFLAGS = -march=native -fno-omit-frame-pointer -g -O3
<br>> -funroll-loops -ffast-math $(PROFOPT) -fopenmp $(FCDEBFLAGS) $(WFLAGS)
<br>> $(DFLAGS) -I'/usr/lib64/gfortran/<wbr>modules'
<br>> #
<br>> LDFLAGS = $(FCFLAGS) -Wl,--enable-new-dtags
<br>> CUDAPATH = /usr/local/cuda/lib64/
<br>> LIBS = -lxsmmf -lxsmm -lxcf90 -lxc -lderiv -lint -lfftw3
<br>> -lfftw3_omp -lopenblaso -lstdc++ $(CUDAPATH)/libcudart.so
<br>> $(CUDAPATH)/libcufft.so $(CUDAPATH)/libcublas.so -lrt
<br>> #
<br>> NVCC = /usr/local/cuda/bin/nvcc -D__GNUC__=4
<br>> -D__GNUC_MINOR__=9 -Xcompiler=--std=gnu++98
<br>> NVFLAGS = -arch sm_35 $(DFLAGS)
<br>>
<br>> Has anyone seen this before? If you have, how would you fix the
<br>> problem? It looks like it has something to do with libcusmm.
<br>>
<br>> CD.
<br>>
<br>> --
<br>> You received this message because you are subscribed to the Google
<br>> Groups "cp2k" group.
<br>> To unsubscribe from this group and stop receiving emails from it,
<br>> send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="o7StfsB5CQAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp2k+uns...@googlegroups.<wbr>com</a>.
<br>> To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="o7StfsB5CQAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.com</a>.
<br>> Visit this group at <a href="https://groups.google.com/group/cp2k" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/group/cp2k';return true;" onclick="this.href='https://groups.google.com/group/cp2k';return true;">https://groups.google.com/<wbr>group/cp2k</a> [1].
<br>> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a> [2].
<br>>
<br>>
<br>> Links:
<br>> ------
<br>> [1] <a href="https://groups.google.com/group/cp2k" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/group/cp2k';return true;" onclick="this.href='https://groups.google.com/group/cp2k';return true;">https://groups.google.com/<wbr>group/cp2k</a>
<br>> [2] <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a>
<br></blockquote></div></div>