# IT4Innovations 2017

easyblock = 'ConfigureMake'

name = 'libxsmm'
version = '1.6.4'

homepage = 'https://github.com/hfp/libxsmm'
description = """LIBXSMM is a library for small dense and small sparse matrix-matrix multiplications
targeting Intel Architecture (x86)."""

toolchain = SYSTEM

sources = ['%(version)s.tar.gz']
source_urls = ['https://github.com/hfp/libxsmm/archive/']

# install both static and dynamic version
installopts = ['PREFIX=%(installdir)s', 'PREFIX=%(installdir)s STATIC=0']

skipsteps = ['configure']
maxparallel = 1

sanity_check_paths = {
    'files': [
        'bin/libxsmm_gemm_generator',
        'include/libxsmm.h',
        'lib/libxsmm.a',
        'lib/libxsmm.%s' %
        SHLIB_EXT],
    'dirs': ['share']}

moduleclass = 'math'
