Revision 8 as of 2017-05-19 13:04:37

Clear message
Edit Info Other
Login
Howto/

CUDA

Installation

This Howto provides a way to install the official NVIDIA packages for CUDA.

Repository

This repository contains a given version of CUDA that is parallel installable along with another version.

Please use the Official link: https://developer.nvidia.com/cuda-downloads

Known issues

GCC version

When using a later version of Fedora than what is supported by the NVIDIA CUDA Official repository, you might be unable to compile. You can either:

sudo dnf install http://ftp.ciril.fr/pub/linux/centos/7.3.1611/extras/x86_64/Packages/centos-release-scl-2-2.el7.centos.noarch.rpm
sudo dnf install devtoolset-4-toolchain

You cannot install the whole devtoolset-4 collection, but the toolchain is enough , then each time you need to build using cuda, you start by

scl run devtoolset-4 bash
gcc --version
gcc (GCC) 5.2.1 20150902 (Red Hat 5.2.1-2)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
exit
gcc --version
gcc (GCC) 6.2.1 20160916 (Red Hat 6.2.1-2)
Copyright © 2016 Free Software Foundation, Inc.
Ce logiciel est libre; voir les sources pour les conditions de copie.  Il n'y a PAS
GARANTIE; ni implicite pour le MARCHANDAGE ou pour un BUT PARTICULIER

Which driver Package

Both "Cuda" and "RPM Fusion" repositories provide the nvidia driver packages. Usually, the package provided by RPM Fusion is higher. But in case you want to avoid the risk, add this to the /etc/yum.repos.d/cuda.repo

#/etc/yum.repos.d/cuda.repo
[cuda]
name=cuda

exclude=xorg-x11-drv-nvidia\*,akmod-nvidia\*

References


CategoryHowto