# IT4Innovations 2020
# LK

name = 'PGI'
version = '18.10'

homepage = 'http://www.pgroup.com/'
description = "C, C++ and Fortran local_compilers from The Portland Group - PGI"

toolchain = SYSTEM

sources = ['pgilinux-20%(version_major)s-%(version_major)s%(version_minor)s-x86-64.tar.gz']

versionsuffix = '-CUDA'

install_nvidia = 'true'
install_mpi = 'true'
install_mpi_gpu = 'true'

# license file
license_file = '/apps/licenses/pgi/license.dat'

modextrapaths = {
    'PATH': 'linux86-64-llvm/2018/mpi/openmpi-2.1.4/bin',
    'LD_LIBRARY_PATH': 'linux86-64-llvm/2018/mpi/openmpi-2.1.4/lib',
    'LIBRARY_PATH': 'linux86-64-llvm/2018/mpi/openmpi-2.1.4/lib',
    'CPATH': 'linux86-64-llvm/2018/mpi/openmpi-2.1.4/include',
    'MANPATH': 'linux86-64-llvm/2018/mpi/openmpi-2.1.4/share/man',
    'PKG_CONFIG_PATH': 'linux86-64-llvm/2018/mpi/openmpi-2.1.4/lib/pkgconfig',
}

moduleclass = 'compiler'
