16#define CUDA_ERROR_CHECK(EXP) \
18 cudaError_t errorCode = EXP; \
19 if (errorCode != cudaSuccess) { \
20 throw std::runtime_error(std::format("{}:{} Failed to execute: {} ({})", \
21 __FILE__, __LINE__, #EXP, \
22 cudaGetErrorString(errorCode))); \
57 return std::format(
"{} [id: {}, bus: {}, device: {}]", props.name, device,
58 props.pciBusID, props.pciDeviceID);
#define CUDA_ERROR_CHECK(EXP)
Helper macro used for checking cudaError_t type return values.
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
cudaStream_t m_stream
The CUDA stream to use for asynchronous copies.
Stream()
Constructor, creating the CUDA stream.
std::string name() const
Get the name of the device associated with the stream.
cudaStream_t stream() const
Get the CUDA stream.
~Stream()
Destructor, destroying the CUDA stream.