mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
Rename NVBenchRuntimeException to NVBenchRuntimeError
Added exception to __init__.pyi
This commit is contained in:
@@ -261,3 +261,8 @@ def run_all_benchmarks(argv: Sequence[str]) -> None:
|
||||
Sequence of CLI arguments controlling NVBench. Usually, it is `sys.argv`.
|
||||
"""
|
||||
...
|
||||
|
||||
class NVBenchRuntimeError(RuntimeError):
|
||||
"""An exception raised if running benchmarks encounters an error"""
|
||||
|
||||
...
|
||||
|
||||
@@ -595,7 +595,7 @@ PYBIND11_MODULE(_nvbench, m)
|
||||
// Use handle to take a memory leak here, since this object's destructor may be called after
|
||||
// interpreter has shut down
|
||||
benchmark_exc =
|
||||
py::exception<nvbench_run_error>(m, "NVBenchRuntimeException", PyExc_RuntimeError).release();
|
||||
py::exception<nvbench_run_error>(m, "NVBenchRuntimeError", PyExc_RuntimeError).release();
|
||||
// == STEP 6
|
||||
// ATTN: nvbench::benchmark_manager is a singleton
|
||||
|
||||
|
||||
Reference in New Issue
Block a user