Ask Your Question

How get CUDA 9.2 working on Fedora 28

asked 2018-06-13 10:19:55 -0500

chaitanyacix gravatar image

updated 2018-06-13 10:21:40 -0500

I am trying to run cuda 9.2 (for tensorflow) after upgrading to fedora 28, for testing the installation while compiling the cuda 9.2 samples the compilation failed, CUDA not yet support newer gcc, & fc 28 does not allow installation of gcc older than gcc8. for initial patch up I followed the process mentioned in :

as on fedora 27 it got the cuda 9.1 with gcc6 running for me but still the compilation is failing with " /c++/8/utility(311): error: pack expansion does not make use of any argument packs"
is there any way around or solution to get cuda-9.2 running on fedora 28?

edit retag flag offensive close merge delete



I wish I could upvote. I really, REALLY wish Fedora and Nvidia would get together and have better support for CUDA. Lack of Fedora/Nvidia support has me jumping to Ubuntu for CUDA.

rickhg12hs12 gravatar imagerickhg12hs12 ( 2018-06-13 16:55:49 -0500 )edit

Is Ubuntu going well with cuda? I may think of doing the same. I don't understand cuda 9+ hast to have float 128 support & while using nvcc it's one of the problem that's it's not defined. I just hope someone can suggest a fix for it

chaitanyacix gravatar imagechaitanyacix ( 2018-06-14 01:22:43 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2019-03-04 14:07:29 -0500

why2 gravatar image

Use the gcc-builderfrom Bob Steagall, see my post in

edit flag offensive delete link more

answered 2018-06-14 02:51:24 -0500

chaitanyacix gravatar image

Turns out reinstalling Nvidia Drivers, getting "akmods" for latest Kernel reinstalling CUDA 9.2 & following the edits mentioned in got it working with gcc8 which is by default provided with Fedora 28.

although had to try a lot of things to before figuring out the problem. I hope that in future these things with NVIDIA CUDA and fedora will be more synchronised.

edit flag offensive delete link more


I still don't know what the issue was so if any one know what was causing it please let me know or provide link for the same

chaitanyacix gravatar imagechaitanyacix ( 2018-06-14 03:12:30 -0500 )edit

answered 2018-12-15 16:40:11 -0500

Short answer: you should downgrade to fedora 27.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-06-13 10:19:55 -0500

Seen: 1,687 times

Last updated: Mar 04 '19