[flang-commits] [flang] [flang][openmp] Add missing REQUIRES line for -triple amdgcn-amd-amdhsa (PR #221300)
via flang-commits
flang-commits at lists.llvm.org
Fri Sep 4 10:49:43 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-openmp
Author: Valentin Clement (バレンタイン クレメン) (clementval)
<details>
<summary>Changes</summary>
This fails on build without amd target
```
error: unable to create target: 'No available targets are compatible with triple "amdgcn-amd-amdhsa"'
```
---
Full diff: https://github.com/llvm/llvm-project/pull/221300.diff
1 Files Affected:
- (modified) flang/test/Lower/OpenMP/target-update-derived-type.f90 (+2)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/221300
More information about the flang-commits
mailing list