brintos

brintos / llvm-project-archived public Read only

0
0
Text · 837 B · a8e25ad Raw
20 lines · plain
1// RUN: %clang -ccc-print-phases --target=x86_64-linux-gnu \2// RUN:   -x hip --cuda-gpu-arch=gfx803 -c \3// RUN:   %S/Inputs/hip_multiple_inputs/a.cu \4// RUN:   %S/Inputs/hip_multiple_inputs/b.hip 2>&1 \5// RUN: | FileCheck %s6 7// RUN: not %clang -ccc-print-phases --target=x86_64-linux-gnu \8// RUN:   --cuda-gpu-arch=gfx803 -c \9// RUN:   %S/Inputs/hip_multiple_inputs/a.cu \10// RUN:   %S/Inputs/hip_multiple_inputs/b.hip 2>&1 \11// RUN: | FileCheck -check-prefix=MIX %s12 13// RUN: not %clang -ccc-print-phases --target=x86_64-linux-gnu \14// RUN:   --cuda-gpu-arch=gfx803 -c \15// RUN:   --hip-link %S/Inputs/hip_multiple_inputs/a.cu 2>&1 \16// RUN: | FileCheck -check-prefix=MIX %s17 18// CHECK-NOT: error: mixed CUDA and HIP offloading compilation is not supported19// MIX: error: mixed CUDA and HIP offloading compilation is not supported20