We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e648301 commit a557554Copy full SHA for a557554
mlir/python/mlir/_mlir_libs/__init__.py
@@ -155,6 +155,13 @@ def __init__(
155
self.append_dialect_registry(get_dialect_registry())
156
for hook in post_init_hooks:
157
hook(self)
158
+ if disable_multithreading and thread_pool is not None:
159
+ raise ValueError(
160
+ "Context constructor has given thread_pool argument, "
161
+ "but disable_multithreading flag is True. "
162
+ "Please, set thread_pool argument to None or "
163
+ "set disable_multithreading flag to False."
164
+ )
165
if not disable_multithreading:
166
if thread_pool is None:
167
self.enable_multithreading(True)
0 commit comments