6 #define GPU_ONE_SIXTH (1.0/6.0)
7 #define GPU_THREADS_PER_BLOCK 64
8 #define GPU_MAX_NDIMS 3
9 #define GPU_MAX_NVARS 5
11 #if defined(HAVE_CUDA) && defined(__NVCC__)
13 cudaError_t checkCuda(cudaError_t result)
15 #if defined(DEBUG) || defined(_DEBUG)
16 if (result != cudaSuccess) {
17 fprintf(stderr,
"CUDA Runtime Error: %s\n", cudaGetErrorString(result));
18 assert(result == cudaSuccess);
Some basic definitions and macros.