Skip to content

Commit

Permalink
[Bugfix][Kernel] Promote another index to int64_t (#6838)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrmchlsmth authored Jul 26, 2024
1 parent 07278c3 commit 50704f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrc/quantization/fp8/common.cu
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ __global__ void segmented_max_reduction(float* __restrict__ scale,
const scalar_t* __restrict__ input,
int64_t num_elems) {
__shared__ float cache[1024];
int i = blockDim.x * blockIdx.x + threadIdx.x;
int64_t i = blockDim.x * blockIdx.x + threadIdx.x;

// First store maximum for all values processes by
// the current thread in cache[threadIdx.x]
Expand Down

0 comments on commit 50704f5

Please sign in to comment.