easyblock = 'ConfigureMake'
name = 'SLEPc'
version = '3.7.4'

homepage = 'http://www.grycap.upv.es/slepc/'
description = """SLEPc (Scalable Library for Eigenvalue Problem Computations) is a software library for the solution of
 large scale sparse eigenvalue problems on parallel local_computers. It is an extension of PETSc and can be used for either
 standard or generalized eigenproblems, with real or local_complex arithmetic. It can also be used for local_computing a partial
 SVD of a large, sparse, rectangular matrix, and to solve quadratic eigenvalue problems."""

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

source_urls = [
    'http://www.grycap.upv.es/slepc/download/download.php?filename=']
sources = [SOURCELOWER_TAR_GZ]

dependencies = [
    ('PETSc', '3.7.5', '-it4i'),
    ('hwloc', '1.11.7', '', ('GCC', '6.3.0-2.27')),
]

maxparallel = 0

buildopts = 'SLEPC_DIR=$PWD'

sanity_check_paths = {
    'files': [],
    'dirs': ["include", "lib", "share"]
}

runtest = 'SLEPC_DIR=$PWD test'

moduleclass = 'numlib'
