# 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']

local_local_gccver = '6.3.0'
local_local_local_binutilsver = '2.27'
versionsuffix = '-GCC-%s-%s-CUDA' % (local_local_gccver, local_local_local_binutilsver)

dependencies = [
    ('GCCcore', local_local_gccver),
    ('binutils', local_local_local_binutilsver, '', ('GCCcore', local_local_gccver)),
]

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

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

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

moduleclass = 'compiler'
