[LoopVectorizer] Add support for chaining partial reductions (#120272)
[llvm-project.git] / clang / test / Driver / cuda-no-threadsafe-statics.cu
blob8730605f18828e648ddd65e9d83e57252241cd85
1 // Check that -fno-thread-safe-statics get passed down to device-side
2 // 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 %s
8 // RUN: %clang -### -x hip --target=x86_64-linux-gnu -c --cuda-gpu-arch=gfx1010 %s \
9 // RUN:            -nocudainc -nocudalib 2>&1 | FileCheck %s
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"