Skip to content
Snippets Groups Projects
Commit d5d6344b authored by Kurt A. O'Hearn's avatar Kurt A. O'Hearn
Browse files

Tools: add keyword for setting number of CUDA streams (gpu_streams).

parent 89729fc1
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,8 @@ class TestCase(): ...@@ -28,6 +28,8 @@ class TestCase():
r'(?P<key>\bdt\b\s+)\S+(?P<comment>.*)', r'\g<key>%s\g<comment>' % x, l), \ r'(?P<key>\bdt\b\s+)\S+(?P<comment>.*)', r'\g<key>%s\g<comment>' % x, l), \
'gpus_per_node': lambda l, x: sub( 'gpus_per_node': lambda l, x: sub(
r'(?P<key>\bgpus_per_node\b\s+)\S+(?P<comment>.*)', r'\g<key>%s\g<comment>' % x, l), \ r'(?P<key>\bgpus_per_node\b\s+)\S+(?P<comment>.*)', r'\g<key>%s\g<comment>' % x, l), \
'gpu_streams': lambda l, x: sub(
r'(?P<key>\bgpu_streams\b\s+)\S+(?P<comment>.*)', r'\g<key>%s\g<comment>' % x, l), \
'proc_by_dim': lambda l, x: sub( 'proc_by_dim': lambda l, x: sub(
r'(?P<key>\bproc_by_dim\b\s+)\S+\s+\S+\s+\S+(?P<comment>.*)', r'(?P<key>\bproc_by_dim\b\s+)\S+\s+\S+\s+\S+(?P<comment>.*)',
r'\g<key>{0} {1} {2}\g<comment>'.format(*(x.split(':'))), l), \ r'\g<key>{0} {1} {2}\g<comment>'.format(*(x.split(':'))), l), \
...@@ -901,6 +903,7 @@ if __name__ == '__main__': ...@@ -901,6 +903,7 @@ if __name__ == '__main__':
'nsteps': ['20'], 'nsteps': ['20'],
'dt': ['0.25'], 'dt': ['0.25'],
'gpus_per_node': ['1'], 'gpus_per_node': ['1'],
'gpu_streams': ['5'],
'proc_by_dim': ['1:1:1'], 'proc_by_dim': ['1:1:1'],
'periodic_boundaries': ['1'], 'periodic_boundaries': ['1'],
'reposition_atoms': ['0'], 'reposition_atoms': ['0'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment