Nix HPC | 78 Members | |
| Nix for High Perfomance Computing clusters | 19 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Apr 2023 | ||
Anyone tried running running Nix from Singularity and binding /nix/store? The cluster at my uni won't enable user namespaces, so no unchroot and no bubblewrap for me | 23:44:29 | |
singularity run --bind /abc:/efg something.sif works, but I want to use singularity-tools.buildImage and that puts e.g. the shell into /nix/store, which then is hidden by the --bind =' | 23:45:35 | |
And singularity run --overlay is, again, disabled on the cluster xD | 23:45:55 | |
In reply to @ryantalo:matrix.org
Hi, which path modifications are you referring to? | 23:46:27 | |
| 2 Apr 2023 | ||
| That describes using chroot - which I don't have permissions to do; nix seems to get to a point of reading/writing source files, and takes forever to work through them (like 5 mins+, log example here: https://gist.github.com/ryanswrt/3ebf02bd10e25319f153014698a14c63) and then eventually dies | 13:40:48 | |
| 3 Apr 2023 | ||
It ends up dying with error: setting up a private mount namespace: Operation not permitted | 00:50:04 | |
In reply to @ss:someonex.neti use singularity on a hpc to bind in a nix store, but not in conjunction with a singularity image as since i have a nix store in the container i just use the nix in that store | 01:19:37 | |
In reply to @jb:vk3.wtfIs it a prepoppulated store, or a writable image? | 11:15:52 | |
| 17:29:11 | ||
| I prepopulate a nix store in project/scratch area with a copy of nix then bind mount it in the container so it's writable | 20:53:52 | |
| The singularity image I use is completely empty, really just using singularity to bind mount as there's no namespaces | 20:54:42 | |
| 4 Apr 2023 | ||
| i've done hax with singularity too. i need to document them sometime | 03:43:20 | |
| Have you benched the performance profile of nix-in-singularity? How close is it to native? | 09:28:23 | |
| no i haven't but i expect it to be close to native as it's just a bunch of binds handled by the kernel | 11:39:46 | |
| @jbedo do you also disable the sandbox? I suppose what I'm seeing is nix trying to set up mount namespaces for the builds, but idk:
| 17:00:50 | |
| 6 Apr 2023 | ||
Ok, managed to get things building + running using the singularity method jbedo described; alas inode limits are killing me now. It seems that nix build nixpkgs#hello is essentially evaluating every nix package for some reason; why would /nix/store/tmp-1759374-1/x/pkgs/development/python-modules/qimage2ndarray be getting built for a simple c binary otherwise... | 02:12:15 | |
In reply to @ss:someonex.netyeah i disable sandbox and a few other things that don't work on luster (WAL & luster.lov ACL) | 02:47:49 | |
In reply to @ryantalo:matrix.orgit shouldn't be building anything you don't need, but it does need to unpack nixpkgs which might be your problem since there's quite a lot of files | 02:49:23 | |
| 7 Apr 2023 | ||
| 03:56:57 | ||
| 24 Apr 2023 | ||
| 08:37:39 | ||
| 1 May 2023 | ||
| 12:46:05 | ||
| 2 May 2023 | ||
Hello, has anybody managed to run MPI-aware applications via nix-portable or Nixie on an HPC cluster where Nix isn't installed? Single-node executables work fine, but I'm struggling to do anything with multi-node stuff. Currently trying to go through Singularity with pkgs.singularity-tools, but no luck so far. So if anybody has an example, that'd very much appreciated. | 07:33:55 | |
| 18 May 2023 | ||
| 14:04:45 | ||
| 14:13:45 | ||
| 20 May 2023 | ||
| 03:41:55 | ||
| 07:12:22 | ||
| 07:13:58 | ||
In reply to @twesterhout:matrix.orgI'm not familliar with MPI. Does it rely on certain device file or top-level directory? | 12:49:27 | |
| 21 May 2023 | ||
| 19:02:31 | ||
| 23 May 2023 | ||
| 09:58:24 | ||