aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/kmp_tasking.cpp
diff options
context:
space:
mode:
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>2019-06-14 20:15:15 +0000
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>2019-06-14 20:15:15 +0000
commite9791d7f3768e71fbae69ac21317e3edd0382b0d (patch)
treea3fea99e3d44618baa3808a6cf3153ea66254451 /runtime/src/kmp_tasking.cpp
parent402c7439d7ba1cfa49e205554dfa8087a5a64313 (diff)
[OpenMP] Add task alloc function
Summary: Add the target task allocation function to the interface. Reviewers: ABataev, AlexEichenberger, caomhin, jlpeyton, AndreyChurbanov, RaviNarayanaswamy, hbae Reviewed By: AlexEichenberger, hbae Subscribers: hbae, RaviNarayanaswamy, cfe-commits, Hahnfeld, guansong, jdoerfert, openmp-commits Tags: #openmp, #clang Differential Revision: https://reviews.llvm.org/D63010 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@363449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/src/kmp_tasking.cpp')
-rw-r--r--runtime/src/kmp_tasking.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/src/kmp_tasking.cpp b/runtime/src/kmp_tasking.cpp
index 84afd6b..f910f71 100644
--- a/runtime/src/kmp_tasking.cpp
+++ b/runtime/src/kmp_tasking.cpp
@@ -1398,6 +1398,16 @@ kmp_task_t *__kmpc_omp_task_alloc(ident_t *loc_ref, kmp_int32 gtid,
return retval;
}
+kmp_task_t *__kmpc_omp_target_task_alloc(ident_t *loc_ref, kmp_int32 gtid,
+ kmp_int32 flags,
+ size_t sizeof_kmp_task_t,
+ size_t sizeof_shareds,
+ kmp_routine_entry_t task_entry,
+ kmp_int64 device_id) {
+ return __kmpc_omp_task_alloc(loc_ref, gtid, flags, sizeof_kmp_task_t,
+ sizeof_shareds, task_entry);
+}
+
#if OMP_50_ENABLED
/*!
@ingroup TASKING