Skip to content

Commit daee5ee

Browse files
[Offload][PGO] Fix new GPU PGO tests (#143645)
`pgo_atomic_teams.c` and `pgo_atomic_threads.c` currently are set to run on NVPTX despite the changes for that target not being upstreamed yet. This patch also replaces instances of `llvm-profdata` with `%profdata` in those tests.
1 parent ef1cb82 commit daee5ee

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

offload/test/offloading/gpupgo/pgo_atomic_teams.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: -Xarch_device -fprofile-update=atomic
44
// RUN: env LLVM_PROFILE_FILE=%basename_t.llvm.profraw \
55
// RUN: %libomptarget-run-generic 2>&1
6-
// RUN: llvm-profdata show --all-functions --counts \
6+
// RUN: %profdata show --all-functions --counts \
77
// RUN: %target_triple.%basename_t.llvm.profraw | \
88
// RUN: %fcheck-generic --check-prefix="LLVM-PGO"
99

@@ -12,11 +12,11 @@
1212
// RUN: -Xarch_device -fprofile-update=atomic
1313
// RUN: env LLVM_PROFILE_FILE=%basename_t.clang.profraw \
1414
// RUN: %libomptarget-run-generic 2>&1
15-
// RUN: llvm-profdata show --all-functions --counts \
15+
// RUN: %profdata show --all-functions --counts \
1616
// RUN: %target_triple.%basename_t.clang.profraw | \
1717
// RUN: %fcheck-generic --check-prefix="CLANG-PGO"
1818

19-
// REQUIRES: gpu
19+
// REQUIRES: amdgpu
2020
// REQUIRES: pgo
2121

2222
int test1(int a) { return a / 2; }

offload/test/offloading/gpupgo/pgo_atomic_threads.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: -Xarch_device -fprofile-update=atomic
44
// RUN: env LLVM_PROFILE_FILE=%basename_t.llvm.profraw \
55
// RUN: %libomptarget-run-generic 2>&1
6-
// RUN: llvm-profdata show --all-functions --counts \
6+
// RUN: %profdata show --all-functions --counts \
77
// RUN: %target_triple.%basename_t.llvm.profraw | \
88
// RUN: %fcheck-generic --check-prefix="LLVM-PGO"
99

@@ -12,11 +12,11 @@
1212
// RUN: -Xarch_device -fprofile-update=atomic
1313
// RUN: env LLVM_PROFILE_FILE=%basename_t.clang.profraw \
1414
// RUN: %libomptarget-run-generic 2>&1
15-
// RUN: llvm-profdata show --all-functions --counts \
15+
// RUN: %profdata show --all-functions --counts \
1616
// RUN: %target_triple.%basename_t.clang.profraw | \
1717
// RUN: %fcheck-generic --check-prefix="CLANG-PGO"
1818

19-
// REQUIRES: gpu
19+
// REQUIRES: amdgpu
2020
// REQUIRES: pgo
2121

2222
int test1(int a) { return a / 2; }

0 commit comments

Comments
 (0)