OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
gpu_types.hpp
1#pragma once
2
3namespace gpu {
4
5struct 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}