Skip to content

Commit 4fe4522

Browse files
author
Claude
committed
1
1 parent 868060f commit 4fe4522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-vulkan/vulkan-shaders/ssm_scan.comp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ void main() {
111111
int warp_id = tid / WARP_SIZE;
112112
int warp_offset = warp_id * WARP_SIZE;
113113

114-
warp_sdata[warp_offset + lane] = y;
114+
warp_sdata[tid] = y;
115115
barrier();
116116

117117
[[unroll]] for (int offset = WARP_SIZE / 2; offset > 0; offset >>= 1) {
118118
if (lane < offset) {
119-
warp_sdata[warp_offset + lane] += warp_sdata[warp_offset + lane + offset];
119+
warp_sdata[tid] += warp_sdata[tid + offset];
120120
}
121121
barrier();
122122
}

0 commit comments

Comments
 (0)