Skip to content

Commit 00bdf88

Browse files
author
Henry Jin
committed
fix transparent task example
1 parent 3346a30 commit 00bdf88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tasking/sources/task_dep.14.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int main()
2828
for (int h = 0; h < NUM_VS; h++) {
2929
// Generate transparent task to establish dependences
3030
// between child tasks that don't share the same parent.
31-
#pragma omp task depend(inout:M[:]) transparent(omp_impex)
31+
#pragma omp task depend(inout:h) transparent(omp_impex)
3232
my_func(M, v[h]);
3333
}
3434

tasking/sources/task_dep.14.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ program main
2020
do h = 0, NUM_VS-1
2121
! Generate transparent task to establish dependences
2222
! between child tasks that don't share the same parent.
23-
!$omp task depend(inout:M) transparent(omp_impex)
23+
!$omp task depend(inout:h) transparent(omp_impex)
2424
call my_func(M, v(:,h))
2525
!$omp end task
2626
end do

0 commit comments

Comments
 (0)