OpenFPM  5.2.0
Project that contain the implementation of distributed structures
gpu_types.hpp
1 #pragma once
2 
3 namespace gpu {
4 
5 struct cuda_exception_t : std::exception {
6  cudaError_t result;
7 
8  cuda_exception_t(cudaError_t result_) : result(result_) { }
9  virtual const char* what() const noexcept {
10  return cudaGetErrorString(result);
11  }
12 };
13 
14 }