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

Sebastian Müller mseb... at gmail.com
Tue Jul 1 06:37:08 UTC 2014


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:

> cuda_memory.F:(.text+0x5): undefined reference to `fftcu_release_'
>
cuda_memory.F:(.text+0xa): undefined reference to 
> `cuda_device_mem_release_cu_'
>
and many warnings like

> warning: pointless comparison of unsigned integer with zero
>
and I am unable to remove this.

Attached the output of make and the arch file. 
Kind Regards
Sebastian


On Monday, June 30, 2014 10:48:29 AM UTC+2, Ole wrote:
>
> Hi Sebastian,
>
> since you don't have "__CUDA_PROFILING" among your DFLAGS, the file cuda_nvtx_cu.cu 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
>
>
>
> Am Sonntag, 29. Juni 2014 12:05:31 UTC+2 schrieb Sebastian Müller:
>>
>> 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/20140630/f586272a/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/20140630/f586272a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makelog.out
Type: application/octet-stream
Size: 741180 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20140630/f586272a/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/20140630/f586272a/attachment-0002.obj>


More information about the CP2K-user mailing list