[all-commits] [llvm/llvm-project] 9de6f9: [Offload][libomptarget] Replace slow `omp_target_m...
Jan André Reuter via All-commits
all-commits at lists.llvm.org
Thu Jun 4 06:16:00 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9de6f9e7c8d1faabf7e7e49ba49e6d6f3af21373
https://github.com/llvm/llvm-project/commit/9de6f9e7c8d1faabf7e7e49ba49e6d6f3af21373
Author: Jan André Reuter <j.reuter at fz-juelich.de>
Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths:
M offload/libomptarget/OpenMP/API.cpp
Log Message:
-----------
[Offload][libomptarget] Replace slow `omp_target_memset` implementation by `dataFill` (#200202)
`omp_target_memset` was initially implemented before the existance of
`offload`. Because of this, a slow path was chosen to implement
`omp_target_memset`, first allocating memory on the host, calling
`memset` on that memory, and then transferring this to the device.
Aside from the inefficient way of setting device memory, this also
causes a data transfer event for the OpenMP Tools Interface, interfering
with the added memset event in OpenMP v6.0.
Since offload implements setting data via `dataFill` by now, replace the
slow path by just calling `dataFill` instead. This resolves both the
inefficiency, and removes the superfluous event dispatched to a tool.
Signed-off-by: Jan André Reuter <j.reuter at fz-juelich.de>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list