Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

qwen38: 'workers' is read only by the pragma, so it is unused without OpenMP

Courtney Andrew Richardsonf6162f683a22
diff --git a/c/qwen38_core.h b/c/qwen38_core.h
index f2e5b38b..4ac743b5 100644
--- a/c/qwen38_core.h
+++ b/c/qwen38_core.h
@@ -1373,6 +1373,8 @@ static int q38_expert_get_batch(Model *m,int layer,const int *experts,int count,
int workers=job_count;
#ifdef _OPENMP
int thread_limit=omp_get_max_threads();if(workers>thread_limit)workers=thread_limit;
+#else
+ (void)workers; /* only the pragma below reads it, and that is gone without OpenMP */
#endif
double started=now_s();
#pragma omp parallel for schedule(static) num_threads(workers) if(job_count>1)