{
    "version": "10.2.89",
    "description": "A parallel computing platform and programming model invented by NVIDIA",
    "homepage": "https://developer.nvidia.com/cuda/toolkit",
    "license": {
        "identifier": "Freeware",
        "url": "https://docs.nvidia.com/cuda/eula/index.html"
    },
    "architecture": {
        "64bit": {
            "url": "https://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_441.22_win10.exe#/dl.7z",
            "hash": "b538271c4d9ffce1a8520bf992d9bd23854f0f29cee67f48c6139e4cf301e253"
        }
    },
    "installer": {
        "script": [
            "$names = @('bin', 'extras', 'include', 'jre', 'lib', 'libnvvp', 'nvml', 'nvvm')",
            "foreach ($name in $names) {",
            "    Copy-Item \"$dir\\*\\$name\" \"$dir\" -Recurse -Force",
            "}",
            "Get-ChildItem \"$dir\" -Exclude $names | Remove-Item -Recurse -Force"
        ]
    },
    "env_add_path": [
        "bin",
        "libnvvp"
    ],
    "env_set": {
        "CUDA_PATH": "$dir",
        "CUDA_PATH_V10_2": "$dir"
    }
}
