aboutsummaryrefslogtreecommitdiff
path: root/examples/ex-tnpair
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ex-tnpair')
-rw-r--r--examples/ex-tnpair/README.md10
-rw-r--r--examples/ex-tnpair/cluster.nix15
2 files changed, 10 insertions, 15 deletions
diff --git a/examples/ex-tnpair/README.md b/examples/ex-tnpair/README.md
index 0eef691..54d489a 100644
--- a/examples/ex-tnpair/README.md
+++ b/examples/ex-tnpair/README.md
@@ -8,15 +8,9 @@ products.
Run `nix build -I bionix=../..` in this directory.
-# Building via HPC (slurm or torque)
+# Building via HPC (slurm)
Run `nix build -f cluster.nix` to build on slurm. Note that Nix must be
configured such that the temporary build directories are created on
-shared storage.
-
-For Torque, run `nix build -f cluster.nix -I bionix=../.. --argstr
-tmpDir /scratch/`. Unlike the slurm handler, a shared tmpdir location
-must be specified.
-
-In both cases, you may need to adjust the resource limits specified in
+shared storage. You may need to adjust the resource limits specified in
cluster.nix to suit your particular cluster hardware.
diff --git a/examples/ex-tnpair/cluster.nix b/examples/ex-tnpair/cluster.nix
index 5d4e1de..295d3eb 100644
--- a/examples/ex-tnpair/cluster.nix
+++ b/examples/ex-tnpair/cluster.nix
@@ -3,13 +3,14 @@
let
bionix = import <bionix> {
overlays = [
- (_: super:
- super."${if tmpDir == null then "slurm" else "qsub"}"
- {
- ppn = 24;
- mem = 7;
- walltime = "3:00:00";
- } // super.lib.optionalAttrs (tmpDir != null) { inherit tmpDir; })
+ (_: super: with super;
+ {
+ exec = f: def (slurm-exec f) {
+ ppn = 24;
+ mem = 7;
+ walltime = "3:00:00";
+ };
+ })
(self: super:
with super; {