Skip to content

Commit 100d240

Browse files
committed
musa: Remove workaround in PR ggml-org#10042
Signed-off-by: Xiaodong Ye <[email protected]>
1 parent 664dc46 commit 100d240

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ggml/src/ggml-cuda/ggml-cuda.cu

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,12 +1480,7 @@ static void ggml_cuda_op_mul_mat(
14801480
const size_t nbytes_data = ggml_nbytes(src0);
14811481
const size_t nbytes_padding = ggml_row_size(src0->type, MATRIX_ROW_PADDING - ne00 % MATRIX_ROW_PADDING);
14821482
dev[id].src0_dd = dev[id].src0_dd_alloc.alloc(ctx.pool(id), nbytes_data + nbytes_padding);
1483-
// TODO: remove this for MUSA once the Guilty Lockup issue is resolved
1484-
#ifndef GGML_USE_MUSA
14851483
CUDA_CHECK(cudaMemsetAsync(dev[id].src0_dd, 0, nbytes_data + nbytes_padding, stream));
1486-
#else // GGML_USE_MUSA
1487-
CUDA_CHECK(cudaMemsetAsync(dev[id].src0_dd + nbytes_data, 0, nbytes_padding, stream));
1488-
#endif // !GGML_USE_MUSA
14891484
}
14901485

14911486
// If src0 is on a temporary compute buffer (partial offloading) there may be some padding that needs to be cleared:

0 commit comments

Comments
 (0)