MCPcopy Create free account
hub / github.com/arrayfire/forge / handleCUDAError

Function handleCUDAError

include/ComputeCopy.h:124–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122#if defined(USE_FORGE_CUDA_COPY_HELPERS)
123
124static void handleCUDAError(cudaError_t err, const char *file, int line)
125{
126 if (err != cudaSuccess) {
127 printf( "%s in %s at line %d\n", cudaGetErrorString(err), file, line);
128 exit(EXIT_FAILURE);
129 }
130}
131
132#define FORGE_CUDA_CHECK(err) (handleCUDAError(err, __FILE__, __LINE__ ))
133

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected