# This is an easyconfig file for EasyBuild, see
# http://hpcugent.github.io/easybuild

name = 'impi'
version = '2017.1.132'

homepage = 'http://software.intel.com/en-us/intel-mpi-library/'
description = """The Intel(R) MPI Library for Linux* OS is a multi-fabric message
 passing library based on ANL MPICH2 and OSU MVAPICH2. The Intel MPI Library for
 Linux OS implements the Message Passing Interface, version 2 (MPI-2) specification."""

toolchain = {'name': 'iccifort', 'version': '2017.1.132-GCC-6.3.0-2.27'}

sources = ['l_mpi_%(version)s.tgz']

checksums = ['d5e941ac2bcf7c5576f85f6bcfee4c18']

dontcreateinstalldir = 'True'

components = ['intel-mpi', 'intel-psxe', 'intel-imb']

license_file = '/apps/licenses/intel/license.lic'

# set up all the mpi commands to default to intel compilers
# set_mpi_wrappers_all = 'True'

postinstallcmds = [
    'ln -s %(installdir)s/lib64/libmpi.so  %(installdir)s/lib64/libmpich.so',
    'ln -s %(installdir)s/lib64/libmpigc4.so  %(installdir)s/lib64/libmpichcxx.so',
    'ln -s %(installdir)s/lib64/libmpigf.so %(installdir)s/lib64/libfmpich.so',
    'ln -s %(installdir)s/lib64/libmpigf.so %(installdir)s/lib64/libmpichf90.so',
    'ln -s %(installdir)s/lib64/libmpi.so %(installdir)s/lib64/libmpl.so',
    'ln -s %(installdir)s/lib64/libmpi.so %(installdir)s/lib64/libopa.so']

modextravars = {
    'I_MPI_CC': 'icc',
    'I_MPI_CXX': 'icpc',
    'I_MPI_F77': 'ifort',
    'I_MPI_F90': 'ifort',
    'I_MPI_FC': 'ifort',
    'I_MPI_EXTRA_FILESYSTEM': 'enable',
    'I_MPI_EXTRA_FILESYSTEM_LIST': 'lustre',
}

moduleclass = 'mpi'
