[flang-commits] [flang] 3b642df - [Flang][OpenMP] Fix unit test using AMDGPU triple without requiring it

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Thu Jul 20 07:39:38 PDT 2023


Author: Sergio Afonso
Date: 2023-07-20T15:39:09+01:00
New Revision: 3b642dfddad542cb697666ee714c453ee11ff803

URL: https://github.com/llvm/llvm-project/commit/3b642dfddad542cb697666ee714c453ee11ff803
DIFF: https://github.com/llvm/llvm-project/commit/3b642dfddad542cb697666ee714c453ee11ff803.diff

LOG: [Flang][OpenMP] Fix unit test using AMDGPU triple without requiring it

Added: 
    

Modified: 
    flang/test/Lower/OpenMP/omp-is-gpu.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Lower/OpenMP/omp-is-gpu.f90 b/flang/test/Lower/OpenMP/omp-is-gpu.f90
index eb4e8657f7fa93..b702fc2c5a7e25 100644
--- a/flang/test/Lower/OpenMP/omp-is-gpu.f90
+++ b/flang/test/Lower/OpenMP/omp-is-gpu.f90
@@ -1,3 +1,5 @@
+!REQUIRES: amdgpu-registered-target
+
 !RUN: %flang_fc1 -triple amdgcn-amd-amdhsa -emit-fir -fopenmp -fopenmp-is-target-device %s -o - | FileCheck %s
 !RUN: bbc -fopenmp -fopenmp-is-target-device -fopenmp-is-gpu -emit-fir -o - %s | FileCheck %s
 


        


More information about the flang-commits mailing list