[Openmp-commits] [openmp] [libomptarget][OpenMP] Initial implementation of omp_target_memset() and omp_target_memset_async() (PR #68706)
Michael Klemm via Openmp-commits
openmp-commits at lists.llvm.org
Wed Oct 18 02:47:43 PDT 2023
================
@@ -241,47 +241,130 @@ static int libomp_target_memcpy_async_helper(kmp_int32 Gtid, kmp_task_t *Task) {
return Rc;
}
-// Allocate and launch helper task
-static int libomp_helper_task_creation(TargetMemcpyArgsTy *Args,
- int DepObjCount,
- omp_depend_t *DepObjList) {
+static int libomp_target_memset_async_task(kmp_int32 Gtid, kmp_task_t *Task) {
+ if (!Task)
+ return OFFLOAD_FAIL;
+
+ auto *Args = reinterpret_cast<TargetMemsetArgsTy *>(Task->shareds);
+ if (!Args) {
----------------
mjklemm wrote:
Curly braces are gone (in the next round of pushing my patch set).
https://github.com/llvm/llvm-project/pull/68706
More information about the Openmp-commits
mailing list