1 // REQUIRES
: amdgpu-registered-target
3 // Make sure the appropriate device specific library is available.
5 // We don
't include every target in the test directory
, so just pick a valid
6 // target not included in the test.
8 // RUN
: not %clang -
### -v --target
=amdgcn-amd-amdhsa -mcpu
=gfx902 \
9 // RUN
: --rocm-path
=%S
/Inputs
/rocm %s
2>&1 \
10 // RUN
: | FileCheck -check-prefixes
=COMMON
,GFX902-DEFAULTLIBS %s
13 // RUN
: %clang -
### -v -target amdgcn-amd-amdhsa -mcpu
=gfx902 -nogpulib \
14 // RUN
: --rocm-path
=%S
/Inputs
/rocm %s
2>&1 \
15 // RUN
: | FileCheck -check-prefixes
=COMMON
,NODEFAULTLIBS %s
17 // GFX902-DEFAULTLIBS
: error
: cannot find ROCm device library for gfx902
; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library
19 // NODEFAULTLIBS-NOT
: error
: cannot find
21 // COMMON
: "-triple" "amdgcn-amd-amdhsa"