Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HPC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexandru Dura
HPC
Commits
389b727e
Commit
389b727e
authored
Apr 17, 2020
by
Kurs Kurs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the submission scripts
parent
44d0b09f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
1 deletion
+38
-1
project/src/diffusion.in
project/src/diffusion.in
+1
-1
project/src/submit-all.sh
project/src/submit-all.sh
+19
-0
project/src/submit.sh
project/src/submit.sh
+18
-0
No files found.
project/src/diffusion.in
View file @
389b727e
64
8
0
64
00 8000
0
0.4 -0.4
1000
project/src/submit-all.sh
0 → 100755
View file @
389b727e
#!/bin/bash
NODES
=
"1 2 4 8"
OMP_THREADS
=
"1 2 4 10 20"
THREADS_PER_NODE
=
20
for
n
in
$NODES
do
for
t
in
$OMP_THREADS
do
TASKS_PER_NODE
=
$((
$THREADS_PER_NODE
/
$t
))
CPUS_PER_TASK
=
$t
echo
$n
$t
$TASKS_PER_NODE
sbatch
-N
$n
\
--tasks-per-node
=
$TASKS_PER_NODE
\
--cpus-per-task
=
$CPUS_PER_TASK
\
./submit.sh
done
done
project/src/submit.sh
0 → 100644
View file @
389b727e
#!/bin/bash
#SBATCH -t 00:05:00
#SBATCH -J diffusion
#SBATCH -o diffusion_mpi_%j.out
#SBATCH -e diffusion_mpi_%j.err
#SBATCH -A computehpc
cat
$0
module purge
module load foss/2019b
OUTPUT_FILE
=
"results.csv"
# OpenMP setup
export
OMP_NUM_THREADS
=
$SLURM_CPUS_PER_TASK
export
OMP_PROC_BIND
=
TRUE
mpiexec
--map-by
ppr:
$SLURM_NTASKS_PER_NODE
:node:PE
=
$SLURM_CPUS_PER_TASK
./diffusion |
tee
-a
$OUTPUT_FILE
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment