Skip to content

Commit a49143a

Browse files
committed
Clang-format renamed files as well.
1 parent 3e4d99b commit a49143a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

offload/test/mapping/use_device_addr/target_use_device_addr.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ int main() {
1212
printf("%d, %p\n", xp[1], &xp[1]);
1313
#pragma omp target data use_device_addr(xp[1 : 3]) map(tofrom : x)
1414
#pragma omp target is_device_ptr(xp)
15-
{ xp[1] = 222; }
15+
{
16+
xp[1] = 222;
17+
}
1618
// CHECK: 222
1719
printf("%d, %p\n", xp[1], &xp[1]);
1820
}

offload/test/mapping/use_device_addr/target_wrong_use_device_addr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ int main() {
1414
// CHECK: host addr=0x[[#%x,HOST_ADDR:]]
1515
fprintf(stderr, "host addr=%p\n", x);
1616

17-
#pragma omp target data map(to : x [0:10])
17+
#pragma omp target data map(to : x[0 : 10])
1818
{
1919
// CHECK: omptarget device 0 info: variable x does not have a valid device
2020
// counterpart
@@ -27,4 +27,3 @@ int main() {
2727

2828
return 0;
2929
}
30-

offload/test/mapping/use_device_ptr/array_section_use_device_ptr.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ int main() {
2020

2121
float *A_dev = NULL;
2222
#pragma omp target data use_device_ptr(A)
23-
{ A_dev = A; }
23+
{
24+
A_dev = A;
25+
}
2426
#pragma omp target exit data map(delete : A[FROM : LENGTH])
2527

2628
// CHECK: Success

0 commit comments

Comments
 (0)