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

fix(test): build the fp8 e2e harness with -fopenmp on Linux

JustVugg8861d97e8786
diff --git a/c/tests/test_fp8_e2e_repack_load.py b/c/tests/test_fp8_e2e_repack_load.py
index 844a8c82..c38cd4d7 100644
--- a/c/tests/test_fp8_e2e_repack_load.py
+++ b/c/tests/test_fp8_e2e_repack_load.py
@@ -49,6 +49,14 @@ def _cc_flags():
cflags = ["-O3", "-Wall", "-Wextra", "-Wno-unused-parameter",
"-Wno-misleading-indentation", "-Wno-unused-function"]
ldflags = ["-lm"]
+ if sys.platform not in ("darwin", "win32"):
+ # -fopenmp, like the Makefile. Without it every '#pragma omp' in colibri.c
+ # becomes a -Wunknown-pragmas warning (-Wall enables it), and the assertion
+ # below requires an empty stderr -- so on Linux this test failed for a
+ # reason that had nothing to do with what it is testing. macOS gets the
+ # libomp probe just below; Windows/MinGW is left alone.
+ cflags += ["-fopenmp"]
+ ldflags += ["-fopenmp"]
if sys.platform == "darwin":
try:
prefix = subprocess.run(["brew", "--prefix", "libomp"], capture_output=True,