<div dir="ltr"><div dir="ltr">Hi,<br><br>i was a little bit busy, but I recompiled using make distclean and make like this:<br><br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><font size="2"><span style="font-size:10pt">Sebastian@lukas:~/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles> make distclean<br>

rm -rf 
/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../doc/doxygen 
/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../exe 
/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../lib 
/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../obj
/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../src/dbcsr_lib/<wbr>cuda/libcusmm/LIBCUSMM_<wbr>DEPENDENCIES
 
/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../src/dbcsr_lib/<wbr>cuda/libcusmm/<a href="http://libcusmm.cu" target="_blank">libcusmm.cu</a>
 
/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../src/dbcsr_lib/<wbr>cuda/libcusmm/kernels/__init__<wbr>.pyc
/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../src/dbcsr_lib/<wbr>cuda/libcusmm/kernels/cusmm_<wbr>dnt_largeDB.pyc
 
/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../src/dbcsr_lib/<wbr>cuda/libcusmm/kernels/cusmm_<wbr>dnt_medium.pyc
 
/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../src/dbcsr_lib/<wbr>cuda/libcusmm/kernels/cusmm_<wbr>dnt_tiny.pyc
/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../src/dbcsr_lib/<wbr>cuda/libcusmm/kernels/cusmm_<wbr>dnt_small.pyc<br>

Sebastian@lukas:~/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles> make 
ARCH=Linux-x86-64-gfortran-<wbr>lukas VERSION=ssmp >>makelog.out 
2>>makelog.err<br>

Sebastian@lukas:~/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles> </span></font></blockquote><br>And get the same error as above. <br><br>Kind Regards<br>Sebastian<br><br>On Wednesday, July 2, 2014 10:50:35 AM UTC+2, Ole Schütt wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><pre>Hi Sebastian,

from your outputs, I would not expect the linking error to occur. Did you change the FLAGS without recompiling everything? Try "make distclean" and compile again.

> and many warnings like
>> warning: pointless comparison of unsigned integer with zero

Don't worry about these warnings. Most of them will be gone in the next version of cp2k.

-Ole</pre><br><br>On Sunday, June 29, 2014 12:05:31 PM UTC+2, Sebastian Müller wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<br><br>I tried to compile a cp2k version with CUDA 6.0 and get the following output on stderr running the make command:<br><br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">lexer.l:143: warning, Regel kann nicht passen<br>/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../src/tmc_tree_<wbr>types.F:12:34: warning: backslash and newline separated by space [enabled by default]<br>/home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../src/tmc_tree_<wbr>types.F:14:36: warning: backslash and newline separated by space [enabled by default]<br>ar: creating /home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../lib/Linux-x86-64-<wbr>gfortran-lukas/ssmp/libcp2k_<wbr>lib.a<br>ar: creating /home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../lib/Linux-x86-64-<wbr>gfortran-lukas/ssmp/libcp2k_<wbr>dbcsr_lib.a<br>ar: creating /home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../lib/Linux-x86-64-<wbr>gfortran-lukas/ssmp/libcp2k_<wbr>fft_lib.a<br>ar: creating /home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../lib/Linux-x86-64-<wbr>gfortran-lukas/ssmp/libcp2k_<wbr>base_lib.a<br>ar: creating /home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../lib/Linux-x86-64-<wbr>gfortran-lukas/ssmp/libcp2k_<wbr>ma_lib.a<br>Command-line error: invalid option: --allow_managed<br><br>1 catastrophic error detected in this compilation.<br>Compilation terminated.<br>make[1]: *** [cuda_nvtx_cu.o] Fehler 4<br>make: *** [build] Fehler 2<br><br></blockquote><br>It seems like this --allow_managed option results in the error, but the last command on stdout was<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">nvcc -c -O2 -arch=sm_30 -I/usr/local/cuda/lib64/../<wbr>include -L/usr/local/cuda/lib64 --dont-use-profile -ldir /usr/local/cuda/nvvm/libdevice /home/Sebastian/programme/<wbr>cp2k/cp2k-2.5.1_cuda/<wbr>makefiles/../src/cuda/<a href="http://cuda_nvtx_cu.cu" target="_blank">cuda_<wbr>nvtx_cu.cu</a><br></blockquote><br>and there is no option like this. Without the CUDA support I was able to build the program without errors and it is working fine.<br>I attached the full output at stderr and stdout of the make command and the corresponding arch file.<br><br>Could anyone tell me what I am doning wrong.<br><br>Best regards<br>Sebastian<br></div></blockquote></div></blockquote></div></div>