File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments