On Sun, 2016-07-31 at 11:32 -0700, stan wrote:
On Sun, 31 Jul 2016 11:06:18 -0700 stan stanl-fedorauser@vfemail.net wrote:
On Sun, 31 Jul 2016 17:24:16 +0000 (UTC) "Amadeus W.M." amadeus84@verizon.net wrote:
On Sun, 31 Jul 2016 16:36:10 +0000, Rick Stevens wrote:
IIRC the cuda installer lets you override the check for the gcc version (try running the installer ".run" file with the " --help" option).
Note that overrides the gcc check during installation--there's no guarantee that compilations will work. Cuda uses certain gcc flags that may be deprecated or non-existent in newer gcc implementations.
Rick Stevens, Systems Engineer AllDigital, Inc. ________________________________
NVIDIA provides a cuda rpm repository and I installed everything from there with dnf, so it installed with whatever defaults it came with. And, as you said, even if it doesn't check for the compiler, it won't necessarily compile. I'm really looking for a clean way of installing gcc-4.9.
Some further thoughts. The 4.9 compiler is from F21. So you could build a virtual machine of F21 to use for this, or do a minimal install just for this purpose. I can't remember the link, but Fedora keeps a snapshot of the last version of each version, so there is an F21 repository with all the software in it, current at the end of the version. Then just install from the cuda repository, and off you go.
This would be a lot easier than trying to bolt gcc 4.9 onto the latest Fedora.
Another alternative would be to just get the source from https://www.gn u.org/software/gcc/ and build a local copy in /usr/local or your home directory. That would avoid all the conflicts that RPMs generate with the system GCC. I did that once some time back and it's not that hard.