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/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;
}