Skip to content

Commit

Permalink
xe: jit: gemm: fix signedness in arg to ilog2
Browse files Browse the repository at this point in the history
  • Loading branch information
atkassen committed Jan 12, 2025
1 parent f145cbe commit 512addb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gpu/intel/jit/gemm/generator/pieces/matrix_access.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ void BLASKernelGenerator<hw>::loadLoadStoreDescriptors(bool load, bool store, Re
exdescStore.parts.extMessageLen = 0;
descLoad.parts.responseLen = 0;

int underlyingSIMD = std::max<int>(block.simdSize, maxScatteredSIMD(hw, astrategy) >> 1);
int log2GRFs = ilog2(underlyingSIMD * (int)block.ebytes) - GRF::log2Bytes(hw);
uint32_t underlyingSIMD = std::max<uint32_t>(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);
Expand Down

0 comments on commit 512addb

Please sign in to comment.