Fix unused variable warnings for gcc-4.6.4
[gromacs.git] / cmake / TestCUDAVersion.c
blobb649ccdc755ccd0508237fb9b6befdcb740dd69c
1 #include <cuda_runtime_api.h>
2 int main()
4 /* This macro checks the generated GMX_CUDA_VERSION against the CUDA runtime
5 * API version in cuda_runtime_api.h.
7 * From CUDA v7.5 it is expected that nvcc will define its own version; a check
8 * of that version should be implemented here later.
9 */
10 #if CUDART_VERSION != GMX_CUDA_VERSION
11 #error CUDA version mismatch: CUDART_VERSION != GMX_CUDA_VERSION
12 #endif
13 return 0;