Moved timing source to C++
[alexxy/gromacs.git] / cmake / TestCUDAVersion.c
1 #include <cuda_runtime_api.h>
2 int main()
3 {
4 /* This macro checks the generated GMX_CUDA_VERSION against the CUDA runtime
5  * API version in cuda_runtime_api.h.
6  *
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;
14 }