Skip to content

Commit

Permalink
Merge branch 'develop' into stream-consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
pearce8 authored May 3, 2024
2 parents 9705d94 + 7a4f6b6 commit e0e80f7
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 19 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
filters: |
docs:
- '.github/**'
- 'bin/**'
- 'docs/**'
- 'README.rst'
style:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/requirements/style.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black==24.4.0
black==24.4.2
flake8==7.0.0
isort==5.13.2
codespell==2.2.6
20 changes: 9 additions & 11 deletions bin/benchpark
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ Further steps are needed to build the experiments (ramble -P -D {ramble_workspac
print(instructions)


def helper_experiments_tags(ramble_exe, experiments):
def helper_experiments_tags(ramble_exe, benchmarks):
# find all tags in Ramble applications (both in Ramble built-in and in Benchpark/repo)
(tags_stdout, tags_stderr) = run_command(f"{ramble_exe} attributes --tags --all")
ramble_applications_tags = {}
Expand All @@ -494,20 +494,20 @@ def helper_experiments_tags(ramble_exe, experiments):
ramble_applications_tags[key_value[0]] = key_value[1].strip().split(",")

benchpark_experiments_tags = {}
for exp in experiments:
benchpark_experiments_tags[exp] = ramble_applications_tags[exp]
for benchmark in benchmarks:
benchpark_experiments_tags[benchmark] = ramble_applications_tags[benchmark]
return benchpark_experiments_tags


def benchpark_tags_handler(args):
"""
Filter ramble tags by benchpark experiments
Filter ramble tags by benchpark benchmarks
"""
source_dir = source_location()
experiments_root = pathlib.Path(os.path.abspath(args.experiments_root))
ramble_location = experiments_root / "ramble"
ramble_exe = ramble_location / "bin" / "ramble"
experiments = benchpark_experiments()
benchmarks = benchpark_benchmarks()

if args.tag:
if benchpark_check_tag(args.tag):
Expand All @@ -516,17 +516,15 @@ def benchpark_tags_handler(args):
lines = tag_stdout.splitlines()

for line in lines:
if line in experiments:
if line in benchmarks:
print(line)

elif args.application:
if benchpark_check_experiment(args.application):
benchpark_experiments_tags = helper_experiments_tags(
ramble_exe, experiments
)
if benchpark_check_benchmark(args.application):
benchpark_experiments_tags = helper_experiments_tags(ramble_exe, benchmarks)
print(benchpark_experiments_tags[args.application])
else:
benchpark_experiments_tags = helper_experiments_tags(ramble_exe, experiments)
benchpark_experiments_tags = helper_experiments_tags(ramble_exe, benchmarks)
print("All tags that exist in Benchpark experiments:")
for k, v in benchpark_experiments_tags.items():
print(k)
Expand Down
2 changes: 1 addition & 1 deletion checkout-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

versions:
ramble: bb664f142b2cbdb2b2ea39e70a8535c9f27c1179
spack: 31de670bd26beca979ebd75dcb0ce90c535a78c4
spack: c2eef8bab26adb00b250992e29d697b4706356a0
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ packages:
prefix: /usr
- spec: [email protected]
prefix: /usr/tce
- spec: [email protected]
prefix: /usr/tce
buildable: false
pkgconf:
externals:
- spec: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion docs/generate-benchmark-list.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def main(workspace):
for bmark in benchmarks:
# call benchpark tags -a bmark workspace
cmd = ["../bin/benchpark", "tags", "-a", bmark, workspace]
byte_data = subprocess.run(cmd, capture_output=True)
byte_data = subprocess.run(cmd, capture_output=True, check=True)
tags = str(byte_data.stdout, "utf-8")
tags = (
tags.replace("[", "")
Expand Down
2 changes: 1 addition & 1 deletion experiments/raja-perf/mpi-only/ramble.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ramble:
spack_spec: '[email protected]:'
compiler: compiler-gcc
raja-perf:
spack_spec: raja-perf@develop ~openmp +mpi ^[email protected]
spack_spec: raja-perf@develop ~openmp +mpi
compiler: default-compiler
environments:
raja-perf:
Expand Down
2 changes: 1 addition & 1 deletion experiments/raja-perf/openmp/ramble.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ramble:
concretized: true
packages:
raja-perf:
spack_spec: raja-perf@develop +openmp +mpi ^[email protected]
spack_spec: raja-perf@develop +openmp +mpi
compiler: default-compiler
environments:
raja-perf:
Expand Down
2 changes: 1 addition & 1 deletion experiments/saxpy/cuda/ramble.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ramble:
concretized: true
packages:
saxpy:
spack_spec: [email protected] +cuda{modifier_spack_variant} cuda_arch=={cuda_arch} ^cuda@{default_cuda_version}
spack_spec: [email protected] +cuda{modifier_spack_variant} cuda_arch=={cuda_arch} ~openmp ^cuda@{default_cuda_version}
compiler: default-compiler
environments:
saxpy:
Expand Down
2 changes: 1 addition & 1 deletion experiments/saxpy/openmp/ramble.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ramble:
concretized: true
packages:
saxpy:
spack_spec: [email protected] +openmp{modifier_spack_variant} ^[email protected]
spack_spec: [email protected] +openmp{modifier_spack_variant}
compiler: default-compiler
environments:
saxpy:
Expand Down
2 changes: 1 addition & 1 deletion experiments/saxpy/rocm/ramble.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ramble:
concretized: true
packages:
saxpy:
spack_spec: [email protected] +rocm{modifier_spack_variant} amdgpu_target={rocm_arch}
spack_spec: [email protected] +rocm{modifier_spack_variant} ~openmp amdgpu_target={rocm_arch}
compiler: default-compiler
environments:
saxpy:
Expand Down

0 comments on commit e0e80f7

Please sign in to comment.