name = 'GPI-2'
version = '1.1.1'
versionsuffix = '-MPI'

homepage = 'http://www.gpi-site.com/gpi2/'
description = """GPI-2 is an API for the development of scalable,
asynchronous and fault tolerant parallel applications.
"""

toolchain = {'name': 'gompi', 'version': '2015e'}
toolchainopts = {'usempi': True}

source_urls = [
    'http://www.gpi-site.com/gpi2/register/'
]
sources = [SOURCELOWER_TAR_GZ]

skipsteps = ['configure', 'install']

sanity_check_paths = {
    'files': ['bin/gaspi_run'],
    'dirs': ['bin', 'include', 'lib64'],
}

moduleclass = 'vis'

# NOTE!
# To add Xeon Phi support is necessary:
# 1. Go to the unpacked GPI-2 directory
# 2. Obtain node with Xeon Phi
# qsub -I -q qprod -l select=1:ncpus=24:accelerator=True:naccelerators=2:accelerator_model=phi7120 -A SERVICE
# 3. module add intel/2015b
# 4. run "make mic"
# 5. copy directory lib64/mic to the %installdir/lib64
