mirror of
https://github.com/sgjzfzzf/triton-tvm-ffi.git
synced 2026-07-01 08:51:56 +08:00
3a485166b4
Signed-off-by: Jinjie Liu <jjliu@baai.ac.cn>
21 lines
348 B
C++
21 lines
348 B
C++
#ifndef TRITON_TVM_FFI_EXCEPTION_H_
|
|
#define TRITON_TVM_FFI_EXCEPTION_H_
|
|
|
|
#include <cuda.h>
|
|
#include <exception>
|
|
|
|
namespace triton_tvm_ffi {
|
|
|
|
class CUDAException : public std::exception {
|
|
public:
|
|
CUDAException(CUresult code);
|
|
const char *what() const noexcept override;
|
|
|
|
private:
|
|
const CUresult code;
|
|
};
|
|
|
|
} // namespace triton_tvm_ffi
|
|
|
|
#endif
|