[libcxx] [libcxxabi] [llvm] Adding OpenMP Offloading Backend for C++ Parallel Algorithms (Rebased #66968) (PR #122180)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 8 14:21:20 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 560b72c0408a8f7e4340a1d4197b164a14cd30b0 563149d603b09ade85a121b49e454c33bb9faf87 --extensions cpp,h -- libcxx/include/__pstl/backends/openmp.h libcxx/test/libcxx/algorithms/alg.pstl.openmp/fill_offload.pass.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/find_if.pass.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/find_if_funptr.pass.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/find_if_offload.pass.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/for_each_funptr.pass.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/for_each_lambda.pass.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/for_each_offload.pass.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/for_each_overwrite_input.pass.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/gpu_environment_variables.pass.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/openmp_version_40.verify.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/openmp_version_45.verify.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/openmp_version_51.verify.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/transform_offload.pass.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/transform_reduce_offload.pass.cpp libcxx/test/libcxx/algorithms/alg.pstl.openmp/transform_reduce_supported_binary_operations.pass.cpp libcxx/include/__pstl/backend.h libcxx/include/__pstl/backend_fwd.h libcxx/include/__pstl/dispatch.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/include/__pstl/backend_fwd.h b/libcxx/include/__pstl/backend_fwd.h
index d080b3d7b9..57035f4215 100644
--- a/libcxx/include/__pstl/backend_fwd.h
+++ b/libcxx/include/__pstl/backend_fwd.h
@@ -68,8 +68,8 @@ using __current_configuration _LIBCPP_NODEBUG =
 
 // ...New vendors can add parallel backends here...
 
-#  error "Invalid PSTL backend configuration"
-#endif
+#    error "Invalid PSTL backend configuration"
+#  endif
 
 template <class _Backend, class _ExecutionPolicy>
 struct __find_if;

``````````

</details>


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


More information about the llvm-commits mailing list