2015-02-26

CUDA 6.5 のビルドで出る大量の warning C4819 を消す

Visual Studio 2013 の CUDA 6.5 でビルドすると、次のような警告が大量に出る。

1>c:\program files\nvidia gpu computing toolkit\cuda\v6.5\include\math_functions.h : warning C4819: The file contains a character that cannot be represented in the current code page (932). Save the file in Unicode format to prevent data loss

これを表示しないようにするには、プロジェクトのプロパティを開き、
[CUDA C/C++]-[Command Line] の [Additional Options] に

-Xcompiler "/wd 4819"

を追加する。