Skip to content

use namedtuples for constants - #258

Merged
casparvl merged 6 commits into
EESSI:mainfrom
smoors:namedtuple
Mar 18, 2025
Merged

casparvl merged 6 commits into
EESSI:mainfrom
smoors:namedtuple

Conversation

@smoors

@smoors smoors commented Mar 13, 2025 •

Copy link
Copy Markdown
Collaborator

fixes #257

also:

  • add constant for extras key 'mem_per_node'
  • group extras constants into EXTRAS namedtuple: EXTRAS.GPU_VENDOR, EXTRAS.MEM_PER_NODE
  • change EESSI_mixin_validate_item_in_dict method to EESSI_mixin_validate_item_in_list to make it simpler and more flexible

@casparvl casparvl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this PR on Snellius, using the config/surf_snellius.py config, using:

reframe -t 1_8_node -t CI --system=snellius:rome --run

on the EESSI software stack and

reframe -t 1_4_node -t CI --system=snellius:gpu_A100 -n PyTorch --run
reframe -c test-suite/tutorial/mpi4py/mpi4py_portable_mixin.py -t 1_8_node -t CI --system=snellius:rome --run
reframe -c test-suite/tutorial/mpi4py/mpi4py_portable_legacy.py -t 1_8_node --system=snellius:rome --run
reframe -t 1_4_node -t CI --system=snellius:gpu_A100 -n TensorFlow --run

on a local module stack that contains a PyTorch module.

All of these complete successfully.

While I cannot test the updates to the other configs, these runs have tested a fair amount of the code changes in this PR.

The one thing that we need to make sure is that once we create a new release, we make sure that all EESSI bot deployments update their associated ReFrame config. As far as I know, there are four:

  • AWS Magic Castle cluster
  • Azure Magic Castle cluster
  • UGent build bot
  • SURF build bot

I can imagine the NESSI folks also having one though. I will ping the respective people in DMs, and also note it on the software-layer-bot channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

replace constant dicts with namedtuples

2 participants