Ask Your Question

How-To set kernel/gcc/version for NVIDIA Cuda support

asked 2018-09-02 13:21:41 -0500

ng0177 gravatar image

updated 2018-09-03 03:14:09 -0500

I would like to use NVIDIA Cuda on Fedora as required.

1.1. System Requirements Table 1. Native Linux Distribution Support in CUDA 9.2 Distribution Kernel* GCC GLIBC Fedora 27 4.15.x 7.3.1 2.26

Anyone savy to know a straightforward way of meeting these? Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-09-03 13:44:11 -0500

ng0177 gravatar image

I guess, Fedora does not really support specific kernel/gcc/glibc versions that may be supported by e.g. graphics drivers or required for other reasons. A struggle between propriety drivers and free OS leaves the average user stranded. Sad but true!

edit flag offensive delete link more

answered 2018-09-03 03:33:49 -0500

abadrinath gravatar image

Assuming you have F27 installed, you'll need to use Koji to download a compatible kernel. Here is a link to a 4.15.x kernel on F27 (has all the packages required):

As far as I am aware, F27 comes with GLIBC 2.26, but if it does not, there are multiple (difficult) ways to get it to work. You could create your own glib library with everything in it and add it to LD_LIBRARY_PATH or downgrade the version to 2.26 using dnf (very dangerous).

GCC shouldn't be difficult (I think):

dnf install gcc-7.3.1-6.fc27

Hope that helps!

edit flag offensive delete link more


I successfully installed this kernel





sudo dnf -y erase kernel-headers sudo rpm -ivh kernel*.rpm


dnf install gcc-7.3.1-6.fc27 is not found

so that turns out to be tricky. Any advice?

GLIBC 2.26 is hopefully valid.

ng0177 gravatar imageng0177 ( 2018-09-03 07:49:09 -0500 )edit

Question Tools

1 follower


Asked: 2018-09-02 13:20:18 -0500

Seen: 201 times

Last updated: Sep 03 '18