Skip to content

Commit

Permalink
Move legacy caliper modifier implementations to the legacy directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Riyaz Haque committed Jan 10, 2025
1 parent 73ad9d7 commit 2398e12
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ class CaliperCuda(CaliperBase):

name = "caliper-cuda"

mode(
"cuda",
description="Profile CUDA API functions",
)

_cali_datafile = CaliperBase._cali_datafile

env_var_modification(
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ class CaliperMpi(CaliperBase):

name = "caliper-mpi"

mode(
"mpi",
description="Profile MPI functions",
)

_cali_datafile = CaliperBase._cali_datafile

env_var_modification(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,6 @@ class CaliperTopdown(CaliperBase):

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(
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions legacy/modifiers/modifier_repo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
repo:
namespace: benchpark
subdirectory: ''
File renamed without changes.
3 changes: 3 additions & 0 deletions lib/benchpark/accounting.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def benchpark_modifiers():
modifiers = []
for x in os.listdir(source_dir / "modifiers"):
modifiers.append(x)

modifiers += [x for x in os.listdir(source_dir / "legacy" / "modifiers") if x not in modifiers]

return modifiers


Expand Down
5 changes: 3 additions & 2 deletions lib/benchpark/cmd/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def command(args):

print(f"Setting up configs for Ramble workspace {ramble_configs_dir}")

modifier_config_dir = source_dir / "modifiers" / modifier / "configs"
legacy_modifier_config_dir = source_dir / "legacy" / "modifiers" / modifier / "configs"
ramble_configs_dir.mkdir(parents=True)
ramble_logs_dir.mkdir(parents=True)
ramble_spack_experiment_configs_dir.mkdir(parents=True)
Expand All @@ -197,7 +197,7 @@ def include_fn(fname):

symlink_tree(configs_src_dir, ramble_configs_dir, include_fn)
symlink_tree(experiment_src_dir, ramble_configs_dir, include_fn)
symlink_tree(modifier_config_dir, ramble_configs_dir, include_fn)
symlink_tree(legacy_modifier_config_dir, ramble_configs_dir, include_fn)
symlink_tree(
source_dir / "legacy" / "systems" / "common",
ramble_spack_experiment_configs_dir,
Expand Down Expand Up @@ -232,6 +232,7 @@ def include_fn(fname):
ramble(f"repo add --scope=site {source_dir}/repo")
ramble('config --scope=site add "config:disable_progress_bar:true"')
ramble(f"repo add -t modifiers --scope=site {source_dir}/modifiers")
ramble(f"repo add -t modifiers --scope=site {source_dir}/legacy/modifiers")
ramble("config --scope=site add \"config:spack:global:args:'-d'\"")

if not initializer_script.exists():
Expand Down

0 comments on commit 2398e12

Please sign in to comment.