nvcc.exe throws up a warning: controlling expression is constant for the following assert() in my .cu host code:
const int val0 = compute( arr0 ); const int val1 = compute( arr1 ); assert( ( val0 == val1 ) && "Values differ!" ); // Warning assert( val0 == val1 ); // No warning
Why is it generating a warning if I include a string in the assert? Is there a workaround for this warning? I like to include informative strings in assert and they compile fine without any warnings with the Visual C++ compiler.