Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions cscs-checks/apps/tensorflow/tf_horovod_check.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import reframe as rfm
import reframe.utility.sanity as sn


@rfm.required_version('>=2.16-dev0')
@rfm.simple_test
class TensorFlowHorovodTest(rfm.RunOnlyRegressionTest):
def __init__(self):
super().__init__()
self.descr = 'Distributed training with TensorFlow and Horovod'
self.valid_systems = ['daint:gpu', 'dom:gpu']
self.valid_prog_environs = ['PrgEnv-gnu']
tfshortver = '1.11'
self.sourcesdir = 'https://github.com/tensorflow/benchmarks'
self.modules = ['Horovod/0.15.0-CrayGNU-18.08-tf-%s.0' % tfshortver]
self.reference = {
'dom:gpu': {
'throughput': (1133.6, None, 0.05, 'images/s'),
},
'daint:gpu': {
'throughput': (4403.0, None, 0.05, 'images/s')
},
}
self.perf_patterns = {
'throughput': sn.avg(sn.extractall(
r'total images/sec:\s+(?P<throughput>\S+)',
self.stdout, 'throughput', float))
}
self.sanity_patterns = sn.assert_found(
r'[\S+\s+] INFO NET\/IB : Using interface ipogif0'
r' for sideband communication', self.stdout)
self.num_tasks_per_node = 1
if self.current_system.name == 'dom':
self.num_tasks = 8
elif self.current_system.name == 'daint':
self.num_tasks = 32

self.pre_run = ['git checkout cnn_tf_v%s_compatible' % tfshortver]
self.variables = {
'NCCL_DEBUG': 'INFO',
'NCCL_IB_HCA': 'ipogif0',
'NCCL_IB_CUDA_SUPPORT': '1',
'OMP_NUM_THREADS': '$SLURM_CPUS_PER_TASK',
}
self.executable = ('python')
self.executable_opts = [
'scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py',
'--model inception3',
'--batch_size 64',
'--variable_update horovod',
'--log_dir ./logs',
'--train_dir ./checkpoints']
self.tags = {'production'}
self.maintainers = ['MS', 'RS']