Skip to content

Commit 35a8f06

Browse files
committed
fix MUSA build
Signed-off-by: Molly Sophia <[email protected]>
1 parent 019120d commit 35a8f06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ggml/src/ggml-cuda/wkv.cu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ static __global__ void rwkv_wkv7_f32(const int B, const int T, const int C, cons
7979
float state[head_size];
8080
__shared__ float _r[head_size], _w[head_size], _k[head_size], _a[head_size], _b[head_size];
8181

82+
#ifndef GGML_USE_MUSA
8283
#pragma unroll
84+
#endif
8385
for (int i = 0; i < head_size; i++) {
8486
state[i] = s[batch_i * state_size + head_i * head_size * head_size + tid * head_size + i];
8587
}

0 commit comments

Comments
 (0)