Unverified Commit 50704f52 authored by Tyler Michael Smith's avatar Tyler Michael Smith Committed by GitHub
Browse files

[Bugfix][Kernel] Promote another index to int64_t (#6838)

parent 07278c37
...@@ -48,7 +48,7 @@ __global__ void segmented_max_reduction(float* __restrict__ scale, ...@@ -48,7 +48,7 @@ __global__ void segmented_max_reduction(float* __restrict__ scale,
const scalar_t* __restrict__ input, const scalar_t* __restrict__ input,
int64_t num_elems) { int64_t num_elems) {
__shared__ float cache[1024]; __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 // First store maximum for all values processes by
// the current thread in cache[threadIdx.x] // the current thread in cache[threadIdx.x]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment