#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <memory>
#include <stdexcept>
#include <vector>
Go to the source code of this file.
|
| __global__ void | gpu_chunking::chunk_kernel (const int *data, int *chunk_boundaries, int data_size, int window_size, float threshold) |
| |
◆ CUDA_CHECK
| #define CUDA_CHECK |
( |
|
call | ) |
|
Value: do { \
cudaError_t error = call; \
if (error != cudaSuccess) { \
throw std::runtime_error(std::string("CUDA error: ") + cudaGetErrorString(error)); \
} \
} while (0)
Definition at line 12 of file gpu_chunking.hpp.
13 { \
14 cudaError_t error = call; \
15 if (error != cudaSuccess) { \
16 throw std::runtime_error(std::string("CUDA error: ") + cudaGetErrorString(error)); \
17 } \
18 } while (0)