From b9e9409a59f3579a617dd64c0912b29ba6fc05f1 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Mon, 10 Aug 2020 14:13:28 +0200 Subject: [PATCH] Success sbatch launch in MN4 with nbody seq --- bsc/garlic/default.nix | 8 +++++++- bsc/garlic/dispatcher.nix | 2 +- bsc/garlic/nbody/default.nix | 15 ++++++++++++++- bsc/garlic/srunner.nix | 9 ++++----- 4 files changed, 26 insertions(+), 8 deletions(-) diff --git a/bsc/garlic/default.nix b/bsc/garlic/default.nix index 8518514..90b2ad2 100644 --- a/bsc/garlic/default.nix +++ b/bsc/garlic/default.nix @@ -65,7 +65,13 @@ let }; nbodyBSjob = callPackage ./dispatcher.nix { - jobs = map (app: srunner {app=app;}) ( + jobs = map (app: srunner { + app=app; + prefix="/gpfs/projects/bsc15/nix"; + exclusive=false; + ntasks = "1"; + } + ) ( genApp nbody ( genConfigs { cc = [ bsc.icc ]; diff --git a/bsc/garlic/dispatcher.nix b/bsc/garlic/dispatcher.nix index 4594b34..6400916 100644 --- a/bsc/garlic/dispatcher.nix +++ b/bsc/garlic/dispatcher.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation { mkdir -p $out/bin cat > $out/bin/execute-all-jobs < $out/bin/run <