name = 'imkl'
version = '11.3.3.210'

homepage = 'http://software.intel.com/en-us/intel-mkl/'
description = """Intel Math Kernel Library is a library of highly optimized,
 extensively threaded math routines for science, engineering, and financial
 applications that require maximum performance. Core math functions include
 BLAS, LAPACK, ScaLAPACK, Sparse Solvers, Fast Fourier Transforms, Vector Math, and more."""

toolchain = {'name': 'iompi', 'version': '2016.09-GCC-5.4.0-2.26'}

sources = ['l_mkl_%(version)s.tgz']
checksums = ['f72546df27f5ebb0941b5d21fd804e34']

dontcreateinstalldir = 'True'

components = ['intel-mkl']

interfaces = True

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

postinstallcmds = [
    # extract the examples
    'tar xvzf %(installdir)s/mkl/examples/examples_cluster.tgz -C %(installdir)s/mkl/examples/',
    'tar xvzf %(installdir)s/mkl/examples/examples_core_c.tgz -C %(installdir)s/mkl/examples/',
    'tar xvzf %(installdir)s/mkl/examples/examples_core_f.tgz -C %(installdir)s/mkl/examples/',
    'tar xvzf %(installdir)s/mkl/examples/examples_f95.tgz -C %(installdir)s/mkl/examples/',
    'tar xvzf %(installdir)s/mkl/examples/examples_mic.tgz -C %(installdir)s/mkl/examples/'
]

modextravars = {
    'MKL_EXAMPLES': ''%(installdir)s/mkl/examples/',
}

moduleclass = 'numlib'