I’ve been trying to activate CUDA rendering on my Fedora 25 computer but it’s not working bc aparently CUDA 8 is not compatible with the pre installed gcc 6. Is there any other way to make it work besides downgrading gcc?
/usr/local/cuda/bin/..//include/host_config.h:119:2: Fehler: #error -- unsupported GNU version! gcc versions later than 5 are not supported!
#error -- unsupported GNU version! gcc versions later than 5 are not supported!
^~~~~
CUDA kernel compilation failed, see console for details.
And if not: Does anyone have a manual for beginners on how to install two gcc versions parallel? :S
I don’t know the compilations flags, but it is doable. I’m on Arch with CUDA 8 and gcc 6.2.1-1 working. Mind you, I also have gcc 5.4.0-1 installed, so maybe that’s the workaround. You don’t need to downgrade gcc, you can install gcc 5 alongside gcc 6.
Possibly have a look at the Arch PKGBUILD files for clues:
that has been a problem with fedora since i first used fedora core 4 many many years ago
fedora is by it’s own definition the newest of the new
for using the CUDA-sdk you will almost always have to use a DEAD AND UNSUPPORTED version of fedora ( NOT RECOMMENDED!!!)
however ALL nvidia drivers for the current cards support CUDA
BUT Fedora DEFAULTS to the “Nouveau” driver – non cuda
welcome to the WORLD of Fedora
you will find that it is SO NEW that even 6 month old code will NEED to be hacked to use the very very very new versions of gcc and libs and other NEW versions of programs
that and having to reinstall fedora EVERY 6 months is why i finally got off the fedora roller coaster
and moved to OpenSUSE
And if not: Does anyone have a manual for beginners on how to install two gcc versions parallel? :S
as far as i know fedora repos do NOT supply older versions of gcc ( other than “gcc34-compt” )
YOU have to build it from source
then set "alternatives " in fedora to point to the different version
or
go “old school” like i do
with shell scripts that remove and relink links to the different versions
an example
– WARNING!!! USE CAUTION!!!
to set 4.8 on MY SYSTEM