Ask Your Question
0

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.

https://docs.nvidia.com/cuda/cuda-ins...

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
0

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
0

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):

https://koji.fedoraproject.org/koji/b...

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

Comments

I successfully installed this kernel

kernel-core-4.15.17-300.fc27.x86_64.rpm

kernel-devel-4.15.17-300.fc27.x86_64.rpm

kernel-headers-4.15.17-300.fc27.x86_64.rpm

kernel-modules-4.15.17-300.fc27.x86_64.rpm

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

but

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 167 times

Last updated: Sep 03 '18