<div dir="ltr">Thanks, I has found an reference to cuda-5.5 in the environment library path, so this should be the error. But now I get to the same point as with cuda 5.5. There is a large trace of errors starting with:<br><blockquote style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">cuda_memory.F:(.text+0x5): undefined reference to `fftcu_release_'<br></blockquote><blockquote style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">cuda_memory.F:(.text+0xa): undefined reference to `cuda_device_mem_release_cu_'<br></blockquote>and many warnings like<br><blockquote style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">warning: pointless comparison of unsigned integer with zero<br></blockquote><div>and I am unable to remove this.<br><br>Attached the output of make and the arch file. <br></div>Kind Regards<br>Sebastian<br><br><br>On Monday, June 30, 2014 10:48:29 AM UTC+2, Ole 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,

since you don't have "__CUDA_PROFILING" among your DFLAGS, the file <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_nvtx_cu.cu</a> should be completely empty after preprocessing. Therefore, I would suspect that the error originates from your cuda setup. Notice e.g. that nvcc calls your c++ host-compiler in the background.

-Ole</pre><br><br>Am Sonntag, 29. Juni 2014 12:05:31 UTC+2 schrieb Sebastian Müller:<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></blockquote></div>