CUB
|
Classes | |
struct | cub::CachingDeviceAllocator |
A simple caching allocator for device memory allocations. More... | |
Macros | |
#define | CubDebug(e) cub::Debug((e), __FILE__, __LINE__) |
Debug macro. | |
#define | CubDebugExit(e) if (cub::Debug((e), __FILE__, __LINE__)) { exit(1); } |
Debug macro with exit. | |
#define | _CubLog(format,...) printf(format,__VA_ARGS__); |
Log macro for printf statements. | |
Functions | |
__host__ __device__ __forceinline__ cudaError_t | cub::Debug (cudaError_t error, const char *filename, int line) |
CUB error reporting macro (prints error messages to stderr) More... | |
CUB_RUNTIME_FUNCTION __forceinline__ cudaError_t | cub::PtxVersion (int &ptx_version) |
Retrieves the PTX version that will be used on the current device (major * 100 + minor * 10) More... | |
CUB_RUNTIME_FUNCTION __forceinline__ cudaError_t | cub::SmVersion (int &sm_version, int device_ordinal) |
Retrieves the SM version (major * 100 + minor * 10) | |
__host__ __device__ __forceinline__ cudaError_t cub::Debug | ( | cudaError_t | error, |
const char * | filename, | ||
int | line | ||
) |
CUB error reporting macro (prints error messages to stderr)
If CUB_STDERR
is defined and error
is not cudaSuccess
, the corresponding error message is printed to stderr
(or stdout
in device code) along with the supplied source context.
Definition at line 68 of file util_debug.cuh.
CUB_RUNTIME_FUNCTION __forceinline__ cudaError_t cub::PtxVersion | ( | int & | ptx_version) |
Retrieves the PTX version that will be used on the current device (major * 100 + minor * 10)
Type definition of the EmptyKernel kernel entry point
Force EmptyKernel<void> to be generated if this class is used
Definition at line 118 of file util_device.cuh.