name = 'CUDA'
version = '9.1.85'

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/local_compute/cuda/%(version_major_minor)s/prod/local_installers/']

sources = ['cuda_9.1.85_387.26_linux']

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

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

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

moduleclass = 'system'