Try to compile an OpenMP cp2k version with CUDA support results in invalid option error

Ole o... at schuett.name
Wed Jul 2 08:50:35 UTC 2014



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



On Sunday, June 29, 2014 12:05:31 PM UTC+2, Sebastian Müller wrote:
>
> Hello,
>
> I tried to compile a cp2k version with CUDA 6.0 and get the following 
> output on stderr running the make command:
>
>
> lexer.l:143: warning, Regel kann nicht passen
>> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../src/tmc_tree_types.F:12:34: 
>> warning: backslash and newline separated by space [enabled by default]
>> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../src/tmc_tree_types.F:14:36: 
>> warning: backslash and newline separated by space [enabled by default]
>> ar: creating 
>> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../lib/Linux-x86-64-gfortran-lukas/ssmp/libcp2k_lib.a
>> ar: creating 
>> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../lib/Linux-x86-64-gfortran-lukas/ssmp/libcp2k_dbcsr_lib.a
>> ar: creating 
>> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../lib/Linux-x86-64-gfortran-lukas/ssmp/libcp2k_fft_lib.a
>> ar: creating 
>> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../lib/Linux-x86-64-gfortran-lukas/ssmp/libcp2k_base_lib.a
>> ar: creating 
>> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../lib/Linux-x86-64-gfortran-lukas/ssmp/libcp2k_ma_lib.a
>> Command-line error: invalid option: --allow_managed
>>
>> 1 catastrophic error detected in this compilation.
>> Compilation terminated.
>> make[1]: *** [cuda_nvtx_cu.o] Fehler 4
>> make: *** [build] Fehler 2
>>
>>
> It seems like this --allow_managed option results in the error, but the 
> last command on stdout was
>
> nvcc -c -O2 -arch=sm_30 -I/usr/local/cuda/lib64/../include 
>> -L/usr/local/cuda/lib64 --dont-use-profile -ldir 
>> /usr/local/cuda/nvvm/libdevice 
>> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../src/cuda/
>> cuda_nvtx_cu.cu
>>
>
> 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.
> I attached the full output at stderr and stdout of the make command and 
> the corresponding arch file.
>
> Could anyone tell me what I am doning wrong.
>
> Best regards
> Sebastian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20140702/1107ea07/attachment.htm>


More information about the CP2K-user mailing list