Replies: 1 comment 1 reply
-
That's cool! I have concerns about What's the issue with inferring |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
MLIR Python bindings are now using nanobind (migrated from pybind11 by @hawkinsp).
There is however a need to silent some compiler warning by passing additional flags to the nanobind library after nanobind_add_module call:
https://github.com/llvm/llvm-project/blob/1eed780a6a01b5b10de8a723318f0153b5adea0a/mlir/cmake/modules/AddMLIRPython.cmake#L676-L684
This approach however does not work due to nanobind target library name changes according to the options passed to
nanobind_add_module
, e.g. FREE_THREADED. A workaround is proposed here: llvm/llvm-project#121477 but ideally we would like have a solution for that in nanobind.The question: @wjakob, would it be acceptable to add an optional arg to
nanobind_add_module
(e.g. NBLIB_COMPILE_OPTIONS) such that it would be used to define target compile options:If you have a better suggestion please share it as well.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions