Files
project_0920/upstream_ref/cuda_gemm_optimization/cuda_gemm_utils.hpp

13 lines
433 B
C++
Raw Normal View History

2026-09-20 02:20:26 +00:00
#ifndef CUDA_GEMM_UTILS_HPP
#define CUDA_GEMM_UTILS_HPP
#include <cuda_runtime.h>
#define CHECK_CUDA_ERROR(val) check_cuda((val), #val, __FILE__, __LINE__)
void check_cuda(cudaError_t err, const char* const func, const char* const file,
const int line);
#define CHECK_LAST_CUDA_ERROR() check_cuda_last(__FILE__, __LINE__)
void check_cuda_last(const char* const file, const int line);
#endif // CUDA_GEMM_UTILS_HPP