Skip to content

Commit

Permalink
[Flang] Fix the test ordering of the GPU libraries
Browse files Browse the repository at this point in the history
Summary:
Turns out these are out of order
  • Loading branch information
jhuber6 committed Feb 22, 2024
1 parent d5a15f3 commit 018c992
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions flang/test/Driver/omp-driver-offload.f90
Original file line number Diff line number Diff line change
Expand Up @@ -175,22 +175,24 @@
! RUN: --offload-arch=sm_52 \
! RUN: -gpulibc %s 2>&1 \
! RUN: | FileCheck --check-prefix=LIBC-GPU-NVPTX %s
! LIBC-GPU-NVPTX: "-lcgpu-nvptx"{{.*}}"-lmgpu-nvptx"
! LIBC-GPU-NVPTX-DAG: "-lcgpu-nvptx"
! LIBC-GPU-NVPTX-DAG: "-lmgpu-nvptx"

! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \
! RUN: --offload-arch=sm_52 \
! RUN: -nogpulibc %s 2>&1 \
! RUN: | FileCheck --check-prefix=NO-LIBC-GPU-NVPTX %s
! NO-LIBC-GPU-NVPTX-NOT: "-lcgpu-nvptx"{{.*}}"-lmgpu-nvptx"
! NO-LIBC-GPU-NVPTX-NOT: "-lcgpu-nvptx"

! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \
! RUN: --offload-arch=gfx90a \
! RUN: -gpulibc %s 2>&1 \
! RUN: | FileCheck --check-prefix=LIBC-GPU-AMDGPU %s
! LIBC-GPU-AMDGPU: "-lcgpu-amdgpu"{{.*}}"-lmgpu-amdgpu"
! LIBC-GPU-AMDGPU-DAG: "-lcgpu-amdgpu"
! LIBC-GPU-AMDGPU-DAG: "-lmgpu-amdgpu"

! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \
! RUN: --offload-arch=gfx90a \
! RUN: -nogpulibc %s 2>&1 \
! RUN: | FileCheck --check-prefix=NO-LIBC-GPU-AMDGPU %s
! NO-LIBC-GPU-AMDGPU-NOT: "-lcgpu-amdgpu"{{.*}}"-lmgpu-amdgpu"
! NO-LIBC-GPU-AMDGPU-NOT: "-lcgpu-amdgpu"

0 comments on commit 018c992

Please sign in to comment.