-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature caliper base modifier (#123)
* Caliper modifier * Caliper modifier * Merge with develop * Removing postprocessing * modifier changes * Update benchpark * Support for topdown and cuda modes in caliper * Update license in modifier.py * Moving modifiers to their own repository * Fix modifier path and filename * Fix caliper spack specs and remove elfutils * Implementation of caliper top-down modifier * Implementation of caliper cuda modifier * Remove caliper-specific references from ramble.yaml * Remove caliper-specific references from amg2023 cuda ramble.yaml * Fix adiak calls * Make separate modifier config file for each caliper modifier * caliper for x86 * Fix benchpark script * caliper cuda modifier for amg2023, saxpy * Use caliper base modifier * Build base mode without papi * Remove external papi package * fixing lint style * Remove topdown and cuda modifiers * Add modifier option to benchpark setup script, define caliper config once * Remove cuda caliper modifier from amg2023 and saxpy * Add base caliper modifier for amg2023(cuda,rocm) and saxpy(cuda,rocm) * lint * lint * Replace caliper.yaml with modifier.yaml * Add empty default modifier * Remove star import * relax flake8 for modifier functionality ignores F403 and F405 in modifier.py 'from module import *' used; unable to detect undefined names (F403) Name may be undefined, or defined from star imports: module (F405) * Remove zero-modifier * Add FOM in AMG2023 --------- Co-authored-by: pearce8 <[email protected]> Co-authored-by: Riyaz Haque <[email protected]> Co-authored-by: Stephanie Brink <[email protected]>
- Loading branch information
1 parent
08dc54e
commit 024b75e
Showing
15 changed files
with
127 additions
and
14 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
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
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 |
---|---|---|
|
@@ -28,6 +28,11 @@ packages: | |
- spec: [email protected] | ||
prefix: /usr/tce/backend/installations/linux-rhel8-x86_64/intel-19.0.4/intel-oneapi-mkl-2022.1.0-sksz67twjxftvwchnagedk36gf7plkrp | ||
buildable: false | ||
python: | ||
externals: | ||
- spec: [email protected] | ||
prefix: /usr/tce/packages/python/python-3.9.12/ | ||
buildable: false | ||
hwloc: | ||
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 |
---|---|---|
|
@@ -65,6 +65,11 @@ packages: | |
- spec: [email protected] | ||
prefix: /usr/tcetmp/packages/lapack/lapack-3.9.0-xl-2020.03.18 | ||
buildable: false | ||
python: | ||
externals: | ||
- spec: [email protected] | ||
prefix: /usr/tce/packages/python/python-3.8.2 | ||
buildable: false | ||
mpi: | ||
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,11 +4,17 @@ | |
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
ramble: | ||
include: | ||
- ./configs/spack.yaml | ||
- ./configs/variables.yaml | ||
- ./configs/modifier.yaml | ||
|
||
config: | ||
deprecated: true | ||
spack_flags: | ||
install: '--add --keep-stage' | ||
concretize: '-U -f' | ||
|
||
applications: | ||
amg2023: | ||
workloads: | ||
|
@@ -43,10 +49,10 @@ ramble: | |
concretized: true | ||
packages: | ||
hypre: | ||
spack_spec: [email protected] +mpi+cuda+mixedint cuda_arch=={cuda_arch} ^cuda@{default_cuda_version} | ||
spack_spec: [email protected] +mpi+cuda+mixedint{modifier_spack_variant} cuda_arch=={cuda_arch} ^cuda@{default_cuda_version} | ||
compiler: default-compiler | ||
amg2023: | ||
spack_spec: amg2023@develop +mpi+cuda cuda_arch=={cuda_arch} ^cuda@{default_cuda_version} | ||
spack_spec: amg2023@develop +mpi+cuda{modifier_spack_variant} cuda_arch=={cuda_arch} ^cuda@{default_cuda_version} | ||
compiler: default-compiler | ||
environments: | ||
amg2023: | ||
|
@@ -56,3 +62,4 @@ ramble: | |
- default-mpi | ||
- hypre | ||
- amg2023 | ||
- '{modifier_package_name}' |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ ramble: | |
include: | ||
- ./configs/spack.yaml | ||
- ./configs/variables.yaml | ||
- ./configs/modifier.yaml | ||
|
||
config: | ||
deprecated: true | ||
|
@@ -33,24 +34,24 @@ ramble: | |
nz: '{n}' | ||
processes_per_node: ['8', '4'] | ||
n_nodes: ['1', '2'] | ||
threads_per_node_core: ['4', '6', '12'] #TODO: Specify n_threads according to available n_nodes and n_ranks | ||
threads_per_node_core: ['4', '6', '12'] | ||
omp_num_threads: '{threads_per_node_core} * {n_nodes}' | ||
experiments: | ||
amg2023_omp_problem1_{n_nodes}_{omp_num_threads}_{px}_{py}_{pz}_{nx}_{ny}_{nz}: | ||
variables: | ||
env_name: amg2023-omp | ||
matrices: | ||
- size_threads: | ||
- n # TODO: Filter matrix | ||
- threads_per_node_core # TODO: Filter matrix | ||
- n | ||
- threads_per_node_core | ||
spack: | ||
concretized: true | ||
packages: | ||
hypre-omp: | ||
spack_spec: [email protected] +mpi+openmp+mixedint | ||
spack_spec: [email protected] +mpi+openmp+mixedint{modifier_spack_variant} | ||
compiler: default-compiler | ||
amg2023-omp: | ||
spack_spec: amg2023@develop +mpi+openmp | ||
spack_spec: amg2023@develop +mpi+openmp{modifier_spack_variant} | ||
compiler: default-compiler | ||
environments: | ||
amg2023-omp: | ||
|
@@ -59,3 +60,4 @@ ramble: | |
- default-mpi | ||
- hypre-omp | ||
- amg2023-omp | ||
- '{modifier_package_name}' |
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,11 +4,17 @@ | |
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
ramble: | ||
include: | ||
- ./configs/spack.yaml | ||
- ./configs/variables.yaml | ||
- ./configs/modifier.yaml | ||
|
||
config: | ||
deprecated: true | ||
spack_flags: | ||
install: '--add --keep-stage' | ||
concretize: '-U -f' | ||
|
||
applications: | ||
amg2023: | ||
workloads: | ||
|
@@ -40,10 +46,10 @@ ramble: | |
gtl: ["gtl", "no-gtl"] | ||
packages: | ||
hypre-{gtl}: | ||
spack_spec: [email protected] +mpi+rocm+mixedint amdgpu_target={rocm_arch} | ||
spack_spec: [email protected] +mpi+rocm+mixedint{modifier_spack_variant} amdgpu_target={rocm_arch} | ||
compiler: compiler-rocm | ||
amg2023-gpu-{gtl}: | ||
spack_spec: amg2023@develop +mpi+rocm amdgpu_target={rocm_arch} | ||
spack_spec: amg2023@develop +mpi+rocm{modifier_spack_variant} amdgpu_target={rocm_arch} | ||
compiler: compiler-rocm | ||
environments: | ||
amg2023-gpu-{gtl}: | ||
|
@@ -53,3 +59,4 @@ ramble: | |
- mpi-rocm-{gtl} | ||
- hypre-{gtl} | ||
- amg2023-gpu-{gtl} | ||
- '{modifier_package_name}' |
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,11 +4,17 @@ | |
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
ramble: | ||
include: | ||
- ./configs/spack.yaml | ||
- ./configs/variables.yaml | ||
- ./configs/modifier.yaml | ||
|
||
config: | ||
deprecated: true | ||
spack_flags: | ||
install: '--add --keep-stage' | ||
concretize: '-U -f' | ||
|
||
applications: | ||
saxpy: | ||
workloads: | ||
|
@@ -27,10 +33,11 @@ ramble: | |
concretized: true | ||
packages: | ||
saxpy: | ||
spack_spec: [email protected] +cuda cuda_arch=={cuda_arch} ^cuda@{default_cuda_version} | ||
spack_spec: [email protected] +cuda{modifier_spack_variant} cuda_arch=={cuda_arch} ^cuda@{default_cuda_version} | ||
compiler: default-compiler | ||
environments: | ||
saxpy: | ||
packages: | ||
- default-mpi | ||
- saxpy | ||
- '{modifier_package_name}' |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ ramble: | |
include: | ||
- ./configs/spack.yaml | ||
- ./configs/variables.yaml | ||
- ./configs/modifier.yaml | ||
|
||
config: | ||
deprecated: true | ||
|
@@ -39,10 +40,11 @@ ramble: | |
concretized: true | ||
packages: | ||
saxpy: | ||
spack_spec: [email protected] +openmp ^[email protected] | ||
spack_spec: [email protected] +openmp{modifier_spack_variant} ^[email protected] | ||
compiler: default-compiler | ||
environments: | ||
saxpy: | ||
packages: | ||
- default-mpi | ||
- saxpy | ||
- '{modifier_package_name}' |
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 |
---|---|---|
|
@@ -7,12 +7,14 @@ ramble: | |
include: | ||
- ./configs/spack.yaml | ||
- ./configs/variables.yaml | ||
- ./configs/modifier.yaml | ||
|
||
config: | ||
deprecated: true | ||
spack_flags: | ||
install: '--add --keep-stage' | ||
concretize: '-U -f' | ||
|
||
applications: | ||
saxpy: | ||
workloads: | ||
|
@@ -31,10 +33,11 @@ ramble: | |
concretized: true | ||
packages: | ||
saxpy: | ||
spack_spec: [email protected] +rocm amdgpu_target={rocm_arch} | ||
spack_spec: [email protected] +rocm{modifier_spack_variant} amdgpu_target={rocm_arch} | ||
compiler: default-compiler | ||
environments: | ||
saxpy: | ||
packages: | ||
- default-mpi | ||
- saxpy | ||
- '{modifier_package_name}' |
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,17 @@ | ||
# 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' | ||
modifier_spack_variant: '+caliper' | ||
|
||
modifiers: | ||
- name: caliper | ||
mode: time | ||
|
||
spack: | ||
packages: | ||
caliper: | ||
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,33 @@ | ||
# 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 * | ||
|
||
|
||
class Caliper(SpackModifier): | ||
"""Define a modifier for Caliper""" | ||
|
||
name = "caliper" | ||
|
||
tags("profiler", "performance-analysis") | ||
|
||
maintainers("pearce8") | ||
|
||
mode("time", description="Platform-independent collection of time") | ||
|
||
_cali_datafile = "{experiment_run_dir}/{experiment_name}.cali" | ||
|
||
env_var_modification( | ||
"CALI_CONFIG", | ||
"spot(output={})".format(_cali_datafile), | ||
method="set", | ||
modes=["time"], | ||
) | ||
|
||
archive_pattern(_cali_datafile) | ||
|
||
software_spec("caliper", spack_spec="caliper") | ||
|
||
required_package("caliper") |
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,3 @@ | ||
repo: | ||
namespace: benchpark | ||
subdirectory: '' |
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,8 @@ | ||
# 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: '' | ||
modifier_spack_variant: '' |
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