Export exception to nvbench namespace

This commit is contained in:
Oleksandr Pavlyk
2025-08-04 12:00:42 -05:00
parent 9dfdd8af89
commit d8b0acc8d4
2 changed files with 5 additions and 1 deletions

View File

@@ -43,6 +43,9 @@ from cuda.nvbench._nvbench import ( # noqa: E402
from cuda.nvbench._nvbench import ( # noqa: E402
Launch as Launch,
)
from cuda.nvbench._nvbench import ( # noqa: E402
NVBenchRuntimeError as NVBenchRuntimeError,
)
from cuda.nvbench._nvbench import ( # noqa: E402
State as State,
)

View File

@@ -33,7 +33,7 @@ class CudaStream:
Note
----
The class is not directly constructible.
The class is not user-constructible.
"""
def __cuda_stream__(self) -> tuple[int, int]:
"""
@@ -65,6 +65,7 @@ class Benchmark:
Note
----
The class is not user-constructible.
Use `~register` function to create Benchmark and register
it with NVBench.
"""