mirror of
https://github.com/huggingface/candle.git
synced 2025-06-21 04:10:46 +00:00
Update the flash attn kernels. (#2333)
This commit is contained in:
8
candle-flash-attn/kernels/error.h
Normal file
8
candle-flash-attn/kernels/error.h
Normal file
@ -0,0 +1,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())
|
Reference in New Issue
Block a user