27 #include <cuda_runtime.h> 53 inline std::ostream&
operator<<(std::ostream& out, cudaError_t result) {
54 return out << cudaGetErrorString(result);
59 return out << e.what() <<
": " << e.
cudaError();
Definition: aligned_buffer.h:35
cudaError_t cudaError() const
Returns the underlying CUDA cudaError_t.
Definition: exceptions.h:42
cuda_exception(const char *msg="", cudaError_t err=cudaErrorUnknown)
Constructor.
Definition: exceptions.h:39
const char * msg
Explanatory string.
Definition: exceptions.h:46
std::ostream & operator<<(std::ostream &out, complex< T > const &z)
Definition: complex.h:291
C++ exception wrapper for CUDA cudaError_t.
Definition: exceptions.h:36
cudaError_t err
Underlying CUDA cudaError_t.
Definition: exceptions.h:49