Use int64_t instead of uint32_t for index_t

This commit is contained in:
Tri Dao 2024-01-22 11:25:50 -08:00
parent e43a4ceaab
commit 000b67f5d8

View File

@ -22,7 +22,7 @@ constexpr int D_DIM = 2;
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
struct Qkv_params { struct Qkv_params {
using index_t = uint32_t; using index_t = int64_t;
// The QKV matrices. // The QKV matrices.
void *__restrict__ q_ptr; void *__restrict__ q_ptr;
void *__restrict__ k_ptr; void *__restrict__ k_ptr;