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

Sebastian Müller mseb... at gmail.com
Sat Jul 5 04:09:59 UTC 2014


Hi,

i was a little bit busy, but I recompiled using make distclean and make 
like this:


Sebastian at lukas:~/programme/cp2k/cp2k-2.5.1_cuda/makefiles> make distclean
> rm -rf 
> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../doc/doxygen 
> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../exe 
> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../lib 
> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../obj 
> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../src/dbcsr_lib/cuda/libcusmm/LIBCUSMM_DEPENDENCIES 
> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../src/dbcsr_lib/cuda/libcusmm/
> libcusmm.cu 
> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../src/dbcsr_lib/cuda/libcusmm/kernels/__init__.pyc 
> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../src/dbcsr_lib/cuda/libcusmm/kernels/cusmm_dnt_largeDB.pyc 
> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../src/dbcsr_lib/cuda/libcusmm/kernels/cusmm_dnt_medium.pyc 
> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../src/dbcsr_lib/cuda/libcusmm/kernels/cusmm_dnt_tiny.pyc 
> /home/Sebastian/programme/cp2k/cp2k-2.5.1_cuda/makefiles/../src/dbcsr_lib/cuda/libcusmm/kernels/cusmm_dnt_small.pyc
> Sebastian at lukas:~/programme/cp2k/cp2k-2.5.1_cuda/makefiles> make 
> ARCH=Linux-x86-64-gfortran-lukas VERSION=ssmp >>makelog.out 2>>makelog.err
> Sebastian at lukas:~/programme/cp2k/cp2k-2.5.1_cuda/makefiles> 


And get the same error as above. 

Kind Regards
Sebastian

On Wednesday, July 2, 2014 10:50:35 AM UTC+2, Ole Schütt wrote:
>
> 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/20140704/6b6e0bf8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makelog.err
Type: application/octet-stream
Size: 26493 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20140704/6b6e0bf8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makelog.out
Type: application/octet-stream
Size: 740189 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20140704/6b6e0bf8/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Linux-x86-64-gfortran-lukas.ssmp
Type: application/octet-stream
Size: 1919 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20140704/6b6e0bf8/attachment-0002.obj>


More information about the CP2K-user mailing list