Skip to content

Commit

Permalink
Create resource group to apply memory setting for Isambard Phase3 (#282)
Browse files Browse the repository at this point in the history
* Create resource group to apply memory setting for Isambard Instinct

* Adding memory resource to the milan

* Apply suggestions from code review

Co-authored-by: kaanolgu <[email protected]>

* Update benchmarks/modules/utils.py

---------

Co-authored-by: kaanolgu <[email protected]>
  • Loading branch information
giordano and kaanolgu authored Mar 18, 2024
1 parent 10c6773 commit d1c413e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
8 changes: 8 additions & 0 deletions benchmarks/modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@ def set_sge_num_slots(self):
# Set the total number of CPUs to be requested for the SGE scheduler.
self.extra_resources['mpi'] = {'num_slots': num_tasks * num_cpus_per_task}

@run_before('compile')
def set_isambard_memory(self):
# We define the `memory` extra resource, so that we
# can use the corresponding resources in the config file.
system, partition = self.current_partition.fullname.split(':')
if system == "isambard-phase3":
self.extra_resources['memory'] = {}

@run_after('setup')
def setup_build_job_num_cpus(self):
# When running a build on a compute node, ReFrame by default uses only a
Expand Down
13 changes: 10 additions & 3 deletions benchmarks/reframe_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ def spack_root_to_path():
},
'resources': [
{
'name': 'cpu',
# TODO: memory should be a separate resource.
'options': ['ncpus={num_cpus}:mem=100g'],
'name': 'memory',
# TODO: memory should be a more general resource.
'options': ['mem=100g'],
},
],
},
Expand All @@ -455,6 +455,13 @@ def spack_root_to_path():
'num_sockets': 2,
'num_cpus_per_socket': 64,
},
'resources': [
{
'name': 'memory',
# TODO: memory should be a more general resource.
'options': ['mem=100g'],
},
],
},
]
}, # end Isambard Phase3
Expand Down

0 comments on commit d1c413e

Please sign in to comment.