Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4aebedf9 authored by Thierry's avatar Thierry
Browse files

[fix] var dep length bug fix

parent 8668a01e
No related branches found
No related tags found
No related merge requests found
...@@ -1121,9 +1121,13 @@ kmp_int32 __kmpc_omp_task_with_deps(ident_t *loc_ref, kmp_int32 gtid, ...@@ -1121,9 +1121,13 @@ kmp_int32 __kmpc_omp_task_with_deps(ident_t *loc_ref, kmp_int32 gtid,
else else
deps += ndeps; deps += ndeps;
} }
else
deps += ndeps;
#if LIBOMP_USE_VARDEP #if LIBOMP_USE_VARDEP
/* deps with possibly alias */ /* deps with possibly alias */
kmp_extra_depinfo_th_t* bloc = &thread->th.th_edeps[0]; kmp_extra_depinfo_th_t* bloc = &thread->th.th_edeps[0];
if (thread->th.th_edps_size[0])
do { do {
if (bloc->ed_size) { if (bloc->ed_size) {
kmp_depend_info_flags_t flags; kmp_depend_info_flags_t flags;
...@@ -1155,6 +1159,7 @@ kmp_int32 __kmpc_omp_task_with_deps(ident_t *loc_ref, kmp_int32 gtid, ...@@ -1155,6 +1159,7 @@ kmp_int32 __kmpc_omp_task_with_deps(ident_t *loc_ref, kmp_int32 gtid,
} }
#if LIBOMP_USE_VARDEP #if LIBOMP_USE_VARDEP
bloc = &thread->th.th_edeps[1]; bloc = &thread->th.th_edeps[1];
if (thread->th.th_edps_size[1])
do { do {
if (bloc->ed_size) { if (bloc->ed_size) {
kmp_depend_info_flags_t flags; kmp_depend_info_flags_t flags;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment