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
17 lines
717 B
Plaintext
17 lines
717 B
Plaintext
// REQUIRES: x86-registered-target
|
|
// REQUIRES: amdgpu-registered-target
|
|
|
|
// By default FE assumes -fhip-new-launch-api.
|
|
|
|
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -offload-arch=gfx906 \
|
|
// RUN: -nogpulib -nogpuinc %s 2>&1 | FileCheck -check-prefixes=NEW %s
|
|
// NEW: "-fhip-new-launch-api"
|
|
|
|
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \
|
|
// RUN: -nogpulib -nogpuinc -fhip-new-launch-api 2>&1 | FileCheck -check-prefixes=NEW %s
|
|
// NEW: "-fhip-new-launch-api"
|
|
|
|
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \
|
|
// RUN: -nogpulib -nogpuinc -fno-hip-new-launch-api 2>&1 | FileCheck -check-prefixes=OLD %s
|
|
// OLD-NOT: "-fhip-new-launch-api"
|