Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions ggml/src/ggml-cpu/llamafile/sgemm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,7 @@ class tinyBLAS {
ggml_threadpool_chunk_set(params->threadpool, params->nth);
}

ggml_barrier(params->threadpool);

int64_t job = params->ith;
while (job < nb_job) {
for (int64_t job = params->ith; job < nb_job; job += params->nth) {
const int64_t ii = (job % ytiles) * RM * BM;
const int64_t jb = job / ytiles;
const int64_t jr0 = BLOC_POS(jb , jj_BN, SIZE_BN);
Expand All @@ -472,7 +469,6 @@ class tinyBLAS {
GGML_ASSERT(jj == jj2);
}

job = ggml_threadpool_chunk_add(params->threadpool, 1);
}

ggml_barrier(params->threadpool);
Expand Down
Loading