From 79defc3dbd4eff7afe71834d465c56869d08f30f Mon Sep 17 00:00:00 2001 From: Antoine Cyril David Hoffmann <ahoffman@ws0.epfl.ch> Date: Tue, 23 Feb 2021 09:10:06 +0100 Subject: [PATCH] adapt ppb110 script --- wk/ppb110_run.m | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/wk/ppb110_run.m b/wk/ppb110_run.m index 170e11e8..a241120d 100644 --- a/wk/ppb110_run.m +++ b/wk/ppb110_run.m @@ -5,7 +5,9 @@ addpath(genpath('../matlab')) % ... add %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% CLUSTER PARAMETERS CLUSTER.TIME = '01:00:00'; % allocation time hh:mm:ss -CLUSTER.NODES = '8'; % MPI process +CLUSTER.NODES = '1'; % MPI process +CLUSTER.CPUPT = '1'; % CPU per task +CLUSTER.NTPN = '4'; % N tasks per node CLUSTER.MEM = '2000'; % Memory CLUSTER.JNAME = 'test_HeLaZ'; % Job name USERNAME = 'ahoffman'; % username at ppb110 for folder naming @@ -25,13 +27,13 @@ MU_J = 0; % Laguerre hyperdiffusivity -mu_j*(d/dvperp)^4 f TMAX = 150; % Maximal time unit DT = 2e-2; % Time step SPS0D = 1; % Sampling per time unit for profiler -SPS2D = 1/2; % Sampling per time unit for 2D arrays +SPS2D = 1/10; % Sampling per time unit for 2D arrays SPS5D = 1/10; % Sampling per time unit for 5D arrays -SPSCP = 1/10; % Sampling per time unit for checkpoints +SPSCP = 0; % Sampling per time unit for checkpoints RESTART = 0; % To restart from last checkpoint JOB2LOAD= 0; %% OPTIONS -SIMID = 'test'; % Name of the simulation +SIMID = 'test_low_sampling'; % Name of the simulation SIMID = sprintf(SIMID,NU); CO = -3; % Collision operator (0 : L.Bernstein, -1 : Full Coulomb, -2 : Dougherty, -3 : GK Dougherty) CLOS = 0; % Closure model (0: =0 truncation, 1: semi coll, 2: Copy closure J+1 = J, P+2 = P) @@ -88,11 +90,14 @@ fprintf(fid,[... '#!/bin/bash\n',... '#SBATCH --job-name=',CLUSTER.JNAME,'\n',... '#SBATCH --time=', CLUSTER.TIME,'\n',... -'#SBATCH -n ', CLUSTER.NODES,'\n',... +'#SBATCH --nodes=', CLUSTER.NODES,'\n',... +'#SBATCH --cpus-per-task=', CLUSTER.CPUPT,'\n',... +'#SBATCH --ntasks-per-node=', CLUSTER.NTPN,'\n',... '#SBATCH --mem-per-cpu=', CLUSTER.MEM,'\n',... '#SBATCH --error=err.txt\n',... '#SBATCH --output=out.txt\n',... -'module load intel_comp/17.0 impi/17.0 hdf5/1.8.12_intel13.1\n',... +'module purge\n',... +'module load PrgEnv-intel/17.0\n',... 'srun ./../../../bin/helaz']); fclose(fid); -- GitLab