$ lspci | grep -i nvidia
https://developer.nvidia.com/cuda-gpus
GPUがCUDAが使用可能かを確認。上記URLの一覧に使用しているグラフィックカードがあればOK。
$ uname -m && cat /etc/*release
Linuxのバージョン確認。
$ gcc –version
gccのバージョン確認。
$ uname -r
正しいkernel-headersパッケージとkernel-develパッケージがインストールされているか確認。
# yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)
(古いカーネルを削除する場合)
https://pasela.hatenablog.com/entry/20090120/oldkernels
NVIDIA CUDA Toolkitのダウンロード
https://developer.nvidia.com/cuda-downloads
$ sudo rpm –install cuda-repo-<distro>-<version>.<architecture>.rpm
$ sudo yum clean expire-cache
$ sudo yum install cuda
エラーが出る・・・。
警告: rpmts_HdrFromFdno: ヘッダ V3 RSA/SHA512 Signature, key ID 7fa2af80: NOKEY
Retrieving key from http://developer.download.nvidia.com/compute/cuda/repos/GPGKEY
The GPG keys listed for the “cuda” repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.
イマココ。さて,どうしたもんかね・・・。