Skip to content

Commit 51a2590

Browse files
author
bssrdf
committed
add missing const*
1 parent 3b8100c commit 51a2590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/cpy.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static __global__ void cpy_flt_transpose(const char * cx, char * cdst, const int
8181
for (int j = 0; j < CUDA_CPY_TILE_DIM_2D; j += CUDA_CPY_BLOCK_ROWS) {
8282
if (ty + j < ne01 && tx < ne00) {
8383
const int col = ((threadIdx.y+j)*sizeof(float)/sizeof(T)) ^ threadIdx.x; //swizzling to avoid bank conflicts
84-
T *tile2 = reinterpret_cast<T*>(tile[threadIdx.x]);
84+
const T *tile2 = reinterpret_cast<const T*>(tile[threadIdx.x]);
8585
dst[imat*n + (ty+j)*ne00 + tx] = tile2[col];
8686
}
8787
}

0 commit comments

Comments
 (0)