Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix common compilation issues by auto-adjusting ninja MAX_JOBS env var #832

Merged
merged 1 commit into from
Feb 18, 2024

Commits on Feb 17, 2024

  1. Optimize compile to 1: avoid oom 2: minimize swap usage 3: avoid thre…

    …ads starvation when letting ninja decide how many workers to spawn or manual MAX_JOBS "guesses". Logic is to take the min value of MAX_JOBS auto-calculated by two metrics: 1: cpu cores 2: free memory. This should allow flash-attn to compile close to the most efficient manner under any consumer/server env.
    Qubitium committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    c778389 View commit details
    Browse the repository at this point in the history