-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of top-down modifier Co-authored-by: Riyaz Haque <[email protected]> Co-authored-by: pearce8 <[email protected]>
- Loading branch information
1 parent
e94f380
commit ee63482
Showing
4 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
packages: | ||
papi: | ||
externals: | ||
- spec: [email protected] | ||
prefix: /usr/tce/packages/papi/papi-6.0.0.1 | ||
buildable: false | ||
tar: | ||
externals: | ||
- spec: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
packages: | ||
papi: | ||
externals: | ||
- spec: [email protected] | ||
prefix: /usr/tce/packages/papi/papi-6.0.0.1 | ||
buildable: false | ||
tar: | ||
externals: | ||
- spec: [email protected] | ||
|
@@ -27,6 +32,11 @@ packages: | |
externals: | ||
- spec: [email protected] | ||
prefix: /usr | ||
python: | ||
externals: | ||
- spec: [email protected] | ||
prefix: /usr/tce/packages/python/python-3.9.12/ | ||
buildable: false | ||
mpi: | ||
buildable: false | ||
mvapich2: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2023 Lawrence Livermore National Security, LLC and other | ||
# Benchpark Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
variables: | ||
modifier_package_name: 'caliper-topdown' | ||
modifier_spack_variant: '+caliper' | ||
|
||
modifiers: | ||
- name: caliper-topdown | ||
mode: topdown-all | ||
|
||
spack: | ||
packages: | ||
caliper-topdown: | ||
spack_spec: caliper+adiak+mpi~libunwind~libdw+papi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright 2023 Lawrence Livermore National Security, LLC and other | ||
# Benchpark Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from ramble.modkit import * | ||
from ramble.mod.benchpark.caliper import Caliper as CaliperBase | ||
|
||
|
||
class CaliperTopdown(CaliperBase): | ||
"""Define a modifier for Caliper""" | ||
|
||
name = "caliper-topdown" | ||
|
||
mode( | ||
"topdown-counters-all", | ||
description="Raw counter values for Intel top-down analysis (all levels)", | ||
) | ||
mode( | ||
"topdown-counters-toplevel", | ||
description="Raw counter values for Intel top-down analysis (top level)", | ||
) | ||
mode( | ||
"topdown-all", | ||
description="Top-down analysis for Intel CPUs (all levels)", | ||
) | ||
mode( | ||
"topdown-toplevel", | ||
description="Top-down analysis for Intel CPUs (top level)", | ||
) | ||
|
||
_cali_datafile = CaliperBase._cali_datafile | ||
|
||
env_var_modification( | ||
"CALI_CONFIG", | ||
"spot(output={}, topdown-counters.all)".format(_cali_datafile), | ||
method="set", | ||
modes=["topdown-counters-all"], | ||
) | ||
env_var_modification( | ||
"CALI_CONFIG", | ||
"spot(output={}, topdown-counters.toplevel)".format(_cali_datafile), | ||
method="set", | ||
modes=["topdown-counters-toplevel"], | ||
) | ||
env_var_modification( | ||
"CALI_CONFIG", | ||
"spot(output={}, topdown.all)".format(_cali_datafile), | ||
method="set", | ||
modes=["topdown-all"], | ||
) | ||
env_var_modification( | ||
"CALI_CONFIG", | ||
"spot(output={}, topdown.toplevel)".format(_cali_datafile), | ||
method="set", | ||
modes=["topdown-toplevel"], | ||
) |