[Openmp-commits] [openmp] [libomptarget][OpenMP] Initial implementation of omp_target_memset() and omp_target_memset_async() (PR #68706)

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Tue Oct 10 07:16:20 PDT 2023


================
@@ -241,10 +241,125 @@ static int libomp_target_memcpy_async_helper(kmp_int32 Gtid, kmp_task_t *Task) {
   return Rc;
 }
 
+static int libomp_target_memset_async_helper(kmp_int32 Gtid, kmp_task_t *Task) {
+  if (!Task) {
+    return OFFLOAD_FAIL;
+  }
----------------
shiltian wrote:

LLVM style please (no `{}` for single statement.

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


More information about the Openmp-commits mailing list