================
@@ -330,6 +330,23 @@ def getStdFlag(cfg, std):
         default=f"{shlex.quote(sys.executable)} 
{shlex.quote(str(Path(__file__).resolve().parent.parent.parent / 'run.py'))}",
         help="Custom executor to use instead of the configured default.",
         actions=lambda executor: [AddSubstitution("%{executor}", executor)],
+    ),
+    Parameter(
+        name="openmp_pstl_backend",
+        choices=[True, False],
+        type=bool,
+        default=False,
+        help="Enable the OpenMP compilation toolchain if the PSTL backend was 
set to OpenMP.",
+        actions=lambda enabled: [
+            AddCompileFlag("-fopenmp"),
----------------
AntonRydahl wrote:
I think there is unfortunately no better way of doing this at the moment, 
except for changing Clang. The problem is that OpenMP might already be shipped 
with the system, and then a lot of conflicts can happen if the wrong version of 
the OpenMP target library or the device runtime is picked up. But I agree that 
this is indeed not very user friendly and that it would be a lot nicer if Clang 
automatically did this.

https://github.com/llvm/llvm-project/pull/66968
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to