[libcxx-commits] [libcxx] [libcxxabi] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Mar 27 11:01:05 PDT 2024
================
@@ -30,6 +30,14 @@ if (LLVM_USE_SANITIZER)
serialize_lit_string_param(SERIALIZED_LIT_PARAMS use_sanitizer "${LLVM_USE_SANITIZER}")
endif()
+# If the OpenMP PSTL backend was enabled, the OpenMP compilation toolchain must
+# also be enabled for the LIT tests
+if (DEFINED LIBCXX_PSTL_BACKEND)
+ if (LIBCXX_PSTL_BACKEND STREQUAL "openmp")
+ serialize_lit_string_param(SERIALIZED_LIT_PARAMS openmp_pstl_backend "ON")
+ endif()
+endif()
+
----------------
ldionne wrote:
This should go away. We should detect from the Lit setup that `__config_site` defines `_LIBCPP_PSTL_BACKEND_OPENMP`, and add the right flags based on that.
https://github.com/llvm/llvm-project/pull/66968
More information about the libcxx-commits
mailing list