{"id":14985976,"url":"https://github.com/jimver/cuda-toolkit","last_synced_at":"2025-04-14T08:17:08.175Z","repository":{"id":37078562,"uuid":"346332005","full_name":"Jimver/cuda-toolkit","owner":"Jimver","description":"GitHub Action to install CUDA","archived":false,"fork":false,"pushed_at":"2025-04-13T13:27:25.000Z","size":9868,"stargazers_count":170,"open_issues_count":29,"forks_count":64,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T08:16:57.524Z","etag":null,"topics":["action","cuda","cuda-toolkit","github-actions","nvidia","nvidia-cuda"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jimver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-10T11:27:50.000Z","updated_at":"2025-04-13T13:26:50.000Z","dependencies_parsed_at":"2023-02-14T20:00:48.660Z","dependency_job_id":"6fe87767-6256-44f5-8614-7145a456c854","html_url":"https://github.com/Jimver/cuda-toolkit","commit_stats":{"total_commits":283,"total_committers":12,"mean_commits":"23.583333333333332","dds":0.4487632508833922,"last_synced_commit":"28e983fc6bf47e7a732934aa029a6738e2ce16e4"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jimver%2Fcuda-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jimver%2Fcuda-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jimver%2Fcuda-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jimver%2Fcuda-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jimver","download_url":"https://codeload.github.com/Jimver/cuda-toolkit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248843999,"owners_count":21170499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","cuda","cuda-toolkit","github-actions","nvidia","nvidia-cuda"],"created_at":"2024-09-24T14:12:04.563Z","updated_at":"2025-04-14T08:17:08.162Z","avatar_url":"https://github.com/Jimver.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cuda-toolkit\n\nThis action installs the [NVIDIA® CUDA® Toolkit](https://developer.nvidia.com/cuda-toolkit) on the system. It adds the cuda install location as `CUDA_PATH` to `GITHUB_ENV` so you can access the CUDA install location in subsequent steps. `CUDA_PATH/bin` is added to `GITHUB_PATH` so you can use commands such as `nvcc` directly in subsequent steps. Right now both `windows-2019` and `ubuntu-20.04` runners have been tested to work successfully.\n\n## Inputs\n\n### `cuda`\n\n**Optional** The CUDA version to install. View `src/link/windows-links.ts` and `src/link/linux-links.ts` for available versions.\n\nDefault: `'12.8.1'`.\n\n### `sub-packages`\n\n**NOTE: On Linux this only works with the 'network' method [view details](#method)**\n\n**Optional**\nIf set, only the specified CUDA subpackages will be installed.\nOnly installs specified subpackages, must be in the form of a JSON array. For example, if you only want to install nvcc and visual studio integration: `'[\"nvcc\", \"visual_studio_integration\"]'` (double quotes required)\n\nDefault: `'[]'`.\n\n### `non-cuda-sub-packages`\n\n**NOTE: This only works on Linux with the 'network' method [view details](#method)**\n\n**Optional**\nIf set, only the specified CUDA subpackages will be installed without prepending the \"cuda-\" prefix.\nOnly installs specified subpackages without prepending the \"cuda-\" prefix, must be in the form of a JSON array. For example, if you only want to install libcublas and libcufft: `'[\"libcublas\", \"libcufft\"]'` (double quotes required)\n\nDefault: `'[]'`.\n\n### `method`\n\n**Optional**\nInstallation method, can be either `'local'` or `'network'`.\n\n- `'local'` downloads the entire installer with all packages and runs that (you can still only install certain packages with `sub-packages` on Windows).\n- `'network'` downloads a smaller executable which only downloads necessary packages which you can define in `sub-packages`.\n\nDefault: `'local'`.\n\n### `linux-local-args`\n\n**Optional**\n(For Linux and 'local' method only) override arguments for the Linux `.run` installer. For example if you don't want samples use `'[\"--toolkit\"]'` (double quotes required)\nSee the [Nvidia Docs](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#runfile-advanced) for available options. Note that the `--silent` option is already always added by the action itself.\n\nDefault: `'[\"--toolkit\", \"--samples\"]'`.\n\n### `log-file-suffix`\n\n**Required with matrix builds**\n\nAdd suffix to the log file name which gets uploaded as an artifact. This **has** to be set when running a matrix build.\nThe log file already contains the OS type (Linux/Windows) and install method (local/network) but it is not aware of other matrix variables, so add those here.\n\nFor example if you use multiple linux distros:\n\n```\njobs:\n  CI:\n    strategy:\n      matrix:\n        os: [ubuntu-22.04, ubuntu-20.04]\n    runs-on: ${{ matrix.os }}\n    steps:\n    - uses: Jimver/cuda-toolkit@master\n      id: cuda-toolkit\n      with:\n        log-file-suffix: '${{matrix.os}}.txt'\n\n```\n\nDefault: `'log.txt'`\n\n## Outputs\n\n### `cuda`\n\nThe cuda version installed (same as `cuda` from input).\n\n### `CUDA_PATH`\n\nThe path where cuda is installed (same as `CUDA_PATH` in `GITHUB_ENV`).\n\n## Example usage\n\n```yaml\nsteps:\n- uses: Jimver/cuda-toolkit@v0.2.23\n  id: cuda-toolkit\n  with:\n    cuda: '12.5.0'\n\n- run: echo \"Installed cuda version is: ${{steps.cuda-toolkit.outputs.cuda}}\"\n\n- run: echo \"Cuda install location: ${{steps.cuda-toolkit.outputs.CUDA_PATH}}\"\n\n- run: nvcc -V\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimver%2Fcuda-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimver%2Fcuda-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimver%2Fcuda-toolkit/lists"}