[Openmp-dev] Error during build of CUDA offloading plugin / device RTL

Jonas Hahnfeld via Openmp-dev openmp-dev at lists.llvm.org
Thu Aug 9 03:55:11 PDT 2018


Hi Lukas,

can you try installing and using (via 
-DLIBOMPTARGET_NVPTX_ALTERNATE_HOST_COMPILER) an older version of GCC? 
According to 
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#system-requirements, 
CUDA 9 only supports Fedora 27 with GCC 7, so I think your C++ header 
files use features that nvcc is not prepared to cope with.

Cheers,
Jonas

On 2018-08-09 12:36, Lukas Sommer via Openmp-dev wrote:
> Hi everyone,
> 
> I just checked out branch release_70 of LLVM, Clang and OpenMP from git
> and tried to build using cmake and make.
> 
> Unfortunately I experience an error during the build of the Nvidia CUDA
> offloading device RTL:
> 
>> [ 10%] Building NVCC (Device) object
>> projects/openmp/libomptarget/deviceRTLs/nvptx/CMakeFiles/omptarget-nvptx.dir/src/omptarget-nvptx_generated_cancel.cu.o
>> /usr/include/c++/8/type_traits(1049): error: type name is not allowed
>> 
>> /usr/include/c++/8/type_traits(1049): error: type name is not allowed
>> 
>> /usr/include/c++/8/type_traits(1049): error: identifier
>> "__is_assignable" is undefined
>> 
>> 3 errors detected in the compilation of
>> "/tmp/tmpxft_00005a09_00000000-6_cancel.cpp1.ii".
>> CMake Error at omptarget-nvptx_generated_cancel.cu.o.Debug.cmake:275
>> (message):
>>   Error generating file
>>  
>> /scratch/llvm/llvm-latest/llvm-bin/projects/openmp/libomptarget/deviceRTLs/nvptx/CMakeFiles/omptarget-nvptx.dir/src/./omptarget-nvptx_generated_cancel.cu.o
> I also see a similar error during the compilation of
> omptarget-nvptx_generated_omp_data.cu.o.
> 
> I'm running Fedora 28 with kernel version 4.17.7, gcc version 8.1.1 and
> nvcc version 9.1.85. 
> 
> My cmake-configuration is the default configuration, apart from
> CMAKE_BUILD_TYPE=Debug, BUILD_SHARED_LIBS=ON and
> LIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=35,61 (6.1 is the capability of
> my device).
> 
> Does anyone have some suggestions on how to fix this problem? Do I need
> to further change my cmake configuration?
> 
> Thanks in advance,
> 
> Regards
> 
> Lukas
> 
> 
> 
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev


More information about the Openmp-dev mailing list