GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
cuda/utils.h File Reference
#include <iostream>
#include "logging.h"

Go to the source code of this file.

Macros

#define CHECK_CU_ERRORS(call)   call
 
#define CHECK_CUDA_ERRORS(call)
 

Macro Definition Documentation

◆ CHECK_CU_ERRORS

#define CHECK_CU_ERRORS (   call)    call

◆ CHECK_CUDA_ERRORS

#define CHECK_CUDA_ERRORS (   call)
Value:
{ \
cudaError_t error = call; \
if (error != cudaSuccess) { \
LOGE_BACKEND << __FILE__ << ": " << __LINE__ << ": cuda runtime error " << error << ": " << cudaGetErrorString(error); \
exit(EXIT_FAILURE); \
} \
}