From 512addb70c2dc85b9130e9b13f3420c86f6ccb3c Mon Sep 17 00:00:00 2001 From: "Kassen, Andrew" Date: Sun, 12 Jan 2025 14:26:48 -0800 Subject: [PATCH] xe: jit: gemm: fix signedness in arg to ilog2 --- src/gpu/intel/jit/gemm/generator/pieces/matrix_access.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gpu/intel/jit/gemm/generator/pieces/matrix_access.cxx b/src/gpu/intel/jit/gemm/generator/pieces/matrix_access.cxx index 52d8f055922..12c6018e33a 100644 --- a/src/gpu/intel/jit/gemm/generator/pieces/matrix_access.cxx +++ b/src/gpu/intel/jit/gemm/generator/pieces/matrix_access.cxx @@ -518,8 +518,8 @@ void BLASKernelGenerator::loadLoadStoreDescriptors(bool load, bool store, Re exdescStore.parts.extMessageLen = 0; descLoad.parts.responseLen = 0; - int underlyingSIMD = std::max(block.simdSize, maxScatteredSIMD(hw, astrategy) >> 1); - int log2GRFs = ilog2(underlyingSIMD * (int)block.ebytes) - GRF::log2Bytes(hw); + uint32_t underlyingSIMD = std::max(block.simdSize, (uint32_t)maxScatteredSIMD(hw, astrategy) >> 1); + int log2GRFs = ilog2(underlyingSIMD * block.ebytes) - GRF::log2Bytes(hw); int log2Components = int(block.splitComplex); if (channel) mov(1, t2, 0x1000 << log2Components);