[Mlir-commits] [mlir] Added PyThreadPool as wrapper around MlirLlvmThreadPool in MLIR python bindings (PR #130109)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Mar 7 02:52:39 PST 2025


vfdev-5 wrote:

@joker-eph in the last PR I added thread_pool arg to `mlir.ir.Context` constructor. Also exposed `get_num_threads` and `_mlir_thread_pool_ptr` methods:
- updated MLIR C API: added mlirContextGetNumThreads, mlirContextGetThreadPool methods

`_mlir_thread_pool_ptr` is an internal method to ensure that C++ thread pool is correctly set up.

Let me know if this works. Thanks! 

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


More information about the Mlir-commits mailing list