# IT4Innovations 2019

name = 'CUDA'
version = '9.2.148'

homepage = 'https://developer.nvidia.com/cuda-toolkit'
description = """CUDA (formerly Compute Unified Device Architecture) is a parallel
 local_computing platform and programming model created by NVIDIA and implemented by the
 graphics processing units (GPUs) that they produce. CUDA gives developers access
 to the virtual instruction set and memory of the parallel local_computational elements in CUDA GPUs."""

toolchain = SYSTEM

source_urls = [
    'https://developer.nvidia.com/compute/cuda/%(version_major_minor)s/Prod2/local_installers/']

sources = ["cuda_%(version)s_396.37_linux"]

modextravars = {
    'CUDA_HOME': '%(installdir)s',
}

modextrapaths = {
    'LIBRARY_PATH': 'lib64/stubs',
    'LD_LIBRARY_PATH': 'lib64/stubs',
}

modluafooter = 'add_property("arch","gpu")'

moduleclass = 'system'
