summaryrefslogtreecommitdiff
path: root/candle-flash-attn/kernels/error.h
blob: 0341692408ed8cf5e4031b3ea7f1fa919fbda885 (plain)
1
2
3
4
5
6
7
8
#pragma once

#define C10_CUDA_CHECK(EXPR)                                        \
  do {                                                              \
    const cudaError_t __err = EXPR;                                 \
  } while (0)

#define C10_CUDA_KERNEL_LAUNCH_CHECK() C10_CUDA_CHECK(cudaGetLastError())