Repository navigation
openmpCheckPhaseHook: init - #535725
openmpCheckPhaseHook: init #535725
Conversation
08b81b5 to
337786d
Compare
337786d to
576031c
Compare
|
While I understand the issue it causes for hydra, there was a good reason for us to have threqds set to 2 in the computational chemistry ecosystem: the subtle bugs OpenBLAS versions sometimes had in the past for specific kernels on some CPUs only manifested in parallel runs, while single threaded execution would be fine. But of course any real world execution of the program would use multi threading. Thus, in some cases setting checks to run single threaded may hide real bugs. I'm not too happy with that change to all packages in chemistry ecosystem. What would be a good compromise to not overload hydra workers falsely but keep tests relevant? |
|
Feel free to re-set the value to two, if needed. That is still within reasonable bounds for hydra. We just needed a fix for very high cpu pressure on hydra fast. |
|
This is a good thing, but I also agree with @sheepforece that the default should be 2 cores. |
|
This PR was intended to catch most of the runaway I also believe the default of 1 thread is sensible. It avoids a whole bunch of headaches of race conditions and other non-reproducible behavior.
I don't think this is ever a useful indicator for builds done on hydra. This may be a useful indicator during testing/updating, fair. Two threads are manageable by hydra. If you want two threads, open a PR (against staging-next) and review-request me, we can do that relatively quickly. Put a comment why, so the rationale is documented. But the default wherever there isn't an explicit number should be 1 i think. |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin staging-next-26.05
git worktree add -d .worktree/backport-535725-to-staging-next-26.05 origin/staging-next-26.05
cd .worktree/backport-535725-to-staging-next-26.05
git switch --create backport-535725-to-staging-next-26.05
git cherry-pick -x 8ff970916b975cfd1b79ff3751061526fe88614b 71fbdd6512fcf27434aa34bbb9a830c1a8a2068b 240ef095c6bc783e437fb69b74442db6219d0e49 559ae88af990e9cc835f791f1fca62283ac574a7 df838c503eaeb72f9a100ccf8e5914fe65a11502 b3944a1e306623cb152573d1aaad9ba569a9d67f ef8b8d8f58919deb3d462416e582dadafe3fb833 d5ae461bf7277e6fcbb5239e4b268ed2792e6ef2 cd137f1c889116425f507d709e709dead46dbcea 576031cf3c432361b33dff42e71ce639518a9219 |
|
|
Feel free to pick f6fa032 into staging and staging-next-26.05. |
Tests using blas/lapack stack (typically via numpy/scipy) may use OpenMP to do parallelism. This messes with our build scheduling on hydra, because OpenMP does not respect
NIX_BUILD_CORES, causing massively overloaded systems. As a solution,openmpCheckPhaseHookis introduced, fixingOMP_NUM_THREADSto 1 by default. This should fix most of the issues we were seeing, at least from python things.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.