I have a MSI GTX 1060, running Fedora 25, Blender 2.78a, Nvidia drivers 375.26, and Cuda 8.0.44.
I got the Cuda toolkit from Nvidia's website, installed the repo, and installed the cuda packages but it insists that I need to install xorg-x11-drv-nvidia from RPMFusion*. Which I have done and it all seems to work fine. Once those drivers are installed, if I run glxspheres it indicates I'm using the nvidia kernel module.
When I first try to render something using Cycles Render, I get an error about an unsupported version of GCC. After looking up the fix, I edit the appropriate .h file to remove the offending line. After that, the next time I try to render, I get a long output starting with undefined "nullptr" then multiple lines about expecting semi-colons.
The full error can be found here: http://pastebin.com/zpw6xFYU
Any ideas on what I'm doing wrong? I've tried to search for an answer for nothing comes up.
*I recognize this is not the preferred method to install proprietary drivers, but I was unable to get around this dependency. If the solution involves removing these drivers and cuda, installing the binary manually from Nvidia (which I can do), then installing Cuda in another manner, I'm open to that.