Skip to content

Conversation

@teojgo
Copy link
Contributor

@teojgo teojgo commented Jun 28, 2018

Closes #181

@teojgo teojgo added this to the Upcoming sprint milestone Jun 28, 2018
@teojgo teojgo self-assigned this Jun 28, 2018
@teojgo teojgo requested review from victorusu and vkarak June 28, 2018 07:53
@vkarak vkarak changed the title [test] Create flexible cuda-memtest check [test] New flexible CUDA memtest check Jun 28, 2018
self.valid_prog_environs = ['PrgEnv-cray', 'PrgEnv-gnu',
'PrgEnv-intel', 'PrgEnv-pgi']
self.descr = 'Flexible Cuda Memtest'
self.executable = 'osu_alltoall'
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the name of the test, really?

self.descr = 'Flexible Cuda Memtest'
self.executable = 'osu_alltoall'
self.maintainers = ['TM', 'VK']
self.tags = {'maintenance'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't put a tag here. Otherwise it will run on every maintenance session on all the nodes!

'cuda_memtest-1.2.3.tar.gz')
self.prebuild_cmd = ['wget %s' % src_url,
'tar -xzf cuda_memtest-1.2.3.tar.gz '
'--strip-components=1']
Copy link
Contributor

Choose a reason for hiding this comment

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

If you format the list as follows, the second command might fit in a single line:

self.prebuild_cmd = [
    'wget ...'
    'tar ...'
]

self.executable = 'cuda_memtest_sm20'
self.executable_opts = ['--disable_test', '6', '--num_passes', '1']

valid_test_ids = [i for i in range(11) if i not in {6, 9}]
Copy link
Contributor

Choose a reason for hiding this comment

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

Better make this a set.

valid_test_ids = [i for i in range(11) if i not in {6, 9}]
assert_finished_tests = [sn.assert_eq(sn.count(sn.findall(
'Test%s finished' % test_id, self.stdout)),
self.num_tasks_assigned) for test_id in valid_test_ids]
Copy link
Contributor

Choose a reason for hiding this comment

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

This expression is a bit hard to follow. Can you format a bit better, so as to be more readable?

super().__init__()
self.valid_systems = ['daint:gpu', 'dom:gpu']
self.valid_prog_environs = ['PrgEnv-cray', 'PrgEnv-gnu',
'PrgEnv-intel', 'PrgEnv-pgi']
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it make sense to run this test will all the programming environments. Just pick one.


def compile(self):
# Here we set the target executable since by default the Makefile
# builds both cuda_memtest_sm13 and cuda_memtest_sm20
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps a comment here that sm20 is the maximum supported GPU architecture version from this test would help.

@vkarak
Copy link
Contributor

vkarak commented Jun 28, 2018

@jenkins-cscs retry daint kesch monch

@vkarak vkarak merged commit 2ba6d2f into master Jun 28, 2018
@vkarak vkarak deleted the regression-test/cuda_memtest branch June 28, 2018 17:54
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