mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
11 lines
270 B
C
11 lines
270 B
C
#ifndef CUDA_ERROR_H
|
|
#define CUDA_ERROR_H
|
|
|
|
#include "cuda_runtime.h"
|
|
|
|
#define check_cuda_errors(val) check_cuda( (val), #val, __FILE__, __LINE__ )
|
|
void check_cuda(cudaError_t res, char const* const func, const char* const file, int const line);
|
|
|
|
#endif // CUDA_ERROR_H
|
|
|