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.

From: Amadeus W.M. <amadeus84@verizon.net>
Sent: Sunday, July 31, 2016 9:08:35 AM
To: users@lists.fedoraproject.org
Subject: gcc 4.9
 
I want to do some parallel programming on my nvidia GPU, and for that I
need cuda. The latest is cuda 7.5 and that requires gcc 4.9. I installed
cuda on my machine, but little did I know that fedora 24, which I recently
installed, came with gcc 6.1. I wasn't able to compile any of the cuda
examples. I asked on the nvidia forums about this and the next cuda
(version 8.0) will require gcc-5.3 or so. No indication when cuda will
work with gcc-6.1.

So what do I do now? From some posts I read it appears that debian
provides a gcc49 package, and so I hoped fedora would provide one too, but
no such luck. Can I rebuild the gcc-4.9 rpm on F24 without messing up the
stock gcc-6.1? Or, can I convert the gcc49.deb package into the equivalent
rpm? I can try these things and try to be careful not to mess up, but I
was wondering if anyone had any experience with this or any suggestions.
Thanks!

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org