[flang-commits] [flang] a1a7361 - [flang][OpenMP] Fix failure reported on #155992 (#158813)

via flang-commits flang-commits at lists.llvm.org
Tue Sep 16 02:49:09 PDT 2025


Author: Kareem Ergawy
Date: 2025-09-16T11:49:05+02:00
New Revision: a1a7361e1c22fc176c0b5c89b22907c1a3c1d28f

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

LOG: [flang][OpenMP] Fix failure reported on #155992 (#158813)

Adds a requirement on a test to run only when amd gpu is a registered
target. We need to do this since the test uses `-triple
amdgcn-amd-amdhsa` when invoking flang.

Added: 
    

Modified: 
    flang/test/Transforms/DoConcurrent/host_eval.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Transforms/DoConcurrent/host_eval.f90 b/flang/test/Transforms/DoConcurrent/host_eval.f90
index 7d16a91ae6941..4eacdd64c6e5f 100644
--- a/flang/test/Transforms/DoConcurrent/host_eval.f90
+++ b/flang/test/Transforms/DoConcurrent/host_eval.f90
@@ -1,3 +1,5 @@
+! REQUIRES: amdgpu-registered-target
+
 ! Tests `host_eval` clause code-gen and loop nest bounds on host vs. device.
 
 ! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa   \


        


More information about the flang-commits mailing list