[Mlir-commits] [mlir] [MLIR][SCFToOpenMP] Add num-threads option (PR #74854)

Kiran Chandramohan llvmlistbot at llvm.org
Sat Dec 9 07:44:22 PST 2023


================
@@ -886,6 +886,11 @@ def ConvertSCFToOpenMPPass : Pass<"convert-scf-to-openmp", "ModuleOp"> {
   let summary = "Convert SCF parallel loop to OpenMP parallel + workshare "
                 "constructs.";
 
+  let options = [
+    Option<"numThreads", "num-threads", "unsigned",
+           /*default=*/"0", "Number of threads to use">
----------------
kiranchandramohan wrote:

Does `0` mean use the default number of threads?

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


More information about the Mlir-commits mailing list