diff options
author | Ben Sima <ben@bsima.me> | 2024-04-09 20:16:24 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2024-04-10 19:56:46 -0400 |
commit | a6856775ad86d8f33d5d724a3843fb16e5a3551d (patch) | |
tree | 5c37f970991064f165563b9773b3d7d0c46a0224 /Biz/Bild/Deps/lion-pytorch.nix | |
parent | dabbe3cfa344f3ad011f26d570ee82621e2d1b67 (diff) |
Fix --cpus and --jobs
This patch fixes two problems:
1. Apparently the docopt spec wasn't written correctly, I needed to add a
metavar (like N for number) to the spec so that docopt would correctly parse
the command line args. Without this, I had just been using the default 6 and
10 that I hardcoded.
2. I never added the --max-jobs and --cores flags to NixBuild, so anytime I
built a nix target, i.e. any of my NixOS images, it would use all of the
available cores. I think this is part of why I struggled so much to build
webkitgtk: I *thought* I was limiting the resources to prevent an OOM crash,
but I wasn't.
With this fix, I can comfortably limit resources for a build, so I can continue
working while building something in the background.
Diffstat (limited to 'Biz/Bild/Deps/lion-pytorch.nix')
0 files changed, 0 insertions, 0 deletions