Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Tests/parallel_create_zero.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int Test1(){
b[x] = 0.0;
}

#pragma acc data copyin(a[0:n]) copyout(b[0:n]
#pragma acc data copyin(a[0:n]) copyout(b[0:n])
{
#pragma acc parallel create(zero: b[0:n])
{
Expand Down Expand Up @@ -40,11 +40,11 @@ int main(){
#ifndef T1
failed = 0;
for (int x = 0; x < NUM_TEST_CALLS; ++x){
failed = failed + test1();
failed = failed + Test1();
}
if (failed != 0){
failcode = failcode + (1 << 0);
}
#endif
return failcode;
}
}
6 changes: 3 additions & 3 deletions Tests/parallel_create_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int Test1(){
b[x] = 0.0;
}

#pragma acc data copyin(a[0:n]) copyout(b[0:n]
#pragma acc data copyin(a[0:n]) copyout(b[0:n])
{
#pragma acc parallel create(zero: b[0:n])
{
Expand Down Expand Up @@ -40,11 +40,11 @@ int main(){
#ifndef T1
failed = 0;
for (int x = 0; x < NUM_TEST_CALLS; ++x){
failed = failed + test1();
failed = failed + Test1();
}
if (failed != 0){
failcode = failcode + (1 << 0);
}
#endif
return failcode;
}
}