mirror of
https://github.com/sgjzfzzf/triton-tvm-ffi.git
synced 2026-07-01 08:51:56 +08:00
support GetDeviceProperties
Signed-off-by: Jinjie Liu <jjliu@baai.ac.cn>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user