Skip to content

Commit 8280541

Browse files
authored
Merge pull request llvm#614 from AMD-Lightning-Internal/amd/dev/rlieberm/disableThreadingMLIR
[flang][mlir] disable mlir threading
2 parents 09f96c2 + ae17d71 commit 8280541

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mlir/lib/IR/MLIRContext.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ struct MLIRContextOptions {
5959
llvm::cl::opt<bool> disableThreading{
6060
"mlir-disable-threading",
6161
llvm::cl::desc("Disable multi-threading within MLIR, overrides any "
62-
"further call to MLIRContext::enableMultiThreading()")};
62+
"further call to MLIRContext::enableMultiThreading()"),
63+
llvm::cl::init(true)};
6364

6465
llvm::cl::opt<bool> printOpOnDiagnostic{
6566
"mlir-print-op-on-diagnostic",

mlir/test/Pass/invalid-pass.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: not mlir-opt %s -pass-pipeline='builtin.module(builtin.module(test-module-pass{test-option=a}))' 2>&1 | FileCheck %s
2-
// RUN: not mlir-opt %s -mlir-print-ir-module-scope -mlir-print-ir-before=cse 2>&1 | FileCheck -check-prefix=PRINT_MODULE_IR_WITH_MULTITHREAD %s
2+
// RUN: not mlir-opt %s -mlir-disable-threading=0 -mlir-print-ir-module-scope -mlir-print-ir-before=cse 2>&1 | FileCheck -check-prefix=PRINT_MODULE_IR_WITH_MULTITHREAD %s
33

44
// CHECK: <Pass-Options-Parser>: no such option test-option
55
// CHECK: failed to add `test-module-pass` with options `test-option=a`

0 commit comments

Comments
 (0)