 // RUN:   -check-prefix CUDA-NL %s
 
 // Typical compilation + link case:
-// RUN: %clang -### %s 2>&1 \
+// RUN: %clang -### -target=x86_64-linux-gnu %s 2>&1 \
 // Compile device-side to PTX assembly and make sure we use it on the host side
 // RUN:   | FileCheck -check-prefix CUDA-D1 \
 // Then compile host side and incorporate device code.

// RUN:   -check-prefix CUDA-L %s

// Verify that -cuda-no-device disables device-side compilation and linking
// RUN: %clang -### --cuda-host-only %s 2>&1 \
// Make sure we didn't run device-side compilation.
// RUN:   | FileCheck -check-prefix CUDA-ND \
// Then compile host side and make sure we don't attempt to incorporate GPU code.


// Verify that there is device-side compilation per --cuda-gpu-arch args
// and that all results are included on the host side.
// RUN: %clang -### -target=x86_64-linux-gnu --cuda-gpu-arch=sm_35 --cuda-gpu-arch=sm_30 -c %s 2>&1 \
// Compile both device-sides to PTX assembly
// RUN:   | FileCheck \
// RUN: -check-prefix CUDA-D1 -check-prefix CUDA-D1-SM35 \
