#pragma once #include #include #include #define CUDA_CHECK(func) \ { \ auto status = func; \ if (status != cudaSuccess) { \ throw std::runtime_error(cudaGetErrorString(status)); \ } \ }