Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA build errors with GCC 8 #1800

Closed
totaam opened this issue Apr 2, 2018 · 4 comments
Closed

CUDA build errors with GCC 8 #1800

totaam opened this issue Apr 2, 2018 · 4 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Apr 2, 2018

Similar to #1600, here's the new error:

found gcc version: 8.0.1
found CUDA compiler: /usr/local/cuda/bin/nvcc version 9.1.85
CUDA compiling ARGB_to_NV12     (no file)
 '/usr/local/cuda/bin/nvcc' '-fatbin' \
    '-c' 'xpra/codecs/cuda_common/ARGB_to_NV12.cu' \
    '-o' 'xpra/codecs/cuda_common/ARGB_to_NV12.fatbin' \
    '-std=c++11' \
    '-gencode=arch=compute_30,code=sm_30' \
    '-gencode=arch=compute_35,code=sm_35' \
    '-gencode=arch=compute_50,code=sm_50' \
    '-gencode=arch=compute_52,code=sm_52' \
    '-gencode=arch=compute_53,code=sm_53' \
    '-gencode=arch=compute_60,code=sm_60' \
    '-gencode=arch=compute_61,code=sm_61' \
    '-gencode=arch=compute_62,code=sm_62' \
    '-gencode=arch=compute_70,code=sm_70'
Error: failed to compile CUDA kernel ARGB_to_NV12
/usr/include/c++/8/type_traits(1061): error: type name is not allowed
/usr/include/c++/8/type_traits(1061): error: type name is not allowed
/usr/include/c++/8/type_traits(1061): error: identifier "__is_assignable" is undefined

3 errors detected in the compilation of "/tmp/tmpxft_00001aee_00000000-14_ARGB_to_NV12.compute_70.cpp1.ii".

error: Bad exit status from /var/tmp/rpm-tmp.F9Iw1o (%build)
@totaam
Copy link
Collaborator Author

totaam commented Apr 2, 2018

Raising, also affects Fedora 28.

@totaam
Copy link
Collaborator Author

totaam commented Apr 28, 2018

Compiling CUDA with clang does not help, because as per CUDA Compilers compatibility matrix, clang 6 supports CUDA 9 but not 9.1

@totaam
Copy link
Collaborator Author

totaam commented Apr 30, 2018

Build workaround in r19119 + r19120 (+fixups in r19121 + r19122): we can keep the compiled binary kernels in the source tree by excluding them from the build clean command, so Fedora 28 and later can re-use pre-compiled kernels generated using Fedora 27.

@totaam
Copy link
Collaborator Author

totaam commented Jun 21, 2018

Workaround in r19685: switch to C++ 03 instead of C++ 11...
(found some hints there: [https://negativo17.org/nvidia-driver/])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant