[llvm] [AMDGPU] Defaults for missing dimensions in SYCL required wg size (PR #72652)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 03:33:37 PST 2023


================
@@ -0,0 +1,42 @@
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -verify-machineinstrs < %s | FileCheck %s
+
+; Make sure that SYCL kernels with less than 3 dimensions specified in required
+; work group size, have those dimensions padded up with 1.
+
+; CHECK-LABEL: .name:           sycl_kernel_1dim
+; CHECK:    .reqd_workgroup_size:
+; CHECK-NEXT:      - 3
+; CHECK-NEXT:      - 1
+; CHECK-NEXT:      - 1
+define weak_odr protected amdgpu_kernel void @sycl_kernel_1dim() #1 !reqd_work_group_size !0 {
----------------
arsenm wrote:

Don't need the weak_odrs 

https://github.com/llvm/llvm-project/pull/72652


More information about the llvm-commits mailing list