LoginSignup
8
5

More than 5 years have passed since last update.

nvcc fatal : The version ('80100') of the host compiler ('Apple clang') is not supported

Last updated at Posted at 2017-05-07

MacBookProでCUDAコンパイルしようとした所エラーが出たのでその対処法について

エラー内容
nvcc fatal : The version ('80100') of the host compiler ('Apple clang') is not supported

OSをsierraに変えた事で,以前まで問題なかったMacBookProでCUDAのコンパイルができなくなりました.

原因を探した所,CUDAがコンパイルする際に関連しているXcodeのライブラリが,最新版だとCUDA側が対応していない様子です.

$ clang --version
Apple LLVM version 8.1.0 (clang-802.0.42)

そこで,appleのDeveloperサイトからv7.3.1のCommand Line toolsをダウンロードしてインストールします.

commandlinetools.jpeg

インストールが終わったら,

$ sudo xcode-select --switch /Library/Developer/CommandLineTools

のコマンドで,バージョンを差し替えることで,

$ clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)

とバージョンを落とす事ができ,これで無事コンパイルできました.

MacでCUDAを使うには2014年前後のMacBookProしかハードがないため,このエラーに当たる人がそもそも少ないのでしょうか・・・

8
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
5