easyblock = 'MakeCp'

name = 'IMB'
version = '2018.1'

homepage = 'https://software.intel.com/en-us/articles/intel-mpi-benchmarks'
description = """The Intel MPI Benchmarks perform a set of MPI performance measurements for point-to-point and
 global communication operations for a range of message sizes"""

toolchain = {'name': 'intel', 'version': '2017a'}
toolchainopts = {'usempi': True}

source_urls = ['https://github.com/intel/mpi-benchmarks/archive/']
sources = ['v%(version)s.tar.gz']
checksums = ['718a4eb155f18cf15a736f6496332407b5837cf1f19831723d4cfe5266c43507']

start_dir = 'src'
buildopts = 'all CC="$MPICC"'

parallel = 1

files_to_copy = [(['src/IMB-*'], 'bin')]

sanity_check_paths = {
    'files': ['bin/IMB-EXT', 'bin/IMB-IO', 'bin/IMB-MPI1', 'bin/IMB-NBC', 'bin/IMB-RMA'],
    'dirs': [],
}

moduleclass = 'perf'
