Skip to content

Commit

Permalink
addressed issue OpenACCUserGroup#39 : added wait directive before exi…
Browse files Browse the repository at this point in the history
…t delete directive. also addressed failing acc copyin async test. still may be more issues related to 39, wouldn't close yet.
  • Loading branch information
Christian Munley committed Jun 7, 2023
1 parent 0f62993 commit da465eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion Tests/acc_copyin_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ int test4(){
}
}
acc_copyin_async(c, n * sizeof(real_t), 1);
#pragma acc exit data delete(c[0:n]) async(1)
#pragma acc parallel present(c[0:n]) async(1)
{
#pragma acc loop
Expand Down
4 changes: 1 addition & 3 deletions Tests/acc_delete_finalize_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ int test1(){
}

#pragma acc enter data copyin(a[0:n], b[0:n], d[0:n], e[0:n])
#pragma acc enter data copyin(a[0:n], b[0:n], d[0:n], e[0:n])

#pragma acc data present(a[0:n], b[0:n], d[0:n], e[0:n]) copyout(c[0:n], f[0:n])
{
#pragma acc parallel async(1)
Expand Down Expand Up @@ -87,7 +85,6 @@ int test2(){
}

#pragma acc enter data copyin(a[0:n], b[0:n], c[0:n])
#pragma acc enter data copyin(c[0:n])
#pragma acc data present(a[0:n], b[0:n], c[0:n])
{
#pragma acc parallel async(1)
Expand All @@ -110,6 +107,7 @@ int test2(){
}
}
}
#pragma acc wait
#pragma acc exit data delete(a[0:n], b[0:n]) copyout(c[0:n])

for (int x = 0; x < n; ++x){
Expand Down

0 comments on commit da465eb

Please sign in to comment.