Oleksandr Pavlyk
c9f0785aed
Replace uses of deprecated typing.Tuple, typing.Callable, etc.
...
Also use typing.Self to encode that `Benchmark.addInt64Axis` returns
self.
2025-07-28 15:37:04 -05:00
Oleksandr Pavlyk
6f8bcdc774
Fixed correctness of nvbench.State.getStream() method
...
Fix run-time exception:
```
Fail: Unexpected error: RuntimeError: return_value_policy = copy, but type is non-copyable! (#define PYBIND11_DETAILED_ERROR_MESSAGES or compile in debug mode for details)
```
caused by attempt to returning move-only `nvbench::cuda_stream` class
instance using default `pybind11::return_value_policy::copy`.
2025-07-28 15:37:04 -05:00
Oleksandr Pavlyk
e768ce28b6
Add Python stub file for cuda.nvbench API
2025-07-28 15:37:04 -05:00
Oleksandr Pavlyk
c49d718f65
Corrected nvbench.State.getBlockingKernel -> getBlockingKernelTimeout
...
Similar change for setBlockingKernelTimeout.
Corrected statement in a comment.
2025-07-28 15:37:04 -05:00
Oleksandr Pavlyk
c184549cda
Import and reexport symbols from _nvbench one-by-one
2025-07-28 15:37:04 -05:00
Oleksandr Pavlyk
b88cc78aeb
Add license header to py_nvbench.cpp
...
Also updated comment as to why calling
`nvbench::benchmark_manager::get().initialize()` is necessary
for running all tests.
2025-07-28 15:37:04 -05:00
Oleksandr Pavlyk
6552ef503c
Draft of Python API for NVBench
...
The prototype is based on pybind11 to minimize boiler-plate
code needed to deal with move-only semantics of many nvbench
classes.
2025-07-28 15:37:04 -05:00