brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · 3c7384a Raw
52 lines · plain
1// UNSUPPORTED: system-windows2 3// RUN: %clang -c -### --target=x86_64-unknown-linux-gnu --cuda-gpu-arch=gfx900 \4// RUN:   -std=c++11 --rocm-path=%S/Inputs/rocm -nogpulib %s 2>&1 \5// RUN:   | FileCheck -check-prefixes=COMMON,CLANG,HIP %s6 7// RUN: %clang -c -### --target=x86_64-unknown-linux-gnu --cuda-gpu-arch=gfx900 \8// RUN:   -std=c++11 --rocm-path=%S/Inputs/rocm -nobuiltininc -nogpulib %s 2>&1 \9// RUN:   | FileCheck -check-prefixes=COMMON,NOCLANG,HIP %s10 11// RUN: %clang -c -### --target=x86_64-unknown-linux-gnu --cuda-gpu-arch=gfx900 \12// RUN:   -std=c++11 --rocm-path=%S/Inputs/rocm -nogpuinc -nogpulib %s 2>&1 \13// RUN:   | FileCheck -check-prefixes=COMMON,CLANG,NOHIP %s14 15// RUN: %clang -c -### --target=x86_64-unknown-linux-gnu --cuda-gpu-arch=gfx900 \16// RUN:   -std=c++11 --rocm-path=%S/Inputs/rocm --no-offload-inc -nogpulib --offload-inc %s 2>&1 \17// RUN:   | FileCheck -check-prefixes=COMMON,CLANG,HIP %s18 19// COMMON-LABEL: "{{[^"]*}}clang{{[^"]*}}" "-cc1"20// CLANG-SAME: "-internal-isystem" "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include/cuda_wrappers"21// NOCLANG-NOT: "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include/cuda_wrappers"22// HIP-SAME: "-idirafter" "{{[^"]*}}Inputs/rocm/include"23// HIP-SAME: "-include" "__clang_hip_runtime_wrapper.h"24// NOHIP-NOT: "-include" "__clang_hip_runtime_wrapper.h"25// skip check of standard C++ include path26// CLANG-SAME: "-internal-isystem" "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include"27// NOCLANG-NOT: "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include"28// NOHIP-NOT: "{{.*}}Inputs/rocm/include"29 30// COMMON-LABEL: "{{[^"]*}}clang{{[^"]*}}" "-cc1"31// CLANG-SAME: "-internal-isystem" "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include/cuda_wrappers"32// NOCLANG-NOT: "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include/cuda_wrappers"33// HIP-SAME: "-idirafter" "{{[^"]*}}Inputs/rocm/include"34// HIP-SAME: "-include" "__clang_hip_runtime_wrapper.h"35// NOHIP-NOT: "-include" "__clang_hip_runtime_wrapper.h"36// skip check of standard C++ include path37// CLANG-SAME: "-internal-isystem" "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include"38// NOCLANG-NOT: "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include"39// NOHIP-NOT: "{{.*}}Inputs/rocm/include"40 41// RUN: %clang -c -### --target=x86_64-unknown-linux-gnu --cuda-gpu-arch=gfx900 \42// RUN:   -std=c++11 --rocm-path=%S/Inputs/rocm -nogpulib %s 2>&1 \43// RUN:   --hip-version=3.5 | FileCheck -check-prefixes=ROCM35 %s44 45// ROCM35-LABEL: "{{[^"]*}}clang{{[^"]*}}" "-cc1"46// ROCM35-NOT: "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include/cuda_wrappers"47// ROCM35-SAME: "-internal-isystem" "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}"48// ROCM35-SAME: "-idirafter" "{{[^"]*}}Inputs/rocm/include"49// ROCM35-NOT: "-include" "__clang_hip_runtime_wrapper.h"50// skip check of standard C++ include path51// ROCM35-SAME: "-internal-isystem" "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include"52