Skip to content

Commit 7f9e251

Browse files
authored
[SYCL] Add LNL and BMG to device config file (#15194)
Follow up to #14188 adding LNL and BMG target info.
1 parent 8730002 commit 7f9e251

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

llvm/include/llvm/SYCLLowerIR/DeviceConfigFile.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ class IntelTargetInfo<string Name, list<Aspect> Aspects, list<int> subGroupSizes
176176
: TargetInfo<Name, IntelBaseAspects # Aspects, subGroupSizesList>;
177177
// Note: only the "canonical" target names are listed here - see
178178
// SYCL::gen::resolveGenDevice().
179+
def : IntelTargetInfo<"intel_gpu_bmg_g21", Fp16Fp64Atomic64, Sg16_32>;
180+
def : IntelTargetInfo<"intel_gpu_lnl_m", Fp16Fp64Atomic64, Sg16_32>;
179181
def : IntelTargetInfo<"intel_gpu_arl_h", Fp16Fp64Atomic64, Sg8_16_32>;
180182
def : IntelTargetInfo<"intel_gpu_mtl_h", Fp16Fp64Atomic64, Sg8_16_32>;
181183
def : IntelTargetInfo<"intel_gpu_mtl_u", Fp16Fp64Atomic64, Sg8_16_32>;

llvm/test/tools/sycl-post-link/multiple-filtered-outputs.ll

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
; RUN: -o intel_gpu_pvc,%t-pvc.table \
99
; RUN: -o intel_gpu_tgllp,%t-tgllp.table \
1010
; RUN: -o intel_gpu_cfl,%t-cfl.table \
11+
; RUN: -o intel_gpu_lnl_m,%t-lnl.table \
12+
; RUN: -o intel_gpu_bmg_g21,%t-bmg.table \
1113
; RUN: -o unrecognized_target,%t-unrecognized.table
1214

1315
; RUN: FileCheck %s -input-file=%t_0.sym -check-prefix=CHECK-DOUBLE
@@ -22,6 +24,8 @@
2224
; RUN: FileCheck %s -input-file=%t-pvc.table -check-prefix=CHECK-PVC
2325
; RUN: FileCheck %s -input-file=%t-tgllp.table -check-prefix=CHECK-TGLLP
2426
; RUN: FileCheck %s -input-file=%t-cfl.table -check-prefix=CHECK-CFL
27+
; RUN: FileCheck %s -input-file=%t-lnl.table -check-prefix=CHECK-LNL
28+
; RUN: FileCheck %s -input-file=%t-bmg.table -check-prefix=CHECK-BMG
2529

2630
; CHECK-DOUBLE: double_kernel
2731
; CHECK-FLOAT: float_kernel
@@ -81,6 +85,20 @@
8185
; RUN: FileCheck %s -input-file=%t_intel_gpu_cfl_5.prop -check-prefix=CHECK-CFL-PROP
8286
; CHECK-CFL-PROP: compile_target=2|oBAAAAAAAAQauRXZs91ZwV3XjZGb
8387

88+
; LNL does not support sg8 (=1) or sg64 (=2)
89+
; CHECK-LNL: _intel_gpu_lnl_m_0.prop|{{.*}}_0.sym
90+
; CHECK-LNL-NEXT: _intel_gpu_lnl_m_3.prop|{{.*}}_3.sym
91+
; CHECK-LNL-NEXT: _intel_gpu_lnl_m_4.prop|{{.*}}_4.sym
92+
; CHECK-LNL-NEXT: _intel_gpu_lnl_m_5.prop|{{.*}}_5.sym
93+
; CHECK-LNL-EMPTY:
94+
95+
; BMG does not support sg8 (=1) or sg64 (=2)
96+
; CHECK-BMG: _intel_gpu_bmg_g21_0.prop|{{.*}}_0.sym
97+
; CHECK-BMG-NEXT: _intel_gpu_bmg_g21_3.prop|{{.*}}_3.sym
98+
; CHECK-BMG-NEXT: _intel_gpu_bmg_g21_4.prop|{{.*}}_4.sym
99+
; CHECK-BMG-NEXT: _intel_gpu_bmg_g21_5.prop|{{.*}}_5.sym
100+
; CHECK-BMG-EMPTY:
101+
84102
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
85103
target triple = "spir64-unknown-unknown"
86104

0 commit comments

Comments
 (0)