[Mlir-commits] [mlir] Added free-threading CPython mode support in MLIR Python bindings (PR #107103)

Stella Laurenzo llvmlistbot at llvm.org
Sun Sep 22 13:38:32 PDT 2024


stellaraccident wrote:

Maks is right: three are a couple of places where we use mutable global state and we should come up with a convention to protect those with a global mutex. I know there is an idiom for this in CPython itself, but it's there a common thing done for pybind/extensions yet? (Basically where it no ops in gil builds but uses a scoped mutex in free threaded builds)

Let's verify that before marking the modules free threaded compatible.

https://github.com/llvm/llvm-project/pull/107103


More information about the Mlir-commits mailing list