| 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 |
| 7 |
|
| 8 |
// RUN: %clang -### -x hip --target=x86_64-linux-gnu -c --cuda-gpu-arch=gfx1010 %s \ |
| 9 |
// RUN: -nocudainc -nocudalib 2>&1 | FileCheck %s |
| 10 |
// |
| 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" |