Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPC_Imaging
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
Container 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
Claudio Gheller
HPC_Imaging
Commits
477b8f6a
Commit
477b8f6a
authored
3 years ago
by
Claudio Gheller
Browse files
Options
Downloads
Patches
Plain Diff
batch script to run benchmarks on Marconi100@CINECA added
parent
d63dce1e
No related branches found
No related tags found
Loading
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/bench.go
+45
-0
45 additions, 0 deletions
scripts/bench.go
with
45 additions
and
0 deletions
scripts/bench.go
0 → 100644
+
45
−
0
View file @
477b8f6a
#
!/
bin
/
bash
#
SBATCH
-
A
IscrC_TRACRE
#
SBATCH
-
p
m100_usr_prod
###
number
of
nodes
#
SBATCH
-
N
1
###
number
of
hyperthreading
threads
#
SBATCH
--
ntasks
-
per
-
core
=
1
###
number
of
MPI
tasks
per
node
#
SBATCH
--
ntasks
-
per
-
node
=
1
###
number
of
openmp
threads
#
SBATCH
--
cpus
-
per
-
task
=
1
###
number
of
allocated
GPUs
per
node
#
SBATCH
--
gres
=
gpu
:
4
#
SBATCH
--
mem
-
per
-
cpu
=
16000
#
SBATCH
-
t
1
:
00
:
00
export
use_cuda
=
yes
if
[
"$use_cuda"
=
"no"
]
then
export
typestring
=
omp_cpu
export
exe
=
w
-
stackingCfftw
fi
if
[
"$use_cuda"
=
"yes"
]
then
export
typestring
=
cuda
export
exe
=
w
-
stackingfftw
fi
export
logdir
=
mpi_
$
{
SLURM_NTASKS_PER_NODE
}
_
$
{
typestring
}
_
$
{
SLURM_CPUS_PER_TASK
}
echo
"Creating $logdir"
rm
-
fr
$
logdir
mkdir
$
logdir
for
itest
in
{
1..10
}
do
export
logfile
=
test_
$
{
itest
}
_
$
{
logdir
}
.
log
echo
"time mpirun -np $SLURM_NTASKS_PER_NODE /m100/home/userexternal/cgheller/gridding/hpc_imaging/${exe} $SLURM_CPUS_PER_TASK"
>
$
logfile
time
mpirun
-
np
$
SLURM_NTASKS_PER_NODE
/
m100
/
home
/
userexternal
/
cgheller
/
gridding
/
hpc_imaging
/
$
{
exe
}
$
SLURM_CPUS_PER_TASK
>>
$
logfile
mv
$
logfile
$
logdir
mv
timings
.
dat
$
{
logdir
}
/
timings_
$
{
itest
}
.
dat
cat
$
{
logdir
}
/
timings_all
.
dat
$
{
logdir
}
/
timings_
$
{
itest
}
.
dat
>>
$
{
logdir
}
/
timings_all
.
dat
done
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