Move personal shells to a custom directory

This commit is contained in:
2026-02-04 10:25:22 +01:00
parent 0495bf0dee
commit 150bdae46e
9 changed files with 0 additions and 0 deletions

45
custom/arnau/posv/flake.lock generated Normal file
View File

@@ -0,0 +1,45 @@
{
"nodes": {
"jungle": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1760427467,
"narHash": "sha256-DemQ+XT3BWXh8fr6UDfGNUB4ba0tGJXyep5/lg+gBD4=",
"ref": "refs/heads/master",
"rev": "4261d327c678e52abdd568a27168ea7cdd0484a0",
"revCount": 1487,
"type": "git",
"url": "https://jungle.bsc.es/git/rarias/jungle"
},
"original": {
"type": "git",
"url": "https://jungle.bsc.es/git/rarias/jungle"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1752436162,
"narHash": "sha256-Kt1UIPi7kZqkSc5HVj6UY5YLHHEzPBkgpNUByuyxtlw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "dfcd5b901dbab46c9c6e80b265648481aafb01f8",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"jungle": "jungle"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -0,0 +1,47 @@
{
# Fetch the list of packages for BSC
inputs.jungle.url = "git+https://jungle.bsc.es/git/rarias/jungle";
outputs = { self, jungle }:
let
customOverlay = final: prev: {
# Disable GIL in python
python314 = prev.python314.override {
enableGIL = false;
};
# Use a custom nOS-V commit
nosv = prev.nosv.override {
useGit = true;
gitBranch = "nosv_join";
gitCommit = "33130d271a59d0794545e4a2a597a56951e428aa";
gitUrl = "ssh://git@gitlab-internal.bsc.es/acinca/nos-v.git";
};
};
pkgs = import jungle.inputs.nixpkgs {
system = "x86_64-linux";
overlays = [
# Add our BSC packages
jungle.bscOverlay
# And our changes above on top
customOverlay
];
};
in {
devShells.x86_64-linux.default = pkgs.mkShell {
pname = "devshell";
# Set the NOSV_HOME to point to the current nosv package
NOSV_HOME = pkgs.nosv;
# These will be included in the environment with `nix develop`.
buildInputs = with pkgs; [
# Add python to the develop shell, with setuptools included
(python314.withPackages (python-pkgs: with python-pkgs; [
setuptools
]))
# Extra packages
gcc cowsay nosv
];
};
};
}

45
custom/isabel/slurm/flake.lock generated Normal file
View File

@@ -0,0 +1,45 @@
{
"nodes": {
"jungle": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1760427467,
"narHash": "sha256-DemQ+XT3BWXh8fr6UDfGNUB4ba0tGJXyep5/lg+gBD4=",
"ref": "refs/heads/master",
"rev": "4261d327c678e52abdd568a27168ea7cdd0484a0",
"revCount": 1487,
"type": "git",
"url": "https://jungle.bsc.es/git/rarias/jungle"
},
"original": {
"type": "git",
"url": "https://jungle.bsc.es/git/rarias/jungle"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1752436162,
"narHash": "sha256-Kt1UIPi7kZqkSc5HVj6UY5YLHHEzPBkgpNUByuyxtlw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "dfcd5b901dbab46c9c6e80b265648481aafb01f8",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"jungle": "jungle"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -0,0 +1,44 @@
{
inputs.jungle.url = "git+https://jungle.bsc.es/git/rarias/jungle";
outputs = { self, jungle }:
let
nixpkgs = jungle.inputs.nixpkgs;
lib = nixpkgs.lib;
clusterOverlay = (final: prev: {
# Use cluster llvm compiler repo
clangOmpss2Unwrapped = prev.clangOmpss2Unwrapped.override {
useGit = true;
gitUrl = "ssh://git@bscpm04.bsc.es/ompss-2-at-cluster/llvm.git";
gitCommit = "151c260ba834826c01855da0a41fc203ffe4d025";
gitBranch = "cluster";
};
# Configure MPICH to use UCX with multiple thread support
mpich = prev.mpich.overrideAttrs (old: {
configureFlags = (lib.remove "--with-device=ch4:ofi" old.configureFlags) ++ [
"--with-device=ch4:ucx"
"--enable-threads=multiple"
];
});
});
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [
# Apply jungle overlay to get our BSC custom packages
jungle.outputs.bscOverlay
# And on top apply our local changes to customize for cluster
clusterOverlay
];
};
in {
devShells.x86_64-linux.default = pkgs.mkShell {
pname = "devshell";
buildInputs = with pkgs; [
slurm.out slurm.dev gcc
clangOmpss2 mpich osumb
];
inputsFrom = with pkgs; [
nanos6
];
};
};
}

View File

@@ -0,0 +1,12 @@
#include <stdio.h>
int main()
{
#pragma oss task node(0)
{
printf("Tasking\n");
}
#pragma oss taskwait
printf("Past the task\n");
return 0;
}

1
custom/vincent/chol/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
out/

45
custom/vincent/chol/flake.lock generated Normal file
View File

@@ -0,0 +1,45 @@
{
"nodes": {
"jungle": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1769187376,
"narHash": "sha256-H8aMWt4OVwXWoUPPSZuj0eSq3Ur17nY62Ap+hYiQy3o=",
"ref": "refs/heads/master",
"rev": "deb0cd1488b8d72ad1395b25aa4dbbdf721274d9",
"revCount": 1533,
"type": "git",
"url": "https://jungle.bsc.es/git/rarias/jungle"
},
"original": {
"type": "git",
"url": "https://jungle.bsc.es/git/rarias/jungle"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1767634882,
"narHash": "sha256-2GffSfQxe3sedHzK+sTKlYo/NTIAGzbFCIsNMUPAAnk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3c9db02515ef1d9b6b709fc60ba9a540957f661c",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"jungle": "jungle"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -0,0 +1,61 @@
{
inputs.jungle.url = "git+https://jungle.bsc.es/git/rarias/jungle";
outputs = { self, jungle }:
let
nixpkgs = jungle.inputs.nixpkgs;
customOverlay = (final: prev: {
# Build blis for Fox architecture and without OpenMP
amd-blis = (prev.amd-blis.override {
withOpenMP = false;
withArchitecture = "zen4";
}).overrideAttrs (old: {
hardeningDisable = [ "all" ];
});
# Disable OpenMP in flame
amd-libflame = (prev.amd-libflame.override {
withOpenMP = false;
}).overrideAttrs (old: {
hardeningDisable = [ "all" ];
});
# Build bench6 with blis
bench6 = prev.bench6.overrideAttrs (old: {
buildInputs = with final; [
bigotes
openmp
openmpv
nanos6
nodes
nosv
mpi
tampi
ovni
amd-blis
amd-libflame
];
cmakeFlags = (old.cmakeFlags or []) ++ [
"-DCBLAS_INCLUDE_DIR=${final.amd-blis}/include/blis"
"-DLAPACKE_INCLUDE_DIR=${final.amd-libflame}/include"
"-DLAPACKE_LIBRARY=${final.amd-libflame}/lib/liblapacke.so.3"
];
});
});
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [
jungle.outputs.bscOverlay
customOverlay
];
};
in {
devShells.x86_64-linux.default = pkgs.mkShell {
pname = "devshell";
packages = with pkgs; [
bench6 bigotes ministat
];
};
packages.x86_64-linux.bench6 = pkgs.bench6;
};
}

20
custom/vincent/chol/run.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
if [ -z "$1" ]; then
exec nix develop -c $0 run
#exec srun -J chol -p fox --exclusive nix develop -c $0 run
fi
set -eux
size=$((32*1024))
bs=512
b6dir=$(which b6_cholesky_nodes | awk -F/ '{print $4}')
wdir="out/$b6dir"
mkdir -p "$wdir"
log="$wdir/b6_cholesky_nodes-$size-$bs.csv"
bigotes -o "$log" -- b6_cholesky_nodes $size $bs
ministat -w80 "$log"