[flang-commits] [flang] [flang][openmp] Add missing REQUIRE line for -triple amdgcn-amd-amdhsa (PR #221300)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Fri Sep 4 10:49:04 PDT 2026
https://github.com/clementval created https://github.com/llvm/llvm-project/pull/221300
This fails on build without amd target
```
error: unable to create target: 'No available targets are compatible with triple "amdgcn-amd-amdhsa"'
```
>From 874130b915c2d17ec42a19d68670636984a34dc9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Valentin=20Clement=20=28=E3=83=90=E3=83=AC=E3=83=B3?=
=?UTF-8?q?=E3=82=BF=E3=82=A4=E3=83=B3=20=E3=82=AF=E3=83=AC=E3=83=A1?=
=?UTF-8?q?=E3=83=B3=29?= <clementval at gmail.com>
Date: Fri, 4 Sep 2026 10:48:12 -0700
Subject: [PATCH] [flang][openmp] Add missing REQUIRE line for -triple
amdgcn-amd-amdhsa
---
flang/test/Lower/OpenMP/target-update-derived-type.f90 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/flang/test/Lower/OpenMP/target-update-derived-type.f90 b/flang/test/Lower/OpenMP/target-update-derived-type.f90
index cdf81aa477330..aefc78398e774 100644
--- a/flang/test/Lower/OpenMP/target-update-derived-type.f90
+++ b/flang/test/Lower/OpenMP/target-update-derived-type.f90
@@ -4,6 +4,8 @@
! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa,nvptx64-nvidia-cuda %s -o - | FileCheck %s --check-prefix=MIXED
! RUN: %flang_fc1 -triple amdgcn-amd-amdhsa -emit-hlfir -fopenmp -fopenmp-is-target-device %s -o - | FileCheck %s --check-prefix=DEVICE
+!REQUIRES: amdgpu-registered-target
+
module target_update_derived_type
type :: wavefun
real(8) :: ferwe
More information about the flang-commits
mailing list