mirror of
https://github.com/deepseek-ai/DeepInfer.git
synced 2026-10-27 00:45:06 +00:00
46 lines
1.8 KiB
C++
46 lines
1.8 KiB
C++
#include "graph_timer.hpp"
|
|
|
|
#include <stdexcept>
|
|
|
|
namespace deepinfer::graph_timer {
|
|
|
|
EventHandle::EventHandle() { throw std::runtime_error("NPU graph timer primitives are not implemented yet"); }
|
|
|
|
void EventHandle::record(int64_t stream, bool capture_external) const {
|
|
throw std::runtime_error("NPU graph timer primitives are not implemented yet");
|
|
}
|
|
|
|
void EventHandle::synchronize() const { throw std::runtime_error("NPU graph timer primitives are not implemented yet"); }
|
|
|
|
bool EventHandle::query() const { throw std::runtime_error("NPU graph timer primitives are not implemented yet"); }
|
|
|
|
float EventHandle::elapsed_time(const EventHandle &end_event) const {
|
|
throw std::runtime_error("NPU graph timer primitives are not implemented yet");
|
|
}
|
|
|
|
bool EventHandle::operator==(const EventHandle &other) const {
|
|
throw std::runtime_error("NPU graph timer primitives are not implemented yet");
|
|
}
|
|
|
|
std::size_t EventHandle::hash() const { throw std::runtime_error("NPU graph timer primitives are not implemented yet"); }
|
|
|
|
EventHandle EventRecordNodeHandle::get_event() const { throw std::runtime_error("NPU graph timer primitives are not implemented yet"); }
|
|
|
|
void EventRecordNodeHandle::set_event(const EventHandle &event) {
|
|
throw std::runtime_error("NPU graph timer primitives are not implemented yet");
|
|
}
|
|
|
|
GraphHandle::GraphHandle(py::object graph) : graph_(std::move(graph)) {}
|
|
|
|
std::vector<EventRecordNodeHandle> GraphHandle::get_event_record_nodes() const {
|
|
throw std::runtime_error("NPU graph timer primitives are not implemented yet");
|
|
}
|
|
|
|
bool GraphHandle::operator==(const GraphHandle &other) const {
|
|
throw std::runtime_error("NPU graph timer primitives are not implemented yet");
|
|
}
|
|
|
|
std::size_t GraphHandle::hash() const { throw std::runtime_error("NPU graph timer primitives are not implemented yet"); }
|
|
|
|
} // namespace deepinfer::graph_timer
|