Skip to content

Commit

Permalink
[sombrero] Distinguish lattice volume; set num_tasks_per_node where…
Browse files Browse the repository at this point in the history
… needed
  • Loading branch information
giordano committed Dec 11, 2023
1 parent 7381269 commit cbdf998
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions benchmarks/apps/sombrero/sombrero.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
from benchmarks.modules.utils import SpackTest

# Fixed lattice volume in ITT benchmarks
LATTICE_VOLUME = 32 * 24 * 24 * 24
LATTICE_VOLUME_SMALL = 32 * 24 ** 3
LATTICE_VOLUME_MEDIUM = 48 ** 3 * 64


# Helper function to find maximum number of tasks we can use for benchmarks
Expand Down Expand Up @@ -122,10 +123,9 @@ def set_up_from_parameters(self):
def setup_num_tasks(self):
self.num_tasks = max_num_tasks(
self.current_partition.processor.num_cores,
LATTICE_VOLUME,
LATTICE_VOLUME_SMALL,
)


@rfm.simple_test
class SombreroITT64n(SombreroBenchmarkBase):
valid_systems = ['-gpu']
Expand All @@ -137,7 +137,8 @@ def set_up_from_parameters(self):

@run_after('setup')
def setup_num_tasks(self):
self.num_tasks = max_num_tasks(
self.current_partition.processor.num_cores * 64,
LATTICE_VOLUME,
self.num_tasks_per_node = max_num_tasks(
self.current_partition.processor.num_cores,
LATTICE_VOLUME_MEDIUM,
)
self.num_tasks = self.num_tasks_per_node * 64

0 comments on commit cbdf998

Please sign in to comment.