13 lines · plain
1 2// Check that we raise an error if we're trying to compile OpenCL for amdhsa code but can't3// find a ROCm install, unless -nogpulib was passed.4 5// RUN: not %clang -### --sysroot=%s/no-rocm-there -target amdgcn--amdhsa %s 2>&1 | FileCheck %s --check-prefix ERR6// RUN: not %clang -### --rocm-path=%s/no-rocm-there -target amdgcn--amdhsa %s 2>&1 | FileCheck %s --check-prefix ERR7// ERR: cannot find ROCm device library; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library8 9// Accept nogpulib or nostdlib for OpenCL.10// RUN: %clang -### -nogpulib --rocm-path=%s/no-rocm-there %s 2>&1 | FileCheck %s --check-prefix OK11// RUN: %clang -### -nostdlib --rocm-path=%s/no-rocm-there %s 2>&1 | FileCheck %s --check-prefix OK12// OK-NOT: cannot find ROCm installation.13