@@ -46,8 +46,8 @@ class test_col_major_1 {
4646 static constexpr size_t global_kslicing = 1 ;
4747 static constexpr mem_layout layout_a = mem_layout::row_major;
4848 static constexpr mem_layout layout_b = mem_layout::col_major;
49- static constexpr mma_engine mma_eng = mma_engine::fpu;
50- static constexpr gpu_arch arch = gpu_arch::XeLpg ;
49+ static constexpr mma_engine mma_eng =
50+ arch_has_xmx<TEST_GPU_ARCH> ? mma_engine::xmx : mma_engine::fpu ;
5151 using data_type_a = scalar_t ;
5252 using data_type_b = int4x8;
5353 using data_type_c = scalar_t ;
@@ -72,7 +72,6 @@ class test_col_major_2 {
7272 static constexpr mem_layout layout_a = mem_layout::row_major;
7373 static constexpr mem_layout layout_b = mem_layout::col_major;
7474 static constexpr mma_engine mma_eng = mma_engine::fpu;
75- static constexpr gpu_arch arch = gpu_arch::XeLpg;
7675 using data_type_a = fp16;
7776 using data_type_b = int4x8;
7877 using data_type_c = fp16;
@@ -297,22 +296,22 @@ void dequantize_gemv_run(int iter) {
297296 data_type_zero_pt,
298297 quant_info,
299298 Test::mma_eng,
300- Test::arch >;
299+ TEST_GPU_ARCH >;
301300
302301 using gemm_t = xetla::group::
303302 gemm_t <compute_policy, tile_shape, mem_desc_a_t , mem_desc_b_t >;
304303
305304 using bias_op_t =
306- gpu::xetla::subgroup::bias_add_op_t <mem_desc_bias_t , Test::arch >;
305+ gpu::xetla::subgroup::bias_add_op_t <mem_desc_bias_t , TEST_GPU_ARCH >;
307306
308307 using tile_op_t = gpu::xetla::subgroup::chained_tile_op_t <bias_op_t >;
309308
310309 using epilogue_t = xetla::group::epilogue_t <
311- xetla::group::epilogue_policy_tile_op<tile_op_t , Test::arch >,
310+ xetla::group::epilogue_policy_tile_op<tile_op_t , TEST_GPU_ARCH >,
312311 tile_shape,
313312 mem_desc_c_t >;
314313
315- using group_swizzle = xetla::kernel::group_swizzle_default<Test::arch >;
314+ using group_swizzle = xetla::kernel::group_swizzle_default<TEST_GPU_ARCH >;
316315
317316 using gemm_op_t = xetla::kernel::gemm_universal_t <
318317 gpu::xetla::kernel::dispatch_policy_int4_dequantize_kslicing<
0 commit comments