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

Kareem Ergawy via flang-commits flang-commits at lists.llvm.org
Tue Sep 16 01:17:15 PDT 2025


https://github.com/ergawy created https://github.com/llvm/llvm-project/pull/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.

>From 167198fed2791f71be0ff8b3a57bdfba82a1ccde Mon Sep 17 00:00:00 2001
From: ergawy <kareem.ergawy at amd.com>
Date: Tue, 16 Sep 2025 03:13:58 -0500
Subject: [PATCH] [flang][OpenMP] Fix failure reported on #155992

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.
---
 flang/test/Transforms/DoConcurrent/host_eval.f90 | 2 ++
 1 file changed, 2 insertions(+)

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