<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" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fcuda_nvtx_cu.cu\46sa\75D\46sntz\0751\46usg\75AFQjCNGI0J3Trzo0mW3sJTgo9MIkJqb41g';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fcuda_nvtx_cu.cu\46sa\75D\46sntz\0751\46usg\75AFQjCNGI0J3Trzo0mW3sJTgo9MIkJqb41g';return true;">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>