aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjpinot <josep.pinot@bsc.es>2025-09-15 09:07:18 +0200
committerJulian Brown <julian.brown@amd.com>2026-03-17 14:56:34 -0500
commitb671c20a2d5cfac1d0ce0dee0f3f23fc9474bf8f (patch)
treef2420555802a5352cdfd162896db3f594d734871
parentb8f32eab58408c3eb8eac344dc03d13a0bd860a4 (diff)
downloadllvm-b671c20a2d5cfac1d0ce0dee0f3f23fc9474bf8f.tar.gz
llvm-b671c20a2d5cfac1d0ce0dee0f3f23fc9474bf8f.tar.bz2
llvm-b671c20a2d5cfac1d0ce0dee0f3f23fc9474bf8f.zip
[xxx][openmp] Add graph_id input to kmpc_taskgraph
-rw-r--r--openmp/runtime/src/kmp.h3
-rw-r--r--openmp/runtime/src/kmp_tasking.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h
index 3a2ab8c94d47..b2b0e39a39c7 100644
--- a/openmp/runtime/src/kmp.h
+++ b/openmp/runtime/src/kmp.h
@@ -4401,7 +4401,8 @@ KMP_EXPORT void __kmpc_end_record_task(ident_t *loc, kmp_int32 gtid,
kmp_int32 input_flags, kmp_int32 tdg_id);
KMP_EXPORT void __kmpc_taskgraph(ident_t *loc_ref, kmp_int32 gtid,
kmp_int32 input_flags, kmp_uint32 tdg_id,
- void (*entry)(void *), void *args);
+ kmp_uint32 graph_id, void (*entry)(void *),
+ void *args);
#endif
/* Interface to fast scalable reduce methods routines */
diff --git a/openmp/runtime/src/kmp_tasking.cpp b/openmp/runtime/src/kmp_tasking.cpp
index 088d6f1a019e..d2566786ee90 100644
--- a/openmp/runtime/src/kmp_tasking.cpp
+++ b/openmp/runtime/src/kmp_tasking.cpp
@@ -5244,7 +5244,8 @@ bool __kmpc_omp_has_task_team(kmp_int32 gtid) {
// entry: Pointer to the entry function
// args: Pointer to the function arguments
void __kmpc_taskgraph(ident_t *loc_ref, kmp_int32 gtid, kmp_int32 input_flags,
- kmp_uint32 tdg_id, void (*entry)(void *), void *args) {
+ kmp_uint32 tdg_id, kmp_uint32 graph_id,
+ void (*entry)(void *), void *args) {
kmp_int32 res = __kmpc_start_record_task(loc_ref, gtid, input_flags, tdg_id);
// When res = 1, we either start recording or only execute tasks
// without recording. Need to execute entry function in both cases.