From 8b22437bf1f4b95060544d8772464558a9e792a1 Mon Sep 17 00:00:00 2001
From: Antoine Cyril David Hoffmann <ahoffman@spcpc606.epfl.ch>
Date: Mon, 22 Feb 2021 13:40:55 +0100
Subject: [PATCH] adapting for PPB110

---
 wk/ppb110_run.m | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/wk/ppb110_run.m b/wk/ppb110_run.m
index 0cf6608c..fec0f0d8 100644
--- a/wk/ppb110_run.m
+++ b/wk/ppb110_run.m
@@ -5,12 +5,9 @@ addpath(genpath('../matlab')) % ... add
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% CLUSTER PARAMETERS
 CLUSTER.TIME  = '01:00:00'; % allocation time hh:mm:ss
-CLUSTER.NODES = '1';        % MPI process
-CLUSTER.CPUPT = '1';        % CPU per task
-CLUSTER.NTPN  = '8';       % N tasks per node
-CLUSTER.PART  = 'prod';     % dbg or prod
-CLUSTER.MEM   = '16GB';     % Memory
-CLUSTER.JNAME = 'test';% Job name
+CLUSTER.NODES = '8';        % MPI process
+CLUSTER.MEM   = '2GB';     % Memory
+CLUSTER.JNAME = 'HeLaZ';% Job name
 USERNAME      = 'ahoffman'; % username at ppb110 for folder naming
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% PHYSICAL PARAMETERS
@@ -91,15 +88,14 @@ fprintf(fid,[...
 '#!/bin/bash\n',...
 '#SBATCH --job-name=',CLUSTER.JNAME,'\n',...
 '#SBATCH --time=', CLUSTER.TIME,'\n',...
-'#SBATCH --nodes=', CLUSTER.NODES,'\n',...
-'#SBATCH --mem=', CLUSTER.MEM,'\n',...
+'#SBATCH -n=', CLUSTER.NODES,'\n',...
+'#SBATCH --mem-per-cpu=', CLUSTER.MEM,'\n',...
 '#SBATCH --error=err.txt\n',...
 '#SBATCH --output=out.txt\n',...
-...% '#SBATCH --job-name=',PARAMS,'\n\n',...
 'module load intel\n',...
 'module load impi\n',...
 'module load hdf5\n',...
-'srun --cpu-bind=cores ./../../../bin/helaz']);
+'srun  ./../../../bin/helaz']);
 
 fclose(fid);
 system(['cp batch_script.sh ',BASIC.RESDIR,'/.']);
-- 
GitLab