Skip to content

Commit e97f42e

Browse files
authored
[OpenMP][Offload] Fix typo in error message (#142589)
It appears that the spelling was incorrect in those test cases. At least on machines with ROCm version > 6.3. I had no chance to test with ROCm version version < 6.2 and would be interested in the result if someone has the chance.
1 parent d36c6f9 commit e97f42e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

offload/test/sanitizer/ptr_outside_alloc_1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int main() {
2727
*P = 3;
2828
}
2929
// clang-format off
30-
// CHECK: OFFLOAD ERROR: Memory access fault by GPU {{.*}} (agent 0x{{.*}}) at virtual address [[PTR:0x[0-9a-z]*]]. Reasons: {{.*}}
30+
// CHECK: OFFLOAD ERROR: memory access fault by GPU {{.*}} (agent 0x{{.*}}) at virtual address [[PTR:0x[0-9a-z]*]]. Reasons: {{.*}}
3131
// NTRCE: Use 'OFFLOAD_TRACK_ALLOCATION_TRACES=true' to track device allocations
3232
// TRACE: Device pointer [[PTR]] does not point into any (current or prior) host-issued allocation.
3333
// TRACE: Closest host-issued allocation (distance 4096 bytes; might be by page):

offload/test/sanitizer/ptr_outside_alloc_2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int main() {
1818
#pragma omp target map(A[ : N])
1919
{ A[N] = 3; }
2020
// clang-format off
21-
// CHECK: OFFLOAD ERROR: Memory access fault by GPU {{.*}} (agent 0x{{.*}}) at virtual address [[PTR:0x[0-9a-z]*]]. Reasons: {{.*}}
21+
// CHECK: OFFLOAD ERROR: memory access fault by GPU {{.*}} (agent 0x{{.*}}) at virtual address [[PTR:0x[0-9a-z]*]]. Reasons: {{.*}}
2222
// CHECK: Device pointer [[PTR]] does not point into any (current or prior) host-issued allocation.
2323
// CHECK: Closest host-issued allocation (distance 1 byte; might be by page):
2424
// CHECK: Last allocation of size 1073741824

offload/test/sanitizer/use_after_free_1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int main() {
2828
}
2929
llvm_omp_target_free_host(A, omp_get_default_device());
3030
// clang-format off
31-
// CHECK: OFFLOAD ERROR: Memory access fault by GPU {{.*}} (agent 0x{{.*}}) at virtual address [[PTR:0x[0-9a-z]*]]. Reasons: {{.*}}
31+
// CHECK: OFFLOAD ERROR: memory access fault by GPU {{.*}} (agent 0x{{.*}}) at virtual address [[PTR:0x[0-9a-z]*]]. Reasons: {{.*}}
3232
// NTRCE: Use 'OFFLOAD_TRACK_ALLOCATION_TRACES=true' to track device allocations
3333
// TRACE: Device pointer [[PTR]] points into prior host-issued allocation:
3434
// TRACE: Last deallocation:

offload/test/sanitizer/use_after_free_2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int main() {
2222
*P = 3;
2323
}
2424
// clang-format off
25-
// CHECK: OFFLOAD ERROR: Memory access fault by GPU {{.*}} (agent 0x{{.*}}) at virtual address [[PTR:0x[0-9a-z]*]]. Reasons: {{.*}}
25+
// CHECK: OFFLOAD ERROR: memory access fault by GPU {{.*}} (agent 0x{{.*}}) at virtual address [[PTR:0x[0-9a-z]*]]. Reasons: {{.*}}
2626
// CHECK: Device pointer [[PTR]] points into prior host-issued allocation:
2727
// CHECK: Last deallocation:
2828
// CHECK: Last allocation of size 1073741824

0 commit comments

Comments
 (0)