Skip to content

Commit

Permalink
Merge pull request #689 from sebkelle1/checks/gpu-mem-bw-buf-size
Browse files Browse the repository at this point in the history
[test] Enlarge buffer sizes for H2D and D2D multi GPU tests
  • Loading branch information
vkarak committed Mar 7, 2019
2 parents 8edc395 + ba0358f commit a580385
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions cscs-checks/cuda/multi_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ def __init__(self):
self.sourcepath = 'bandwidthtestflex.cu'
self.executable = 'gpu_bandwidth_check.x'

# NOTE: Perform a range of bandwidth tests from 2MB to 32MB
# with 2MB increments to avoid initialization overhead in bandwidth
# Perform a single bandwidth test with a buffer size of 1024MB
self.min_buffer_size = 1073741824
self.max_buffer_size = 1073741824
self.executable_opts = ['device', 'all', '--mode=range',
'--start=2097152', '--increment=2097152',
'--end=33554432', '--csv']
'--start=%d' % self.min_buffer_size,
'--increment=%d' % self.min_buffer_size,
'--end=%d' % self.max_buffer_size, '--csv']
self.num_tasks = 0
self.num_tasks_per_node = 1
if self.current_system.name in ['daint', 'dom']:
Expand All @@ -51,10 +53,10 @@ def __init__(self):
self.__bwref = {
'daint:gpu:h2d': (11881, -0.1, None, 'MB/s'),
'daint:gpu:d2h': (12571, -0.1, None, 'MB/s'),
'daint:gpu:d2d': (485932, -0.1, None, 'MB/s'),
'daint:gpu:d2d': (499000, -0.1, None, 'MB/s'),
'dom:gpu:h2d': (11881, -0.1, None, 'MB/s'),
'dom:gpu:d2h': (12571, -0.1, None, 'MB/s'),
'dom:gpu:d2d': (485932, -0.1, None, 'MB/s'),
'dom:gpu:d2d': (499000, -0.1, None, 'MB/s'),
'kesch:cn:h2d': (7583, -0.1, None, 'MB/s'),
'kesch:cn:d2h': (7584, -0.1, None, 'MB/s'),
'kesch:cn:d2d': (137408, -0.1, None, 'MB/s')
Expand All @@ -71,10 +73,10 @@ def _xfer_pattern(self, xfer_kind, devno, nodename):
else:
first_part = 'bandwidthTest-D2D'

# Extract the bandwidth corresponding to the 32MB message
# Extract the bandwidth corresponding to the maximum buffer size
return (r'^%s[^,]*,\s*%s[^,]*,\s*Bandwidth\s*=\s*(\S+)\s*MB/s([^,]*,)'
r'{2}\s*Size\s*=\s*33554432\s*bytes[^,]*,\s*DeviceNo\s*=\s*-1'
r':%s' % (nodename, first_part, devno))
r'{2}\s*Size\s*=\s*%d\s*bytes[^,]*,\s*DeviceNo\s*=\s*-1'
r':%s' % (nodename, first_part, self.max_buffer_size, devno))

@sn.sanity_function
def do_sanity_check(self):
Expand Down

0 comments on commit a580385

Please sign in to comment.