11/22 日記 nncvが動かない2
nncvはコマンドとして認識されるようになった。
C:\Users\sinki>nvcc hello.cu
hello.cu
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include\crt/host_config.h(153): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
このようなエラーが表示され、Visual Studioのバージョンがサポートされていないといわれた。
バージョンは2022でサポート範囲内だと思うので、「Visual Studio」、「NVIDIA ドライバ」、「NVIDIA CUDA ツールキット」、「NVIDIA cuDNN v8.9.7 のインストール手順」等のインストール順を参考ページ通りにもう一度試す。
参考にしているページ