brintos

brintos / llvm-project-archived public Read only

0
0
Text · 612 B · 8730605 Raw
15 lines · plain
1// Check that -fno-thread-safe-statics get passed down to device-side2// compilation only.3//4// RUN: %clang -### -x cuda --target=x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 %s \5// RUN:            -nocudainc -nocudalib --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \6// RUN:            2>&1 | FileCheck %s7 8// RUN: %clang -### -x hip --target=x86_64-linux-gnu -c --cuda-gpu-arch=gfx1010 %s \9// RUN:            -nocudainc -nocudalib 2>&1 | FileCheck %s10//11// CHECK: "-fcuda-is-device"12// CHECK-SAME: "-fno-threadsafe-statics"13// CHECK: "-triple" "x86_64-unknown-linux-gnu"14// CHECK-NOT: "-fno-threadsafe-statics"15