put utils in C++ side

Signed-off-by: Jinjie Liu <jjliu@baai.ac.cn>
This commit is contained in:
2026-01-29 18:23:02 +08:00
parent 781a5396cc
commit 1a01c9f2d8
7 changed files with 137 additions and 118 deletions
+9
View File
@@ -16,6 +16,15 @@ private:
const CUresult code_;
};
class NotImplementedException : public std::exception {
public:
NotImplementedException(std::string_view name);
const char *what() const noexcept override;
private:
const std::string message_;
};
class UnknownTypeException : public std::exception {
public:
UnknownTypeException(Type type);