Skip to content

Commit efd619a

Browse files
committed
Change to tid % warp_size
1 parent 9574264 commit efd619a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/cumsum.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static __global__ void cumsum_kernel(
8181

8282
const int tid = threadIdx.x;
8383
constexpr int warp_size = ggml_cuda_get_physical_warp_size();
84-
const int lane = tid & (warp_size - 1);
84+
const int lane = tid % warp_size;
8585
const int warp = tid / warp_size;
8686
const int warps_per_block = blockDim.x / warp_size;
8787

0 commit comments

Comments
 (0)