[flang-commits] [flang] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

Anton Rydahl via flang-commits flang-commits at lists.llvm.org
Fri Oct 20 11:45:25 PDT 2023


================
@@ -0,0 +1,73 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP___ALGORITHM_PSTL_BACKENDS_OPENMP_BACKEND_FILL_H
----------------
AntonRydahl wrote:

After some additional consideration, I think we should not reuse `for_each`, because we can eliminate the host to device data transfer when making a specialized implementation of `fill`.

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


More information about the flang-commits mailing list