Skip to content

Conversation

@sekelle
Copy link
Contributor

@sekelle sekelle commented Apr 5, 2019

This would be my suggestion to fix the test. I sort the list of cores, because arguably
for performance we don't care which OpenMP thread is executed on which core.
It should be enough to check that the list of cores contains no duplicates and the total
number of distinct cores is the same relative to the reference.

@vkarak
Copy link
Contributor

vkarak commented Apr 5, 2019

@sebkelle1 Please have a look at the PR title guide: https://github.com/eth-cscs/reframe/wiki/Contributing-to-ReFrame#pull-request-policy

@sekelle sekelle changed the title [test] sorted compare of cores list [bugfix] sorted compare of cores list Apr 5, 2019
@vkarak vkarak changed the title [bugfix] sorted compare of cores list [bugfix] Sort cores list in affinity test before comparing Apr 5, 2019
super().setup(partition, environ, **job_opts)

@sn.sanity_function
def sn_sorted(self, lst):
Copy link
Contributor

Choose a reason for hiding this comment

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

This is already provided by ReFrame. sn.sorted() should be fine.

@vkarak vkarak changed the title [bugfix] Sort cores list in affinity test before comparing [test] Sort cores list in affinity test before comparing Apr 5, 2019
@vkarak vkarak added enhancement and removed bugfix labels Apr 5, 2019
@vkarak vkarak merged commit 3ad7afc into reframe-hpc:master Apr 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants