[clang] [HIP] Remove device compilation from include path test (PR #214612)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 6 20:15:00 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-driver
@llvm/pr-subscribers-clang
Author: Yaxun (Sam) Liu (yxsamliu)
<details>
<summary>Changes</summary>
The libhipcxx test checks the include paths produced by the driver. It
also ran a HIP device compilation, which requires the AMDGPU target and
fails in builds that do not enable it.
Remove the compilation and keep the driver command checks enabled in
all builds.
Buildbot failure: https://lab.llvm.org/buildbot/#/builders/225/builds/14729
---
Full diff: https://github.com/llvm/llvm-project/pull/214612.diff
1 Files Affected:
- (modified) clang/test/Driver/hip-include-path.hip (-6)
``````````diff
diff --git a/clang/test/Driver/hip-include-path.hip b/clang/test/Driver/hip-include-path.hip
index 12d37bae092d6..8ad978c917173 100644
--- a/clang/test/Driver/hip-include-path.hip
+++ b/clang/test/Driver/hip-include-path.hip
@@ -20,10 +20,6 @@
// RUN: -std=c++11 --rocm-path=%S/Inputs/rocm -nogpulib -nostdinc++ %s 2>&1 \
// RUN: | FileCheck -check-prefixes=COMMON,CLANG,HIP -DRESOURCE_DIR=%clang-resource-dir %s
-// RUN: %clang -fsyntax-only --target=x86_64-unknown-linux-gnu \
-// RUN: --cuda-gpu-arch=gfx900 -std=c++11 --rocm-path=%S/Inputs/rocm \
-// RUN: -nogpulib -nohipwrapperinc %s
-
// RUN: %clang -c -### --target=x86_64-unknown-linux-gnu --cuda-gpu-arch=gfx900 \
// RUN: -std=c++11 --rocm-path=%S/Inputs/rocm-invalid -nogpulib %s 2>&1 \
// RUN: | FileCheck -check-prefix=NOLIBHIPCXX %s
@@ -77,5 +73,3 @@
// HOSTINC-LABEL: "{{[^"]*}}clang{{[^"]*}}" "-cc1" "-triple" "amdgcn-amd-amdhsa"
// HOSTINC: "-internal-externc-isystem" "{{[^"]*}}Inputs/basic_linux_tree/usr/include"
-
-#include <cuda/std/atomic>
``````````
</details>
https://github.com/llvm/llvm-project/pull/214612
More information about the cfe-commits
mailing list