{
    "version": "11.4.4",
    "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/11.4.4/local_installers/cuda_11.4.4_472.50_windows.exe#/dl.7z",
            "hash": "414985a2f70580f5aa1e59f670db29e438e9d91961eecf4e7402faa5a376987f"
        }
    },
    "installer": {
        "script": [
            "$names = @('bin', 'extras', 'include', 'lib', 'libnvvp', 'nvml', 'nvvm', 'compute-sanitizer')",
            "foreach ($name in $names) {",
            "    Copy-Item \"$dir\\cuda_*\\*\\$name\" \"$dir\" -Recurse -Force",
            "    Copy-Item \"$dir\\lib*\\*\\$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_V11_4": "$dir"
    }
}
