| 1 |
!REQUIRES: amdgpu-registered-target |
| 2 |
|
| 3 |
!RUN: %flang_fc1 -triple amdgcn-amd-amdhsa -emit-hlfir -fopenmp -fopenmp-is-target-device %s -o - | FileCheck %s |
| 4 |
!RUN: bbc -fopenmp -fopenmp-is-target-device -fopenmp-is-gpu -emit-hlfir -o - %s | FileCheck %s |
| 5 |
!RUN: %flang_fc1 -triple amdgcn-amd-amdhsa -emit-hlfir -fopenmp -fopenmp-is-target-device -nogpulib %s -o - | FileCheck %s -check-prefix=FLAG_SET |
| 6 |
!RUN: bbc -fopenmp -fopenmp-is-target-device -fopenmp-is-gpu -emit-hlfir -nogpulib -o - %s | FileCheck %s -check-prefix=FLAG_SET |
| 7 |
|
| 8 |
!CHECK-NOT: module attributes {{{.*}}no_gpu_lib |
| 9 |
!FLAG_SET: module attributes {{{.*}}no_gpu_lib = true |
| 10 |
subroutine omp_subroutine() |
| 11 |
end subroutine omp_subroutine |
| 12 |
|