From daee5eee8562d26d234f85152e803b6571b15ee2 Mon Sep 17 00:00:00 2001 From: Ethan Luis McDonough Date: Thu, 12 Jun 2025 11:14:21 -0500 Subject: [PATCH] [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. --- offload/test/offloading/gpupgo/pgo_atomic_teams.c | 6 +++--- 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; }