File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -233,8 +233,9 @@ __global__ __launch_bounds__(THREADS_PER_CTA) void fast_ln_fwd_kernel(
233
233
#pragma unroll
234
234
for (int it = 0 , col = c; it < LDGS; it++) {
235
235
if (col < cols) {
236
- phi::Load<T, VecSize>(x_ptr + row * ELTS_PER_ROW + col * VecSize,
237
- &x[it]);
236
+ phi::Load<T, VecSize>(
237
+ x_ptr + static_cast <int64_t >(row) * ELTS_PER_ROW + col * VecSize,
238
+ &x[it]);
238
239
} else {
239
240
x[it] = Vec{};
240
241
}
@@ -344,8 +345,9 @@ __global__ __launch_bounds__(THREADS_PER_CTA) void fast_ln_fwd_kernel(
344
345
#pragma unroll
345
346
for (int it = 0 , col = c; it < LDGS; it++) {
346
347
if (col < cols) {
347
- phi::Store<T, VecSize>(x[it],
348
- y_ptr + row * ELTS_PER_ROW + col * VecSize);
348
+ phi::Store<T, VecSize>(
349
+ x[it],
350
+ y_ptr + static_cast <int64_t >(row) * ELTS_PER_ROW + col * VecSize);
349
351
}
350
352
col += THREADS_PER_ROW;
351
353
}
You can’t perform that action at this time.
0 commit comments