[Openmp-commits] [PATCH] D102584: [OpenMP] Fixed Bug 49356

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon May 17 09:15:10 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGaf6511d730f1: [OpenMP] Fixed Bug 49356 (authored by tianshilei1992).

Changed prior to commit:
  https://reviews.llvm.org/D102584?vs=345723&id=345908#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102584/new/

https://reviews.llvm.org/D102584

Files:
  openmp/runtime/test/tasking/bug_taskwait_detach.cpp


Index: openmp/runtime/test/tasking/bug_taskwait_detach.cpp
===================================================================
--- openmp/runtime/test/tasking/bug_taskwait_detach.cpp
+++ openmp/runtime/test/tasking/bug_taskwait_detach.cpp
@@ -3,6 +3,7 @@
 #include <omp.h>
 
 #include <chrono>
+#include <cstdint>
 #include <iostream>
 #include <thread>
 
@@ -10,7 +11,7 @@
 #define PTASK_FLAG_DETACHABLE 0x40
 
 // OpenMP RTL interfaces
-typedef long long kmp_int64;
+using kmp_int32 = int32_t;
 
 typedef struct ID {
   int reserved_1;
@@ -59,7 +60,8 @@
 extern int __kmpc_global_thread_num(void *id_ref);
 extern int **__kmpc_omp_task_alloc(id *loc, int gtid, int flags, size_t sz,
                                    size_t shar, task_entry_t rtn);
-extern int __kmpc_omp_task(id *loc, kmp_int64 gtid, kmp_task_t *task);
+extern kmp_int32 __kmpc_omp_task(ident_t *loc_ref, kmp_int32 gtid,
+                                 kmp_task_t *new_task);
 extern omp_event_handle_t __kmpc_task_allow_completion_event(ident_t *loc_ref,
                                                              int gtid,
                                                              kmp_task_t *task);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102584.345908.patch
Type: text/x-patch
Size: 1183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210517/9ccf85e5/attachment.bin>


More information about the Openmp-commits mailing list