How to tell nvcc.exe disable to print some warning information?

In MS Visual Studio 2010,when I compile .cu file,the nvcc.exe will print some warning information like below:

1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\include\math_functions.h : 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
1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\include\math_functions.h(853): 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
1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\include\math_functions.h(1820): 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
1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\include\math_functions.h(2700): 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
1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\include\math_functions.h(3633): 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
1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\include\math_functions.h(4541): 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
1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\include\math_functions.h(5447): 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
1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\include\math_functions.h(6341): 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
1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\include\math_functions.h(7191): 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
1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\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 format to prevent data loss
1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\include\device_functions.h(783): 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
1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\include\device_functions.h(1659): 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
1>f:\nvidia cuda sdk\v6.5_gt9xx\cuda toolkit\include\sm_13_double_functions.h : 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

the warning C4819 is worthles for me,but nvcc.exe print it repeatedly,and make the compile output hard to read, so how I can tell nvcc.exe not to print warning C4819?

Those error messages seem to be from MSVC, not nvcc. nvcc is just a driver program that invokes various executables, including the host compiler to compile the host portions of a .cu file. What version of MSVC are you running, and what warning level did you select (/W3, /W4 maybe).

For what it’s worth, I am using nvcc on a Windows7 system with MSVC and have never encountered these warnings, but then I am running with the garden-variety US English version. What is the language of your Windows installation? Code page 936 implies Simplified Chinese from what I could find. I was not aware that Windows still uses code pages, I thought it had been completely changed to Unicode years ago. What Windows version is this?

[Later:] Based on Microsoft’s documentation, this seems to be a level 1 warning, so the only reasonable way to suppress this is probably to turn off this specific warning using the appropriate host compiler flag, which appears to be /wd4819. You can pass host compiler flags from the nvcc command line by prefixing them with -Xcompiler, so try -Xcompiler /wd4819. Or you may need -Xcompiler “/wd4819”, I am not sure whether you would need enclosing double quotes here.

Best I can tell, the offending characters occur as part of auto-documentation comments that contain lines like the following:

<m:mo>±<!-- ▒ --></m:mo>

From the complicated look of them, these comments are probably generated by tools, not clear whether “bad” characters can be avoided there. You may want to bring it to NVIDIA’s attention by filing a bug report.

Thanks njuffa,I add “-Xcompiler /wd4819” to nvcc command line,then the problem is solved!