[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:58 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r bd3bde8900a05d2418f680bb19fced189a564efd...cb63466a925da2953f8d24e1c57157f19aa01911 mlir/python/mlir/_mlir_libs/__init__.py mlir/test/python/ir/context_lifecycle.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- python/mlir/_mlir_libs/__init__.py	2025-03-07 10:49:02.000000 +0000
+++ python/mlir/_mlir_libs/__init__.py	2025-03-07 10:52:32.369470 +0000
@@ -146,11 +146,13 @@
         module_name = f"_site_initialize_{i}"
         if not process_initializer_module(module_name):
             break
 
     class Context(ir._BaseContext):
-        def __init__(self, load_on_create_dialects=None, thread_pool=None, *args, **kwargs):
+        def __init__(
+            self, load_on_create_dialects=None, thread_pool=None, *args, **kwargs
+        ):
             super().__init__(*args, **kwargs)
             self.append_dialect_registry(get_dialect_registry())
             for hook in post_init_hooks:
                 hook(self)
             if not disable_multithreading:

``````````

</details>


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


More information about the Mlir-commits mailing list