!UNVBThoJtlIiVwiDjU:nixos.org

Staging

396 Members
Staging merges | Find currently open staging-next PRs: https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+sort%3Aupdated-desc+head%3Astaging-next+head%3Astaging-next-21.05+is%3Aopen127 Servers

Load older messages


SenderMessageTime
26 Jun 2026
@vcunat:matrix.orgVladimír Čunát Jan Tojnar is in .maintainers of that test. 13:05:12
@k900:0upti.meK900I'll just do a PR to use another font13:09:52
@vcunat:matrix.orgVladimír Čunát

I forced the channel update already

567a49d1913c..e73de5be04e0  nixos-unstable

as 10 days lag is way too much.

13:11:30
@jappie:jappie.devjappieI don't think I've ever seen 9 channels this close together :p13:14:53
@jappie:jappie.devjappieimage.png
Download image.png
13:14:53
@sempiternal-aurora:matrix.orgMyriaApplying my bump to master doesn't have the issue it seems. Might be a different problem, I'll bisect applying the commits and see if I can isolate it13:16:26
@emilazy:matrix.orgemilyno longer the default in GNOME even13:27:14
@emilazy:matrix.orgemilyoh, sorry missed context13:27:22
@emilazy:matrix.orgemily still building Darwin stdenv on the big-rebuild PR fwiw 13:28:04
@k900:0upti.meK900https://github.com/NixOS/nixpkgs/pull/53567513:41:38
@grimmauld:m.grimmauld.deGrimmauld (any/all) I also wonder how dumb of an idea it would be to just unconditionally throw OMP_NUM_THREADS=1 into our stdenv, to fix most of the scheduling nightmares 13:43:26
@grimmauld:m.grimmauld.deGrimmauld (any/all)
diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix
index 89d413931c1b..be5afd66ad05 100644
--- a/pkgs/stdenv/generic/make-derivation.nix
+++ b/pkgs/stdenv/generic/make-derivation.nix
@@ -928,6 +928,7 @@ let
       cmakeFlags ? [ ],
       mesonFlags ? [ ],
 
+      ompNumThreads ? 1,
       meta ? { },
       passthru ? { },
       pos ? # position used in error messages and for meta.position
@@ -961,7 +962,11 @@ let
 
     let
       env' =
-        if attrs ? meta.mainProgram then env // { NIX_MAIN_PROGRAM = attrs.meta.mainProgram; } else env;
+        env
+        // {
+          OMP_NUM_THREADS = ompNumThreads;
+        }
+        // lib.optionalAttrs (attrs ? meta.mainProgram) { NIX_MAIN_PROGRAM = attrs.meta.mainProgram; };
 
       derivationArg = makeDerivationArgument (
         removeAttrs attrs argumentAttrsToRemove
something like this maybe
13:45:13
@grimmauld:m.grimmauld.deGrimmauld (any/all)(+ docs ig)13:45:27
@grimmauld:m.grimmauld.deGrimmauld (any/all) that seems to work, but i am also somewhat clueless about best practices around stdenv, not sure i should be the one doing that PR... 13:46:15
@emilazy:matrix.orgemilydon't let llakala see13:46:24
@emilazy:matrix.orgemilytbh I would prefer a slightly less blunt instrument if possible13:46:47
@emilazy:matrix.orgemily at least unless we're going to set a bunch of other stuff in stdenv too 13:46:55
@emilazy:matrix.orgemily(if we do want to do this it should probably be in the Bash code though)13:47:06
@grimmauld:m.grimmauld.deGrimmauld (any/all) We'd want to allow overriding it, right? 13:47:22
@emilazy:matrix.orgemily we have an mpiCheckPhaseHook 13:47:23
@emilazy:matrix.orgemilyI guess stuff is just not using it?13:47:26
@emilazy:matrix.orgemily yeah, so := it 13:47:32
@emilazy:matrix.orgemily what I think I'd prefer is a default preCheck hook that yells if it can tell you're about to do OpenMP stuff but don't have mpiCheckPhaseHook, or something 13:48:01
@emilazy:matrix.orgemilybecause it sets a bunch of other stuff too13:48:12
@emilazy:matrix.orgemilyadmittedly "tell you're about to do OpenMP stuff" might be complicated13:48:34
@dramforever:matrix.orgdramforeveropenmp and mpi are almost unrelated13:48:47
@dramforever:matrix.orgdramforevermight explain why13:48:59
@emilazy:matrix.orgemilywell13:49:06
@emilazy:matrix.orgemily mpiCheckPhaseHook sets OMP_NUM_THREADS 13:49:11
@emilazy:matrix.orgemilyso maybe I'm not the only one confused by this :P13:49:23

Show newer messages


Back to Room ListRoom Version: 6