Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab-profile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hotwheels
gitlab-profile
Commits
1addab87
Commit
1addab87
authored
3 months ago
by
Antonio Ragagnin
Browse files
Options
Downloads
Patches
Plain Diff
jobfile for leonardo booster
parent
ca4941ec
No related branches found
No related tags found
No related merge requests found
Pipeline
#25541
passed
3 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
leonardo_booster.sh
+50
-0
50 additions, 0 deletions
leonardo_booster.sh
with
50 additions
and
0 deletions
leonardo_booster.sh
0 → 100644
+
50
−
0
View file @
1addab87
#!/bin/bash
#SBATCH --nodes 1
#SBATCH --ntasks-per-node 1
#SBATCH --cpus-per-task 32
#SBATCH --gres=gpu:1
#SBATCH --partition=boost_usr_prod
set
-xev
#exit on error
export
DEBUG
=
1
PPL
=(
1 64
)
#vary particle per leaf
THREADS
=(
1 2 4 8 16 32 64 128
)
#vary branching (thread) count
MODE
=(
cpu gpu
)
#vary gpu/cpu switch
#N=(1000 10000 100000 1000000 10000000)
N
=(
50000000
)
#scaling will use 5e7 particles
#
# run tree build tests on GPU
#
CC
=
'nvc++'
HW_FLAGS
=
'-mp=gpu -gpu=rdc,managed -gpu=cc80 -Minfo=mp,accel -Minline=1000 -O3 -DTARGET=1 -DOPENMP_RECURSION_TRICK -DOPENMP_TARGET_HILBERTCOPY'
srun
-n
1 python
-m
hotwheels_core.wrap hotwheels_octree/test_target.cpp
rm
-f
report.csv
#
# loop over tree build configurations PPL, THREADS, MODE, N
#
for
ppl
in
"
${
PPL
[@]
}
"
;
do
for
n
in
"
${
N
[@]
}
"
;
do
for
mode
in
"
${
MODE
[@]
}
"
;
do
for
threads
in
"
${
THREADS
[@]
}
"
;
do
if
[[
"
$mode
"
==
"cpu"
]]
;
then
export
CC
=
gcc
export
HW_FLAGS
=
'-O3 -fopenmp'
export
OMP_NUM_THREADS
=
$threads
else
if
[[
$threads
-lt
16
]]
;
then
continue
fi
export
CC
=
nvc++
export
HW_FLAGS
=
'-mp=gpu -gpu=rdc,managed -gpu=cc80 -Minfo=mp,accel -Minline=1000 -O3'
export
OMP_NUM_THREADS
=
4
fi
# rnu the test
srun
-n
1 python hotwheels_octree/testgpu.py
-ppl
$ppl
-n
$n
-mode
$mode
-threads
$threads
1>run.out 2>run.err
t
=
$(
grep time
: run.out |
sed
s/time://
)
echo
$ppl
,
$n
,
$mode
,
$threads
,
$t
>>
report.csv
# store the report
done
done
done
done
\ No newline at end of file
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