mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 01:05:01 +08:00
[Bugfix][Kernel] Promote another index to int64_t (#6838)
This commit is contained in:
parent
07278c37dd
commit
50704f52c4
@ -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]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user