Go to the source code of this file.
Defines | |
#define | cmtkCheckCallCUDA(cmd) { const cudaError_t cudaError = cmd; if ( cudaError != cudaSuccess ) { fprintf( stderr, "CUDA command failed with error '%s' at %s:%d\n", cudaGetErrorString( cudaError ), __FILE__, __LINE__ ); cmtk::StackBacktrace::PrintBacktrace(); exit(1); } } |
#define | cmtkCheckLastErrorCUDA { const cudaError_t cudaError = cudaGetLastError(); if ( cudaError != cudaSuccess ) { fprintf( stderr, "CUDA error '%s' at %s:%d\n", cudaGetErrorString( cudaError ), __FILE__, __LINE__ ); cmtk::StackBacktrace::PrintBacktrace(); exit( 1 ); } } |
#define cmtkCheckCallCUDA | ( | cmd ) | { const cudaError_t cudaError = cmd; if ( cudaError != cudaSuccess ) { fprintf( stderr, "CUDA command failed with error '%s' at %s:%d\n", cudaGetErrorString( cudaError ), __FILE__, __LINE__ ); cmtk::StackBacktrace::PrintBacktrace(); exit(1); } } |
Definition at line 43 of file cmtkCUDA.h.
Referenced by cmtk::DeviceMemoryCUDA::CopyOnDevice(), cmtk::DeviceArrayCUDA::CopyOnDeviceToArray(), cmtk::DeviceArrayCUDA::CopyOnDeviceToLinear(), cmtk::DeviceMemoryCUDA::CopyToDevice(), cmtk::DeviceArrayCUDA::CopyToDevice(), cmtk::DeviceMemoryCUDA::CopyToHost(), cmtk::DeviceArrayCUDA::DeviceArrayCUDA(), cmtk::DeviceMemoryCUDA::DeviceMemoryCUDA(), cmtk::DeviceMemoryCUDA::Memset(), cmtk::DeviceArrayCUDA::~DeviceArrayCUDA(), and cmtk::DeviceMemoryCUDA::~DeviceMemoryCUDA().
#define cmtkCheckLastErrorCUDA { const cudaError_t cudaError = cudaGetLastError(); if ( cudaError != cudaSuccess ) { fprintf( stderr, "CUDA error '%s' at %s:%d\n", cudaGetErrorString( cudaError ), __FILE__, __LINE__ ); cmtk::StackBacktrace::PrintBacktrace(); exit( 1 ); } } |
Definition at line 46 of file cmtkCUDA.h.