
私は Fedora 31 に CUDA をインストールしようとしましたが、CUDA は公式には Fedora 29 (gcc 8.2) をサポートしていますが、Fedora 31 に同梱されているバージョンは 9.2 であるため、最後のステップで行き詰まりました。その後、CUDA サポート付きの PyTorch をインストールしましたが、驚くことではないのですが、CUDA サポートは存在しません。
>>> import torch
>>> device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
>>> device
device(type='cpu')
そこでgcc、g++、gfortranを検索してみました。パッケージしかし、次のような依存関係の地獄に陥ってしまいました。
sudo dnf install gcc-8.2.1-2.fc29.x86_64.rpm gcc-gfortran-8.2.1-2.fc29.x86_64.rpm gcc-c++-8.2.1-2.fc29.x86_64.rpm -y
Error:
Problem 1: conflicting requests
- nothing provides cpp = 8.2.1-2.fc29 needed by gcc-8.2.1-2.fc29.x86_64
- nothing provides libgomp = 8.2.1-2.fc29 needed by gcc-8.2.1-2.fc29.x86_64
Problem 2: conflicting requests
- nothing provides libgfortran = 8.2.1-2.fc29 needed by gcc-gfortran-8.2.1-2.fc29.x86_64
- nothing provides libquadmath = 8.2.1-2.fc29 needed by gcc-gfortran-8.2.1-2.fc29.x86_64
- nothing provides libquadmath-devel = 8.2.1-2.fc29 needed by gcc-gfortran-8.2.1-2.fc29.x86_64
Problem 3: conflicting requests
- nothing provides libstdc++ = 8.2.1-2.fc29 needed by gcc-c++-8.2.1-2.fc29.x86_64
- nothing provides libstdc++-devel = 8.2.1-2.fc29 needed by gcc-c++-8.2.1-2.fc29.x86_64
役に立つリンクをたくさん見つけたこの郵便受けしかし残念ながら、最新バージョンは gcc 7.3 です。最後のオプションはソースからビルドすることですが、それ以外に他のオプションはありますか? 私のコンピューターが適切な時間内にコンパイルを処理できるかどうかはわかりません。