|
175 | 175 | ! RUN: | FileCheck %s --check-prefix=HOST-IR-MISSING
|
176 | 176 | ! HOST-IR-MISSING: error: provided host compiler IR file 'non-existant-file.bc' is required to generate code for OpenMP target regions but cannot be found
|
177 | 177 |
|
178 |
| -! Check that `-gpulibc` includes the LLVM C libraries for the GPU. |
179 |
| -! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \ |
180 |
| -! RUN: --offload-arch=sm_52 \ |
181 |
| -! RUN: -gpulibc %s 2>&1 \ |
182 |
| -! RUN: | FileCheck --check-prefix=LIBC-GPU-NVPTX %s |
183 |
| -! LIBC-GPU-NVPTX-DAG: "-lcgpu-nvptx" |
184 |
| -! LIBC-GPU-NVPTX-DAG: "-lmgpu-nvptx" |
185 |
| - |
186 |
| -! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \ |
187 |
| -! RUN: --offload-arch=sm_52 \ |
188 |
| -! RUN: -nogpulibc %s 2>&1 \ |
189 |
| -! RUN: | FileCheck --check-prefix=NO-LIBC-GPU-NVPTX %s |
190 |
| -! NO-LIBC-GPU-NVPTX-NOT: "-lcgpu-nvptx" |
191 |
| - |
192 |
| -! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \ |
193 |
| -! RUN: --offload-arch=gfx90a \ |
194 |
| -! RUN: -gpulibc %s 2>&1 \ |
195 |
| -! RUN: | FileCheck --check-prefix=LIBC-GPU-AMDGPU %s |
196 |
| -! LIBC-GPU-AMDGPU-DAG: "-lcgpu-amdgpu" |
197 |
| -! LIBC-GPU-AMDGPU-DAG: "-lmgpu-amdgpu" |
198 |
| - |
199 |
| -! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \ |
200 |
| -! RUN: --offload-arch=gfx90a \ |
201 |
| -! RUN: -nogpulibc %s 2>&1 \ |
202 |
| -! RUN: | FileCheck --check-prefix=NO-LIBC-GPU-AMDGPU %s |
203 |
| -! NO-LIBC-GPU-AMDGPU-NOT: "-lcgpu-amdgpu" |
204 |
| - |
205 | 178 | ! RUN: %flang -### -v --target=x86_64-unknown-linux-gnu -fopenmp \
|
206 | 179 | ! RUN: --offload-arch=gfx900 \
|
207 | 180 | ! RUN: --rocm-path=%S/Inputs/rocm %s 2>&1 \
|
|
0 commit comments