mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-19 22:38:52 +00:00
Add Benchmark.setIsCPUOnly API
This commit is contained in:
@@ -286,6 +286,13 @@ PYBIND11_MODULE(_nvbench, m)
|
||||
return std::ref(self);
|
||||
},
|
||||
py::return_value_policy::reference);
|
||||
py_benchmark_cls.def(
|
||||
"setIsCPUOnly",
|
||||
[](nvbench::benchmark_base &self, bool is_cpu_only) {
|
||||
self.set_is_cpu_only(is_cpu_only);
|
||||
return std::ref(self);
|
||||
},
|
||||
py::return_value_policy::reference);
|
||||
|
||||
// == STEP 5
|
||||
// Define PyState class
|
||||
|
||||
Reference in New Issue
Block a user