FS#62931 - [cuda] host compiler <= gcc8
Attached to Project:
Community Packages
Opened by bartus (bartoszek) - Tuesday, 18 June 2019, 12:41 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 12 January 2020, 16:34 GMT
Opened by bartus (bartoszek) - Tuesday, 18 June 2019, 12:41 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 12 January 2020, 16:34 GMT
|
Details
Cuda requires gcc<=8 as the host compiler.
The current package uses `core:gcc` as host compiler which gets an update to v9.1 |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Sunday, 12 January 2020, 16:34 GMT
Reason for closing: Fixed
Additional comments about closing: Please don't request reopening until you are sure this is a packaging problem.
Sunday, 12 January 2020, 16:34 GMT
Reason for closing: Fixed
Additional comments about closing: Please don't request reopening until you are sure this is a packaging problem.
/usr/include/c++/9.1.0/bits/stl_function.h(437): error #20: identifier "__builtin_is_constant_evaluated" is undefined
Edit: You can reproduce the error immediately if you try to compile the CUDA samples. This could be done even in the check() function in the PKGBUILD as a basic sanity check of the compiler.
$ cd /tmp
$ cp -r /opt/cuda/samples/ .
$ cd samples/
$ make -j1
make[1]: Entering directory '/tmp/samples/0_Simple/simpleCooperativeGroups'
/opt/cuda/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o simpleCooperativeGroups.o -c simpleCooperativeGroups.cu
/opt/cuda/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o simpleCooperativeGroups simpleCooperativeGroups.o
mkdir -p ../../bin/x86_64/linux/release
cp simpleCooperativeGroups ../../bin/x86_64/linux/release
make[1]: Leaving directory '/tmp/samples/0_Simple/simpleCooperativeGroups'
make[1]: Entering directory '/tmp/samples/0_Simple/cudaTensorCoreGemm'
/opt/cuda/bin/nvcc -ccbin g++ -I../../common/inc -m64 -maxrregcount=255 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o cudaTensorCoreGemm.o -c cudaTensorCoreGemm.cu
/usr/include/c++/9.1.0/bits/stl_function.h(437): error: identifier "__builtin_is_constant_evaluated" is undefined
1 error detected in the compilation of "/tmp/tmpxft_000015ce_00000000-7_cudaTensorCoreGemm.compute_75.cpp1.ii".
make[1]: *** [Makefile:302: cudaTensorCoreGemm.o] Error 1
make[1]: Leaving directory '/tmp/samples/0_Simple/cudaTensorCoreGemm'
make: *** [Makefile:51: 0_Simple/cudaTensorCoreGemm/Makefile.ph_build] Error 2
mkdir gromacs; cd gromacs;
git clone https://github.com/gromacs/gromacs src; mkdir build;
cd build;
cmake ../src;
make -j8;
error:
/usr/include/c++/9.2.0/bits/stl_function.h(437): error: identifier "__builtin_is_constant_evaluated" is undefined
What would you have me change?