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!