Skip to content

Commit a3d8559

Browse files
committed
fixup! Add openmp support to System z:: Compile __kmp_invoke_task with -mbackchain
1 parent d415431 commit a3d8559

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openmp/runtime/src/kmp_tasking.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,9 @@ __kmpc_omp_reg_task_with_affinity(ident_t *loc_ref, kmp_int32 gtid,
17371737
// gtid: global thread ID of caller
17381738
// task: the task to invoke
17391739
// current_task: the task to resume after task invocation
1740+
#ifdef __s390x__
1741+
__attribute__((target("backchain")))
1742+
#endif
17401743
static void __kmp_invoke_task(kmp_int32 gtid, kmp_task_t *task,
17411744
kmp_taskdata_t *current_task) {
17421745
kmp_taskdata_t *taskdata = KMP_TASK_TO_TASKDATA(task);

0 commit comments

Comments
 (0)