Skip to content

Commit

Permalink
'benchpark system init --basedir' now uses same unique identifier as …
Browse files Browse the repository at this point in the history
…system_id.yaml to generate dirname
  • Loading branch information
scheibelp committed Aug 31, 2024
1 parent ead559b commit 9c70879
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/benchpark/cmd/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def system_init(args):

if args.basedir:
base = args.basedir
sysdir = system.system_id()
sysdir = system.system_uid()
destdir = os.path.join(base, sysdir)
elif args.dest:
destdir = args.dest
Expand Down
6 changes: 3 additions & 3 deletions lib/benchpark/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def generate_description(self, output_dir):
self.external_packages(output_dir)
self.compiler_description(output_dir)

spec_hash = _hash_id([str(self.spec)])
spec_hash = self.system_uid()

system_id_path = output_dir / "system_id.yaml"
with open(system_id_path, "w") as f:
Expand All @@ -109,8 +109,8 @@ def generate_description(self, output_dir):
"""
)

def system_id(self):
return _hash_id([self.variables_yaml()])
def system_uid(self):
return _hash_id([str(self.spec)])

def _merge_config_files(self, schema, selections, dst_path):
data = cfg.read_config_file(selections[0], schema)
Expand Down

0 comments on commit 9c70879

Please sign in to comment.