I am building caffe using "build_win.cmd". After figuring out the right version of Visual Studio and CUDA, it seems to compile as expected. However, I got a lot of warnings. Can anyone fix it?
c:\program files\nvidia gpu computing toolkit\cuda\v8.0\include\device_functions.h : warning C4819: The file
contains a character that cannot be represented in the current code page (936). Save the file in Unicode form
at to prevent data loss [C:\work\deeplearn\caffe\build\src\caffe\caffe.vcxproj]
c:\program files\nvidia gpu computing toolkit\cuda\v8.0\include\device_functions.h(774): warning C4819: The f
ile contains a character that cannot be represented in the current code page (936). Save the file in Unicode
format to prevent data loss [C:\work\deeplearn\caffe\build\src\caffe\caffe.vcxproj]
c:\program files\nvidia gpu computing toolkit\cuda\v8.0\include\device_functions.h(1618): warning C4819: The
file contains a character that cannot be represented in the current code page (936). Save the file in Unicode
format to prevent data loss [C:\work\deeplearn\caffe\build\src\caffe\caffe.vcxproj]
c:\program files\nvidia gpu computing toolkit\cuda\v8.0\include\device_double_functions.h : warning C4819: Th
e file contains a character that cannot be represented in the current code page (936). Save the file in Unico
de format to prevent data loss [C:\work\deeplearn\caffe\build\src\caffe\caffe.vcxproj]
c:\program files\nvidia gpu computing toolkit\cuda\v8.0\include\sm_20_intrinsics.h : warning C4819: The file
contains a character that cannot be represented in the current code page (936). Save the file in Unicode form
at to prevent data loss [C:\work\deeplearn\caffe\build\src\caffe\caffe.vcxproj]
c:\program files\nvidia gpu computing toolkit\cuda\v8.0\include\sm_20_intrinsics.h(943): warning C4819: The f
ile contains a character that cannot be represented in the current code page (936). Save the file in Unicode
format to prevent data loss [C:\work\deeplearn\caffe\build\src\caffe\caffe.vcxproj]
@nlpguyz In CMake, check "CUDA_NVCC_FLAGS" under CUDA group. It should be -Xcompiler "/wd4819".
/wd is the compiler option for disabling specific warnings.
@shelhamer Should we close this issue?
I am building caffe using "build_win.cmd". After figuring out the right version of Visual Studio and CUDA, it seems to compile as expected. However, I got a lot of warnings. Can anyone fix it?
c:\program files\nvidia gpu computing toolkit\cuda\v8.0\include\device_functions.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode form at to prevent data loss [C:\work\deeplearn\caffe\build\src\caffe\caffe.vcxproj] c:\program files\nvidia gpu computing toolkit\cuda\v8.0\include\device_functions.h(774): warning C4819: The f ile contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss [C:\work\deeplearn\caffe\build\src\caffe\caffe.vcxproj] c:\program files\nvidia gpu computing toolkit\cuda\v8.0\include\device_functions.h(1618): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss [C:\work\deeplearn\caffe\build\src\caffe\caffe.vcxproj] c:\program files\nvidia gpu computing toolkit\cuda\v8.0\include\device_double_functions.h : warning C4819: Th e file contains a character that cannot be represented in the current code page (936). Save the file in Unico de format to prevent data loss [C:\work\deeplearn\caffe\build\src\caffe\caffe.vcxproj] c:\program files\nvidia gpu computing toolkit\cuda\v8.0\include\sm_20_intrinsics.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode form at to prevent data loss [C:\work\deeplearn\caffe\build\src\caffe\caffe.vcxproj] c:\program files\nvidia gpu computing toolkit\cuda\v8.0\include\sm_20_intrinsics.h(943): warning C4819: The f ile contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss [C:\work\deeplearn\caffe\build\src\caffe\caffe.vcxproj]