diff options
| author | Ethan Luis McDonough <ethanluismcdonough@gmail.com> | 2025-06-12 11:14:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-12 11:14:21 -0500 |
| commit | daee5eee8562d26d234f85152e803b6571b15ee2 (patch) | |
| tree | 7c0ba358b268702d4500d622204850830bc3e560 /offload | |
| parent | ef1cb8277ac3cb34ce9700a313ed60410dd9f84b (diff) | |
[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.
Diffstat (limited to 'offload')
| -rw-r--r-- | offload/test/offloading/gpupgo/pgo_atomic_teams.c | 6 | ||||
| -rw-r--r-- | offload/test/offloading/gpupgo/pgo_atomic_threads.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/offload/test/offloading/gpupgo/pgo_atomic_teams.c b/offload/test/offloading/gpupgo/pgo_atomic_teams.c index 7bf3b1c11f28..b3b72db08039 100644 --- a/offload/test/offloading/gpupgo/pgo_atomic_teams.c +++ b/offload/test/offloading/gpupgo/pgo_atomic_teams.c @@ -3,7 +3,7 @@ // RUN: -Xarch_device -fprofile-update=atomic // RUN: env LLVM_PROFILE_FILE=%basename_t.llvm.profraw \ // RUN: %libomptarget-run-generic 2>&1 -// RUN: llvm-profdata show --all-functions --counts \ +// RUN: %profdata show --all-functions --counts \ // RUN: %target_triple.%basename_t.llvm.profraw | \ // RUN: %fcheck-generic --check-prefix="LLVM-PGO" @@ -12,11 +12,11 @@ // RUN: -Xarch_device -fprofile-update=atomic // RUN: env LLVM_PROFILE_FILE=%basename_t.clang.profraw \ // RUN: %libomptarget-run-generic 2>&1 -// RUN: llvm-profdata show --all-functions --counts \ +// RUN: %profdata show --all-functions --counts \ // RUN: %target_triple.%basename_t.clang.profraw | \ // RUN: %fcheck-generic --check-prefix="CLANG-PGO" -// REQUIRES: gpu +// REQUIRES: amdgpu // REQUIRES: pgo int test1(int a) { return a / 2; } diff --git a/offload/test/offloading/gpupgo/pgo_atomic_threads.c b/offload/test/offloading/gpupgo/pgo_atomic_threads.c index f0e7111f7a64..440a6b533317 100644 --- a/offload/test/offloading/gpupgo/pgo_atomic_threads.c +++ b/offload/test/offloading/gpupgo/pgo_atomic_threads.c @@ -3,7 +3,7 @@ // RUN: -Xarch_device -fprofile-update=atomic // RUN: env LLVM_PROFILE_FILE=%basename_t.llvm.profraw \ // RUN: %libomptarget-run-generic 2>&1 -// RUN: llvm-profdata show --all-functions --counts \ +// RUN: %profdata show --all-functions --counts \ // RUN: %target_triple.%basename_t.llvm.profraw | \ // RUN: %fcheck-generic --check-prefix="LLVM-PGO" @@ -12,11 +12,11 @@ // RUN: -Xarch_device -fprofile-update=atomic // RUN: env LLVM_PROFILE_FILE=%basename_t.clang.profraw \ // RUN: %libomptarget-run-generic 2>&1 -// RUN: llvm-profdata show --all-functions --counts \ +// RUN: %profdata show --all-functions --counts \ // RUN: %target_triple.%basename_t.clang.profraw | \ // RUN: %fcheck-generic --check-prefix="CLANG-PGO" -// REQUIRES: gpu +// REQUIRES: amdgpu // REQUIRES: pgo int test1(int a) { return a / 2; } |
