Skip to content

Commit e2c50b1

Browse files
fix const correctness
1 parent 17f191e commit e2c50b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-cuda/mma.cuh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,8 +965,8 @@ namespace ggml_cuda_mma {
965965
template <typename T1, typename T2, int J, int K>
966966
static __device__ __forceinline__ void mma(
967967
tile<32, J, T1> & D, const tile<32, K, T2> & A, const tile<J, K, T2> & B) {
968-
tile<16, J, T1> * D16 = (tile<16, J, T1> *) &D;
969-
tile<16, K, T2> * A16 = (tile<16, K, T2> *) &A;
968+
tile <16, J, T1> * D16 = reinterpret_cast< tile<16, J, T1> *>(&D);
969+
const tile<16, K, T2> * A16 = reinterpret_cast<const tile<16, K, T2> *>(&A);
970970
mma(D16[0], A16[0], B);
971971
mma(D16[1], A16[1], B);
972972
}

0 commit comments

Comments
 (0)