[Mlir-commits] [mlir] Added free-threading CPython mode support in MLIR Python bindings (PR #107103)
Peter Hawkins
llvmlistbot at llvm.org
Mon Jan 6 07:20:14 PST 2025
================
@@ -12,9 +12,11 @@
#include "Standalone-c/Dialects.h"
#include "mlir/Bindings/Python/PybindAdaptors.h"
+namespace py = pybind11;
+
using namespace mlir::python::adaptors;
-PYBIND11_MODULE(_standaloneDialectsPybind11, m) {
+PYBIND11_MODULE(_standaloneDialects, m, py::mod_gil_not_used()) {
----------------
hawkinsp wrote:
Again I think this should be `_standaloneDialectsPybind11`, because we're building both pybind11 and nanobind versions of the same module.
https://github.com/llvm/llvm-project/pull/107103
More information about the Mlir-commits
mailing list