From 81be8b0a58168721aca0a4542966d1a3b789fdd9 Mon Sep 17 00:00:00 2001 From: yitingw1 <106734399+yitingw1@users.noreply.github.com> Date: Fri, 15 Sep 2023 09:41:16 +0800 Subject: [PATCH] [Fix][GPU] fix xetla compile failure (#2395) --- itex/core/kernels/gpu/xetla/mlp_op_gpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itex/core/kernels/gpu/xetla/mlp_op_gpu.h b/itex/core/kernels/gpu/xetla/mlp_op_gpu.h index f4e2cc47a..29a7897e8 100644 --- a/itex/core/kernels/gpu/xetla/mlp_op_gpu.h +++ b/itex/core/kernels/gpu/xetla/mlp_op_gpu.h @@ -59,8 +59,8 @@ struct fused_dense_func { kernel::gemm_t, brgemm_t, epilogue_t>; - static constexpr uint32_t barrier_count = gemm_op_t::brgemm_t::barrier_count; - static constexpr uint32_t slm_size = gemm_op_t::brgemm_t::slm_size; + static constexpr uint32_t barrier_count = gemm_op_t::get_barrier_count(); + static constexpr uint32_t slm_size = gemm_op_t::get_slm_size(); static inline void run(xetla_exec_item<3>* ei, dtype_a* A, dtype_b* B, dtype_c* C, dtype_c* bias, uint32_t mat_m,