|
pulsatrix
|
PULSATRIX_CUDA_CHECK – converts a CUDA runtime failure into a thrown C++ exception at the DeviceBackend boundary, per gpu_backend_programming/context_gpu_cuda_kernel_mechanics.md's Error Checking pattern. Only compiled when PULSATRIX_ENABLE_CUDA is set. More...
#include <cuda_runtime.h>#include <stdexcept>#include <string>
Go to the source code of this file.
Macros | |
| #define | PULSATRIX_CUDA_CHECK(call) |
| Checks a CUDA runtime call's cudaError_t result; throws std::runtime_error with the CUDA error string and source location if it did not succeed. | |
PULSATRIX_CUDA_CHECK – converts a CUDA runtime failure into a thrown C++ exception at the DeviceBackend boundary, per gpu_backend_programming/context_gpu_cuda_kernel_mechanics.md's Error Checking pattern. Only compiled when PULSATRIX_ENABLE_CUDA is set.
| #define PULSATRIX_CUDA_CHECK | ( | call | ) |
Checks a CUDA runtime call's cudaError_t result; throws std::runtime_error with the CUDA error string and source location if it did not succeed.