https://github.com/yxsamliu created 
https://github.com/llvm/llvm-project/pull/214612

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


>From dfe9db389e2e85a04a208151f37896ea3f7b4cf1 Mon Sep 17 00:00:00 2001
From: "Yaxun (Sam) Liu" <[email protected]>
Date: Thu, 6 Aug 2026 22:49:57 -0400
Subject: [PATCH] [HIP] Remove device compilation from include path test

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
---
 clang/test/Driver/hip-include-path.hip | 6 ------
 1 file changed, 6 deletions(-)

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>

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to