This patch fixes failing tests after checking the return code from the driver. This is mostly due to the ROCm libraries not being present during most compilations. Passing `-nogpuinc` should allow us to compile without it for tests that require it. Additionally, some old tests set the architecture of Nvidia tests to `sm_35` which is officially unsupported in CUDA 12+ so it prints an error. We just increase in this case. Reviewed By: MaskRay, yaxunl Differential Revision: https://reviews.llvm.org/D156930
9 lines
280 B
Plaintext
9 lines
280 B
Plaintext
// REQUIRES: x86-registered-target
|
|
// REQUIRES: amdgpu-registered-target
|
|
|
|
// RUN: %clang -### -nogpulib -nogpuinc --target=x86_64-linux-gnu --cuda-gpu-arch=gfx900 \
|
|
// RUN: %s 2>&1 | FileCheck %s
|
|
|
|
// CHECK: [[CLANG:".*clang.*"]] "-cc1"
|
|
// CHECK-NOT: "-Werror=format-nonliteral"
|