Skip to content

Commit 4fc628c

Browse files
Python native extension to use CXX/CUDA standard of NVBench library
This fixes cryptic build failure with GNU compiler 14
1 parent 3fea652 commit 4fc628c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

python/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ target_link_libraries(_nvbench PRIVATE CUDA::cudart_static)
3232
set_target_properties(_nvbench PROPERTIES INSTALL_RPATH "$ORIGIN")
3333
set_target_properties(_nvbench PROPERTIES INTERPROCEDURAL_OPTIMIZATION ON)
3434
set_target_properties(_nvbench PROPERTIES POSITION_INDEPENDENT_CODE ON)
35-
set_target_properties(_nvbench PROPERTIES CXX_STANDARD 20)
3635

3736
install(TARGETS _nvbench DESTINATION cuda/nvbench)
3837

python/src/py_nvbench.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct benchmark_wrapper_t
102102

103103
class nvbench_run_error : std::runtime_error
104104
{};
105-
constinit py::handle benchmark_exc{};
105+
py::handle benchmark_exc{};
106106

107107
class GlobalBenchmarkRegistry
108108
{
@@ -215,7 +215,7 @@ py::dict py_get_axis_values(const nvbench::state &state)
215215
}
216216

217217
// essentially a global variable, but allocated on the heap during module initialization
218-
constinit std::unique_ptr<GlobalBenchmarkRegistry, py::nodelete> global_registry{};
218+
std::unique_ptr<GlobalBenchmarkRegistry, py::nodelete> global_registry{};
219219

220220
} // end of anonymous namespace
221221

0 commit comments

Comments
 (0)