[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.
This commit is contained in:
parent
ef1cb8277a
commit
daee5eee85
@ -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; }
|
||||
|
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user