Is there a way to turn of the warnings during compiling?
I got all sorts of warnings like:
"test.cu", line 108: warning: variable "dx" was declared but never referenced
float *dx;
^
"test.cu", line 109: warning: variable "ysource" was declared but never
referenced
float *ysource;
these variables are constants but because there are a lot of warnings… I sometimes want to turn them of, so I get only the errors… Make things a lot easier then to have to look through the warnings to find the error messages :)
I already saw someone posted something like this before but there were no answers so I’ll try it again.
Ok that sounds OK. But then I need to change all the code. And sometimes i want to see the warnings and sometimes I don’t. I was more looking for a way to just give an option to nvcc as --nowarnings.
That is controlled by the Makefile include NVIDIA_CUDA_SDK/common/common.mk which you would have to manually edit to change the warning levels. Try to play around with this section: