Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
swift-cs-performance-workshop-2021
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
Container registry
Model registry
Operate
Environments
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
Jonathan Frawley
swift-cs-performance-workshop-2021
Commits
64cd6ed4
Commit
64cd6ed4
authored
4 years ago
by
Mark Turner
Browse files
Options
Downloads
Patches
Plain Diff
benchmark-slow for cosma
parent
b7bb80d4
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
src/common.py
+40
-0
40 additions, 0 deletions
src/common.py
src/pmill-768.py
+36
-33
36 additions, 33 deletions
src/pmill-768.py
with
76 additions
and
33 deletions
src/common.py
0 → 100644
+
40
−
0
View file @
64cd6ed4
import
reframe
as
rfm
import
reframe.utility.sanity
as
sn
GIT_REV
=
'
0bb2f777a298531d5c60214314a2b2679df1fc6a
'
def
setup
(
test
,
num_tasks
,
num_tasks_per_node
=
1
):
test
.
time_limit
=
'
2d
'
test
.
num_tasks
=
num_tasks
test
.
num_tasks_per_node
=
num_tasks_per_node
test
.
valid_prog_environs
=
[
'
*
'
]
test
.
valid_systems
=
[
'
cosma7:cpu_single_node
'
,
# 'cosma7:cpu_multi_node',
'
dine:cpu_single_node
'
]
test
.
build_system
=
'
Autotools
'
test
.
sourcesdir
=
None
test
.
prebuild_cmds
=
[
'
rm -rf swiftsim
'
,
'
git clone git@gitlab:swift/swiftsim.git
'
,
'
pushd swiftsim
'
,
f
'
git checkout
{
GIT_REV
}
'
,
'
git clean -x -f -d
'
,
'
./autogen.sh
'
]
test
.
sourcepath
=
'
./
'
test
.
build_system
.
max_concurrency
=
32
test
.
sanity_patterns
=
sn
.
assert_found
(
r
'
main: done. Bye.
'
,
test
.
stdout
)
ic_dir
=
None
if
rfm
.
utility
.
osext
.
osuser
()
==
'
dc-turn5
'
and
\
test
.
current_system
.
name
==
'
cosma7
'
:
ic_dir
=
'
/cosma7/data/ds007/dc-turn5/swift_initial_conditions
'
elif
test
.
current_system
.
name
==
'
cosma7
'
:
ic_dir
=
'
/cosma5/data/do008/dc-fraw1/swift_initial_conditions
'
else
:
raise
ValueError
(
f
'
Need to handle
{
test
.
current_system
.
name
}
for
{
rfm
.
utility
.
osext
.
osuser
()
}
'
)
return
ic_dir
This diff is collapsed.
Click to expand it.
src/pmill-768.py
+
36
−
33
View file @
64cd6ed4
import
reframe
as
rfm
import
reframe.
utility.sanity
as
sn
import
reframe.
core.launchers.mpi
import
common
#GIT_REV = 'master'
GIT_REV
=
'
0bb2f777a298531d5c60214314a2b2679df1fc6a
'
@rfm.simple_test
@rfm.parameterized_test
(
*
([
tasks
,
threads
,
iteration
,
executable
]
for
tasks
in
[
8
]
for
threads
in
list
(
reversed
([
64
]))
for
iteration
in
[
1
]
for
executable
in
[
'
mpirun
'
,
'
perf-report
'
]))
class
PMillenniumTest
(
rfm
.
RegressionTest
):
def
__init__
(
self
):
self
.
valid_systems
=
[
'
cosma7:cpu_single_node
'
,
'
cosma7:cpu_multi_node
'
,
'
dine:cpu_single_node
'
]
self
.
valid_prog_environs
=
[
'
*
'
]
self
.
num_tasks
=
1
self
.
build_system
=
'
Autotools
'
self
.
sourcesdir
=
None
# Added
self
.
prebuild_cmds
=
[
'
rm -rf swiftsim
'
,
#'git clone https://gitlab.cosma.dur.ac.uk/swift/swiftsim.git',
'
git clone git@gitlab:swift/swiftsim.git
'
,
'
pushd swiftsim
'
,
f
'
git checkout
{
GIT_REV
}
'
,
'
git clean -x -f -d
'
,
'
./autogen.sh
'
,
'
cd ./
'
]
self
.
build_system
.
max_concurrency
=
32
def
__init__
(
self
,
num_tasks
,
num_threads
,
iteration
,
executable
):
ic_dir
=
common
.
setup
(
self
,
num_tasks
,
num_tasks_per_node
=
num_tasks
)
if
num_threads
==
64
:
self
.
time_limit
=
'
40m
'
else
:
self
.
time_limit
=
'
2h
'
test_dir
=
'
swiftsim/examples/PMillennium/PMillennium-768
'
num_threads
=
num_threads
//
num_tasks
# self.cpus_per_task = num_threads #? may still be needed
print
(
f
'
Running with threads : <
{
num_threads
}
>
'
)
self
.
keep_files
=
[
test_dir
]
self
.
build_system
.
config_opts
=
[
'
--enable-ipo
'
,
'
--with-tbbmalloc
'
,
'
--with-parmetis
'
]
test_dir
=
'
swiftsim/examples/PMillennium/PMillennium-768
'
self
.
keep_files
=
[
test_dir
]
self
.
prerun_cmds
=
[
f
'
pushd
{
test_dir
}
'
]
self
.
executable
=
'
mpirun
'
#self.executable = 'aps' #temp copied out
num_iterations
=
1
num_threads
=
64
#ic_dir = '/cosma/home/durham/dc-turn5/swiftsim/examples'
ic_dir
=
'
/cosma5/data/do008/dc-fraw1/swift_initial_conditions/pmillenium
'
self
.
executable_opts
=
[
'
aps
'
,
'
--collection-mode=mpi,omp
'
,
self
.
executable
=
executable
if
executable
==
'
mpirun
'
:
self
.
executable_opts
=
[
'
aps
'
,
'
--collection-mode=mpi,omp
'
]
elif
executable
==
'
perf-report
'
:
self
.
executable_opts
=
[
'
--mpi=intel-mpi
'
]
self
.
time_limit
=
'
2h40m
'
self
.
executable_opts
+=
[
'
../../swift_mpi
'
,
'
--cosmology
'
,
'
--self-gravity
'
,
...
...
@@ -53,3 +51,8 @@ class PMillenniumTest(rfm.RegressionTest):
f
'
-PInitialConditions:file_name:
{
ic_dir
}
/pmillenium/PMill-768.hdf5
'
,
'
p-mill-768.yml
'
]
#@rfm.run_before('run')
#def set_memory_limit(self):
# self.job.options += [f'--cpus-per-task={self.cpus_per_task}']
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