mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
improved cuda error checking
This commit is contained in:
1 parent
edf4d9fd60
commit
04defb563f
5 files changed
+46
-88
No files matched your search
@@ -0,0 +1,10 @@
|
||||
#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
|
||||
|
||||