Skip to content

Commit

Permalink
disable nanobind leak warnings unless debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener authored and inducer committed May 31, 2024
1 parent 228d21c commit 474e048
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wrap_cl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ NB_MODULE(_cl, m)
pyopencl_expose_part_1(m);
pyopencl_expose_part_2(m);
pyopencl_expose_mempool(m);

#ifdef NDEBUG
// See https://github.com/inducer/pyopencl/issues/758 for context.
py::set_leak_warnings(false);
#endif
}

// vim: foldmethod=marker

0 comments on commit 474e048

Please sign in to comment.