LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Suitesparse /Cuda SBo, complains about too advanced GCC, although being built with GCC 5 from the same SBo. (https://www.linuxquestions.org/questions/slackware-14/suitesparse-cuda-sbo-complains-about-too-advanced-gcc-although-being-built-with-gcc-5-from-the-same-sbo-4175652843/)

Lockywolf 04-27-2019 04:37 AM

Suitesparse /Cuda SBo, complains about too advanced GCC, although being built with GCC 5 from the same SBo.
 
Hello, everyone.

I'm trying to build suitesparse from SBo.
I am using the latest -current with a handful of packages, including gcc-5, cuda and nvidia-legacy390

I tried sourcing /etc/profile.d/gcc5.sh in the shell, and in the slackbuild itself, but to no availd. The build script still complains about being run with a wrong GCC:

Code:

gcc-5    -O3 -fexceptions -fPIC -fopenmp -DGPU_BLAS  -c -I../../AMD/Include -I../../AMD/Source -I../../COLAMD/Include -I/tmp/SBo/SuiteSparse/CCOLAMD/Include -I/tmp/SBo/SuiteSparse/CAMD/Include -I/tmp/SBo/SuiteSparse/metis-5.1.0/include -I../Include -I../../SuiteSparse_config -I/usr/share/cuda/include/ ../GPU/cholmod_gpu.c
/usr/share/cuda/bin/nvcc -I../../AMD/Include -I../../AMD/Source -I../../COLAMD/Include -I/tmp/SBo/SuiteSparse/CCOLAMD/Include -I/tmp/SBo/SuiteSparse/CAMD/Include -I/tmp/SBo/SuiteSparse/metis-5.1.0/include -I../Include -I../../SuiteSparse_config -I/usr/share/cuda/include/ -Xcompiler -fPIC -O3 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_53,code=sm_53 -gencode=arch=compute_53,code=sm_53 -gencode=arch=compute_60,code=compute_60 -c ../GPU/cholmod_gpu_kernels.cu
In file included from /usr/share/cuda/include/cuda_runtime.h:78,
                from <command-line>:
/usr/share/cuda/include/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 5 are not supported!
 #error -- unsupported GNU version! gcc versions later than 5 are not supported!
  ^~~~~
make[3]: *** [Makefile:527: cholmod_gpu_kernels.o] Error 1
make[3]: Leaving directory '/tmp/SBo/SuiteSparse/CHOLMOD/Lib'
make[2]: *** [Makefile:31: library] Error 2
make[2]: Leaving directory '/tmp/SBo/SuiteSparse/CHOLMOD/Lib'
make[1]: *** [Makefile:14: all] Error 2
make[1]: Leaving directory '/tmp/SBo/SuiteSparse/CHOLMOD'
make: *** [Makefile:22: go] Error 2

Any tips?

orbea 04-27-2019 08:42 AM

Quote:

Originally Posted by Lockywolf (Post 5988868)
Any tips?

Complain upstream.

Lockywolf 04-27-2019 10:26 AM

Quote:

Originally Posted by orbea (Post 5988917)
Complain upstream.

Upstream wouldn't care, because CUDA 8 is already old.

I ended up just adding lines:

Code:

-ccbin $CC \
-gencode=arch=compute_20,code=sm_20 \

to SuiteSparse_config/SuiteSparse_config.mk

at the line 246, but I'm too ignorant to send a patch to SBo.

orbea 04-28-2019 08:18 AM

Quote:

Originally Posted by Lockywolf (Post 5988949)
Upstream wouldn't care, because CUDA 8 is already old.

What is the issue with using newer supported versions then?

You can contact the SBo maintainer by the e-mail listed in the info file.

Lockywolf 04-28-2019 08:44 AM

The issue is that my card, GF119, is not supported by CUDA9, moreover, CUDA8 is available at SBo.

Lockywolf 04-28-2019 10:17 PM

Just in case. No guarantees, but I did manage to build the package.

https://gitlab.com/Lockywolf/lwfslac...er/suitesparse


All times are GMT -5. The time now is 08:35 PM.