Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gyacomo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Cyril David Hoffmann
Gyacomo
Commits
83d1bb82
Commit
83d1bb82
authored
4 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
for Marconi protability
parent
15a591af
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
local/dirs.inc
+2
-6
2 additions, 6 deletions
local/dirs.inc
matlab/write_sbash.m
+49
-0
49 additions, 0 deletions
matlab/write_sbash.m
with
51 additions
and
6 deletions
local/dirs.inc
+
2
−
6
View file @
83d1bb82
#Local code, binaries, pputils library
#Local code, binaries, pputils library
PREFIX
=
$
(
HOME
)
/
HeLaZ
#write the path to the root of your HeLaZ distrib here
PREFIX
=
$
(
HOME
)
/
HeLaZ
SRCDIR
=
$
(
PREFIX
)
/
src
SRCDIR
=
$
(
PREFIX
)
/
src
BINDIR
=
$
(
PREFIX
)
/
bin
BINDIR
=
$
(
PREFIX
)
/
bin
OBJDIR
=
$
(
PREFIX
)
/
obj
OBJDIR
=
$
(
PREFIX
)
/
obj
LIBDIR
=
$
(
PREFIX
)
/
lib
LIBDIR
=
$
(
PREFIX
)
/
lib
MODDIR
=
$
(
PREFIX
)
/
mod
MODDIR
=
$
(
PREFIX
)
/
mod
#FMDIR = $(PREFIX)/FM
#FFTW3DIR = /home/ahoffman/lib/fftw-3.3.8
#FUTILS_DIR = /home/ahoffman/local/spcpc/intel
FMDIR
=
$
(
HOME
)
/
lib
/
FM
FMDIR
=
$
(
HOME
)
/
lib
/
FM
FFTW3DIR
=
$
(
HOME
)
/
lib
/
fftw
-
3.3.8
FFTW3DIR
=
$
(
HOME
)
/
lib
/
fftw
-
3.3.8
FUTILS_DIR
=
$
(
HOME
)
/
lib
/
futils
FUTILS_DIR
=
$
(
HOME
)
/
lib
/
futils
/
src
# Naming ideas : HeLaZ, MoNoLiT (Moment Non Linear Torroidal)
# Naming ideas : HeLaZ, MoNoLiT (Moment Non Linear Torroidal)
This diff is collapsed.
Click to expand it.
matlab/write_sbash.m
0 → 100644
+
49
−
0
View file @
83d1bb82
% Write the input script "fort.90" with desired parameters
INPUT
=
'setup_and_run.sh'
;
fid
=
fopen
(
INPUT
,
'wt'
);
fprintf
(
fid
,[
...
'#!/bin/bash\n'
,
...
'mkdir -p $CINECA_SCRATCH/HeLaZ/wk\n'
,
...
'mkdir -p $CINECA_SCRATCH/HeLaZ/bin\n\n'
,
...
...
'cd $CINECA_SCRATCH/HeLaZ/wk/\n'
,
...
'cp $HOME/HeLaZ/wk/fort.90 .\n'
,
...
'cp $HOME/HeLaZ/wk/batch_script.sh .\n'
,
...
...
%'cp $HOME/HeLaZ/bin/helaz ../bin\n\n',...
'cp -r $HOME/HeLaZ/iCa ..\n\n'
,
...
...
'mkdir -p '
,
BASIC
.
RESDIR
,
'\n'
,
...
...
'sbatch batch_script.sh\n'
,
...
'echo $CINECA_SCRATCH/HeLaZ/results/'
,
BASIC
.
SIMID
,
'/'
,
BASIC
.
PARAMS
,
'/out.txt'
]);
fclose
(
fid
);
system
([
'cp setup_and_run.sh '
,
BASIC
.
RESDIR
,
'/.'
]);
% Write the sbatch script
INPUT
=
'batch_script.sh'
;
fid
=
fopen
(
INPUT
,
'wt'
);
fprintf
(
fid
,[
...
'#!/bin/bash\n'
,
...
'#SBATCH --time='
,
CLUSTER
.
TIME
,
'\n'
,
...
'#SBATCH --nodes='
,
CLUSTER
.
NODES
,
'\n'
,
...
'#SBATCH --cpus-per-task='
,
CLUSTER
.
CPUPT
,
'\n'
,
...
'#SBATCH --ntasks-per-node='
,
CLUSTER
.
NTPN
,
'\n'
,
...
'#SBATCH --mem='
,
CLUSTER
.
MEM
,
'\n'
,
...
'#SBATCH --error='
,
BASIC
.
RESDIR
,
'err.txt\n'
,
...
'#SBATCH --output='
,
BASIC
.
RESDIR
,
'out.txt\n'
,
...
'#SBATCH --account=FUA34_GBSedge\n'
,
...
'#SBATCH --partition=skl_fua_'
,
CLUSTER
.
PART
,
'\n\n'
,
...
...
% '#SBATCH --job-name=',PARAMS,'\n\n',...
'module load intel\n'
,
...
'module load intelmpi\n'
,
...
'module load autoload hdf5/1.10.4--intelmpi--2018--binary\n'
,
...
'module load fftw\n'
,
...
'srun --cpu-bind=cores ./../bin/helaz'
]);
fclose
(
fid
);
system
([
'cp batch_script.sh '
,
BASIC
.
RESDIR
,
'/.'
]);
system
(
'scp {fort.90,setup_and_run.sh,batch_script.sh} ahoffman@login.marconi.cineca.it:/marconi/home/userexternal/ahoffman/HeLaZ/wk'
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment