Skip to content

Commit

Permalink
Modify test to explicitely use the size of the mapped array.
Browse files Browse the repository at this point in the history
  • Loading branch information
doru1004 committed Apr 20, 2023
1 parent 0432b85 commit f853694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmp/libomptarget/test/mapping/private_mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int main() {

for (int i=0; i<16; i++) sum[i] = 10000;

#pragma omp target teams distribute parallel for map(tofrom : sum) \
#pragma omp target teams distribute parallel for map(tofrom : sum[:16]) \
firstprivate(data1, data2, data3)
for (int i = 0; i < 16; ++i) {
for (int j = 0; j < 3; ++j) {
Expand Down

0 comments on commit f853694

Please sign in to comment.