Following the suggestion of Herb Sutter’s “C++ Coding Standards”, I always to compile my projects with the highest warning level. With GCC, this happens to be “-Wall -Werror -ansi -pedantic”. When I include “cuda.h” in a C++ program compiled with g++ with the above options, it gives me the following warning/error:
/opt/cuda/include/cuda.h:101: error: comma at end of enumerator list
This warning is complaining about the following enumeration definition in cuda.h:
When the comma after the last enumerator definition is removed, the warning/error goes away. This seems to be a relatively benign change, can this be corrected before the CUDA 2.0 release? Note that this same problem exists in both the CUDA 1.1 and 2.0b2 releases.