Attempt to fix hip-include-path.hip

This commit is contained in:
Yaxun (Sam) Liu 2020-06-05 15:31:11 -04:00
parent e78431354b
commit 392843617a
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
// REQUIRES: clang-driver
// REQUIRES: x86-registered-target
// REQUIRES: amdgpu-registered-target
// REQUIRES: libgcc
// UNSUPPORTED: system-windows
// RUN: %clang -c -v -target x86_64-unknown-linux-gnu --cuda-gpu-arch=gfx900 \
// RUN: -std=c++11 --rocm-path=%S/Inputs/rocm -nogpulib %s 2>&1 \
@ -14,7 +16,7 @@
// RUN: -std=c++11 --rocm-path=%S/Inputs/rocm -nogpuinc -nogpulib %s 2>&1 \
// RUN: | FileCheck -check-prefixes=COMMON,WRAP,NOHIP %s
// COMMON-LABEL: clang{{.*}} -cc1 -triple amdgcn-amd-amdhsa
// COMMON: "{{[^"]*}}clang{{[^"]*}}"
// WRAP: clang/{{.*}}/include/cuda_wrappers
// NOWRAP-NOT: clang/{{.*}}/include/cuda_wrappers
// HIP: {{.*}}Inputs/rocm/include
@ -22,7 +24,7 @@
// skip check of standard C++ include path
// COMMON: clang/{{.*}}/include
// COMMON-LABEL: clang{{.*}} -cc1 -triple x86_64
// COMMON: "{{[^"]*}}clang{{[^"]*}}"
// WRAP: clang/{{.*}}/include/cuda_wrappers
// NOWRAP-NOT: clang/{{.*}}/include/cuda_wrappers
// HIP: {{.*}}Inputs/rocm/include