Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FOMs to capture PSM3 info #482

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions var/ramble/repos/builtin/modifiers/conditional-psm3/modifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ class ConditionalPsm3(BasicModifier):
mode='standard'
)

modifier_variable(
'psm3_log_file',
default='{log_file}',
description='Log file where PSM3 info writes to, this varies based on applications',
mode='standard',
)

def apply_psm3(self, executable_name, executable, app_inst=None):
from ramble.util.executable import CommandExecutable

Expand Down Expand Up @@ -94,3 +101,21 @@ def apply_psm3(self, executable_name, executable, app_inst=None):
)

return pre_cmds, post_cmds

psm3_build_info_regex = r'.*\sPSM3_IDENTIFY PSM3\s+(?P<version>v[\d.]+)\s+built for\s+(?P<target>.*)$'

figure_of_merit(
'PSM3 version',
fom_regex=psm3_build_info_regex,
group_name='version',
units='',
log_file='{psm3_log_file}',
)

figure_of_merit(
'PSM3 build target',
fom_regex=psm3_build_info_regex,
group_name='target',
units='',
log_file='{psm3_log_file}',
)