Skip to content

Conversation

@Ayush10
Copy link

@Ayush10 Ayush10 commented Feb 1, 2026

Summary

  • Added --parallel flag to the cmake --build command in setup_env.py
  • Without this flag, cmake defaults to single-threaded compilation, which can take hours on low-end ARM devices
  • With --parallel, cmake automatically uses all available CPU cores

Test plan

  • Run python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s and verify build completes using multiple cores
  • Verify build still succeeds on Windows (Visual Studio generator) and Linux/macOS (Make/Ninja generators)

Fixes #303

The cmake build command was missing the --parallel flag, forcing
single-threaded compilation. This made builds unnecessarily slow,
especially on low-end ARM devices where single-core I/O can cause
the build to take hours.

Adding --parallel lets cmake use all available CPU cores by default.

Fixes microsoft#303
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[build] require for parallel compiling!

1 participant