Skip to content

Commit

Permalink
[OpenMP] Add strict mode in num_tasks and grainsize
Browse files Browse the repository at this point in the history
This patch adds new API __kmpc_taskloop_5 to accomadate strict
modifier (introduced in OpenMP 5.1) in num_tasks and grainsize
clause.

Differential Revision: https://reviews.llvm.org/D92352
  • Loading branch information
nawrinsu committed Dec 9, 2020
1 parent c3ff993 commit 540007b
Show file tree
Hide file tree
Showing 4 changed files with 307 additions and 62 deletions.
1 change: 1 addition & 0 deletions openmp/runtime/src/dllexports
Expand Up @@ -371,6 +371,7 @@ kmpc_set_defaults 224
__kmpc_doacross_fini 264
__kmpc_taskloop 266
__kmpc_critical_with_hint 270
__kmpc_taskloop_5 285
%endif
kmpc_aligned_malloc 265
kmpc_set_disp_num_buffers 267
Expand Down
6 changes: 6 additions & 0 deletions openmp/runtime/src/kmp.h
Expand Up @@ -3783,6 +3783,12 @@ KMP_EXPORT void __kmpc_taskloop(ident_t *loc, kmp_int32 gtid, kmp_task_t *task,
kmp_uint64 *ub, kmp_int64 st, kmp_int32 nogroup,
kmp_int32 sched, kmp_uint64 grainsize,
void *task_dup);
KMP_EXPORT void __kmpc_taskloop_5(ident_t *loc, kmp_int32 gtid,
kmp_task_t *task, kmp_int32 if_val,
kmp_uint64 *lb, kmp_uint64 *ub, kmp_int64 st,
kmp_int32 nogroup, kmp_int32 sched,
kmp_uint64 grainsize, kmp_int32 modifier,
void *task_dup);
KMP_EXPORT void *__kmpc_task_reduction_init(int gtid, int num_data, void *data);
KMP_EXPORT void *__kmpc_taskred_init(int gtid, int num_data, void *data);
KMP_EXPORT void *__kmpc_task_reduction_get_th_data(int gtid, void *tg, void *d);
Expand Down

0 comments on commit 540007b

Please sign in to comment.