Row-major memory doesn't know what a "row" or "column" is — it only understands one flat address. Every tiling bug traces back to row * N + col arithmetic done on autopilot. Work through these until it isn't.
row-major, flattened to 1D arrays.M×K, B is K×N, C = A×B is M×N.blockDim.x = blockDim.y = TILE_DIM.A 4×6 matrix (N = 6), row-major, flattened into one strip. This is the exact mapping row * N + col is doing, every time.