rocmPackages.hipblaslt: stop inlining war and peace in asm comments#449985
rocmPackages.hipblaslt: stop inlining war and peace in asm comments#449985JohnRTitor merged 1 commit intoNixOS:masterfrom
Conversation
Reduces peak build dir usage to 150G hipblaslt was filling the build tmpfs, peaking at 240G in the build/Tensile/build_tmp/TENSILEdir with this bodge we stop it from writing very verbose comments in the generated assembly kernels example excessive whitespace/comment content: s_nop 0 // 1 wait state required when next inst writes vgprs held by previous dwordx4 store inst
|
|
Running a review, 30 mins in, 60G so far |
06kellyjac
left a comment
There was a problem hiding this comment.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 449985 --package rocmPackages.gfx908.hipblaslt --package rocmPackages.hipblaslt
Commit: f263078e24f2e66264a1913ff4d71393a82d76b8
x86_64-linux
✅ 4 packages built:
- rocmPackages.gfx908.hipblaslt
- rocmPackages.gfx908.hipblaslt.benchmark (rocmPackages.gfx908.hipblaslt.benchmark.benchmark)
- rocmPackages.hipblaslt
- rocmPackages.hipblaslt.benchmark (rocmPackages.hipblaslt.benchmark.benchmark)
151GB peak, very cool improvement 🚀
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/2581 |
|
Even with this patch the build failed for me with the same out of space failure. |
|
It still needs way too much space with the patch, but it reduces it enough that it should pass on hydra. Talked with @mweinelt If you're trying to build this locally make sure you have 160GB free wherever your nix build temp dirs end up. |
|
My |
The current tmpfs on x86 _64-linux is still 160 GB. I still need to reinstall the builders to make that larger. We might get lucky until then. |
|
My man.... That's why my build was taking too long and way too much space. |
|
|
|
it's caused by hipblaslt build failure, alread fixed in master, refer to NixOS/nixpkgs#449985
it's caused by hipblaslt build failure, alread fixed in master, refer to NixOS/nixpkgs#449985
Fixes #449880 by reducing peak build dir space usage to 150GB
hipblaslt was filling the build tmpfs on hydra, peaking at 240GB in
build/Tensile/build_tmp/TENSILEwith this bodge we stop it from writing very verbose comments in the generated assembly kernels which were contributing a significant portion of the total build directory size
example excessive whitespace/comment content:
s_nop 0 // 1 wait state required when next inst writes vgprs held by previous dwordx4 store instThis is not an optimal fix. Ideally TensileCreateLibrary should be taught to throw away .S files as soon as possible by turning them into code objects, rather than its current approach that materializes all assembly files at the same time in one huge directory.
I will aim to create a better upstreamable fix; we need a short term fix so here we are. 🙃
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.