3 Commits

Author SHA1 Message Date
Dustin Frisch f1ce53a487
all: updates 4 months ago
Dustin Frisch 82cb42395a
all: install edumpi 4 months ago
Dustin Frisch 1a1f8ce41d
slurm: make default queue work for all users 4 months ago
  1. 40
      flake.lock
  2. 2
      flake.nix
  3. 7
      packages/beegfs/default.nix
  4. 114
      packages/edumpi.nix
  5. 1
      shared/default.nix
  6. 14
      shared/edumpi.nix
  7. 2
      shared/slurm.nix
  8. 2
      shared/userenv.nix
  9. 10
      statix.toml

40
flake.lock

@ -30,11 +30,11 @@
]
},
"locked": {
"lastModified": 1699099781,
"narHash": "sha256-2WAs839yL6xmIPBLNVwbft46BDh0/RAjq1bAKNRqeR4=",
"lastModified": 1704741201,
"narHash": "sha256-Y420NeqPWRSpxHpXsxhKILfTxT5exjtTgCgDwSpcEfU=",
"owner": "nix-community",
"repo": "disko",
"rev": "548962c50b8afad7b8c820c1d6e21dc8394d6e65",
"rev": "f0a3425a7b173701922e7959d8bfb136ef53aa54",
"type": "github"
},
"original": {
@ -207,11 +207,11 @@
"ldap-sync": {
"flake": false,
"locked": {
"lastModified": 1704504213,
"narHash": "sha256-4Ocmxlx3oXVx9yKEYRlQFkeYI5MF8JoBtQtBJyggYLc=",
"lastModified": 1705328305,
"narHash": "sha256-PPc16Obzg53YVLSMP2pCOXBF6+q7/BIG6FF7EiI0st8=",
"ref": "refs/heads/main",
"rev": "363cb3f06378eb2de7571dc9048dded01cf11950",
"revCount": 12,
"rev": "49edeafeaf7fbadbfe59e4763223593cab989317",
"revCount": 14,
"type": "git",
"url": "https://gogs.informatik.hs-fulda.de/fooker/ldap-sync.git"
},
@ -344,16 +344,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1699169573,
"narHash": "sha256-cvUb1xZkvOp3W2SzylStrTirhVd9zCeo5utJl9nSIhw=",
"lastModified": 1704732714,
"narHash": "sha256-ABqK/HggMYA/jMUXgYyqVAcQ8QjeMyr1jcXfTpSHmps=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "aeefe2054617cae501809b82b44a8e8f7be7cc4b",
"rev": "6723fa4e4f1a30d42a633bef5eb01caeb281adc3",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.05",
"ref": "nixos-23.11",
"repo": "nixpkgs",
"type": "github"
}
@ -385,11 +385,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1698852633,
"narHash": "sha256-Hsc/cCHud8ZXLvmm8pxrXpuaPEeNaaUttaCvtdX/Wug=",
"lastModified": 1704904919,
"narHash": "sha256-bSNaCzA+mvod/TuVfPOb0pl27D6MvJf94a82q9UzyY4=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "dec10399e5b56aa95fcd530e0338be72ad6462a0",
"rev": "1e9287e7fcb699c84f0127b3c6f12b090cb61b10",
"type": "github"
},
"original": {
@ -421,11 +421,11 @@
]
},
"locked": {
"lastModified": 1699252567,
"narHash": "sha256-WCzEBCu17uXilT9OZ3XSy/c4Gk/j3L7AUxBRHzNlQ4Y=",
"lastModified": 1704905997,
"narHash": "sha256-p26UwSbqxQwaHtDO+Pw2rT7JV5oZCEyXcm0l30qjrvc=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "0a9d5e41f6013a1b8b66573822f9beb827902968",
"rev": "020dcff707252fa93884036eebf7b02e53d54a43",
"type": "github"
},
"original": {
@ -485,11 +485,11 @@
"systems": "systems_2"
},
"locked": {
"lastModified": 1694529238,
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"lastModified": 1701680307,
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
"type": "github"
},
"original": {

2
flake.nix

@ -4,7 +4,7 @@
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-23.05";
ref = "nixos-23.11";
};
colmena = {

7
packages/beegfs/default.nix

@ -1,6 +1,6 @@
{ stdenv
, fetchurl
, pkgconfig
, pkg-config
, util-linux
, which
, libuuid
@ -14,7 +14,8 @@
, cmake
, callPackage
, kernel ? null
, ... } :
, ...
}:
stdenv.mkDerivation (final: rec {
pname = "beegfs";
@ -26,7 +27,7 @@ stdenv.mkDerivation (final: rec {
};
nativeBuildInputs = [
pkgconfig
pkg-config
which
cmake
];

114
packages/edumpi.nix

@ -0,0 +1,114 @@
{ lib
, stdenv
, fetchFromGitHub
, git
, autoconf
, automake
, pkg-config
, gfortran
, perl
, python3
, flex
, libnl
, rdma-core
, zlib
, numactl
, libevent
, hwloc
, targetPackages
, symlinkJoin
, libpsm2
, libfabric
, libtool
, libbfd
, libiberty
, pmix
, ucx
, ucc
, postgresql
, ...
}:
stdenv.mkDerivation {
pname = "edumpi";
version = "ee0735";
src = fetchFromGitHub {
owner = "AnnaLena77";
repo = "EduMPI";
rev = "ee07355904db5b1e7f637498259b34d85edd2023";
hash = "sha256-0EQdVLHUAiMUufCy9CfBvWbXmYDpy/i/Cw77DZU+0mc=";
fetchSubmodules = true;
};
postPatch = ''
patchShebangs ./
'';
nativeBuildInputs = [
autoconf
automake
perl
python3
gfortran
git
flex
];
buildInputs = [
zlib
libnl
numactl
pmix
ucx
libevent
hwloc
rdma-core
libpsm2
libfabric
libtool
libbfd
libiberty
postgresql
];
LIBS = "-lpq";
CFLAGS = "-DENABLE_ANALYSIS=1";
preConfigure = ''
./autogen.pl
'';
configureFlags = [
"--disable-mca-dso"
"--with-libnl=${lib.getDev libnl}"
"--with-pmix=${lib.getDev pmix}"
"--with-pmix-libdir=${pmix}/lib"
"--with-psm2=${lib.getDev libpsm2}"
"--with-libfabric=${lib.getDev libfabric}"
"--with-libfabric-libdir=${libfabric}/lib"
];
enableParallelBuilding = true;
postInstall = ''
find $out/lib/ -name "*.la" -exec rm -f \{} \;
'';
#postFixup = ''
# sed -i 's:compiler=.*:compiler=${targetPackages.stdenv.cc}/bin/${targetPackages.stdenv.cc.targetPrefix}cc:' \
# $out/share/openmpi/mpicc-wrapper-data.txt
# sed -i 's:compiler=.*:compiler=${targetPackages.stdenv.cc}/bin/${targetPackages.stdenv.cc.targetPrefix}cc:' \
# $out/share/openmpi/ortecc-wrapper-data.txt
# sed -i 's:compiler=.*:compiler=${targetPackages.stdenv.cc}/bin/${targetPackages.stdenv.cc.targetPrefix}c++:' \
# $out/share/openmpi/mpic++-wrapper-data.txt
# sed -i 's:compiler=.*:compiler=${gfortran}/bin/${gfortran.targetPrefix}gfortran:' \
# $out/share/openmpi/mpifort-wrapper-data.txt
#'';
doCheck = true;
}

1
shared/default.nix

@ -9,6 +9,7 @@
./rdma.nix
./ssl.nix
./slurm.nix
./edumpi.nix
"${modulesPath}/profiles/headless.nix"
"${modulesPath}/profiles/all-hardware.nix"

14
shared/edumpi.nix

@ -0,0 +1,14 @@
{ pkgs, lib, ... }:
with lib;
let
edumpi = pkgs.callPackage ../packages/edumpi.nix { };
in
{
systemd.tmpfiles.rules = [
''L+ /opt/edumpi - - - - ${edumpi}''
];
}

2
shared/slurm.nix

@ -27,7 +27,7 @@ in
(attrValues nodes));
partitionName = [
"all Nodes=ALL AllowGroups=cluster Default=YES MaxTime=6:00:00 State=UP"
"all Nodes=ALL Default=YES MaxTime=6:00:00 State=UP"
"vip Nodes=ALL AllowGroups=vip Default=NO MaxTime=INFINITE State=UP"
];
};

2
shared/userenv.nix

@ -34,7 +34,7 @@ let
pandoc
papi
perl
pkgconfig
pkg-config
postgresql
postgresql.lib
python3

10
statix.toml

@ -0,0 +1,10 @@
nix_version = '2.4'
ignore = [
'.direnv'
]
disabled = [
'repeated_keys'
]
Loading…
Cancel
Save