Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add cuda 12.5.1 & 12.6.0 & 12.6.1 & 12.6.2 #372

Merged
merged 4 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This action installs the [NVIDIA® CUDA® Toolkit](https://developer.nvidia.com/

**Optional** The CUDA version to install. View `src/link/windows-links.ts` and `src/link/linux-links.ts` for available versions.

Default: `'12.5.0'`.
Default: `'12.6.1'`.

### `sub-packages`

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
cuda:
description: 'Cuda version'
required: false
default: '12.5.0'
default: '12.6.1'
sub-packages:
description: 'Only 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! Note that if you want to use this on Linux, ''network'' method MUST be used.'
required: false
Expand Down
16 changes: 16 additions & 0 deletions src/links/linux-links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ export class LinuxLinks extends AbstractLinks {
super()
// Map of cuda SemVer version to download URL
this.cudaVersionToURL = new Map([
[
'12.6.2',
'https://developer.download.nvidia.com/compute/cuda/12.6.2/local_installers/cuda_12.6.2_560.35.03_linux.run'
],
[
'12.6.1',
'https://developer.download.nvidia.com/compute/cuda/12.6.1/local_installers/cuda_12.6.1_560.35.03_linux.run'
],
[
'12.6.0',
'https://developer.download.nvidia.com/compute/cuda/12.6.0/local_installers/cuda_12.6.0_560.28.03_linux.run'
],
[
'12.5.1',
'https://developer.download.nvidia.com/compute/cuda/12.5.1/local_installers/cuda_12.5.1_555.42.06_linux.run'
],
[
'12.5.0',
'https://developer.download.nvidia.com/compute/cuda/12.5.0/local_installers/cuda_12.5.0_555.42.02_linux.run'
Expand Down
32 changes: 32 additions & 0 deletions src/links/windows-links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,22 @@ export class WindowsLinks extends AbstractLinks {
private static _instance: WindowsLinks

private cudaVersionToNetworkUrl: Map<string, string> = new Map([
[
'12.6.2',
'https://developer.download.nvidia.com/compute/cuda/12.6.2/network_installers/cuda_12.6.2_windows_network.exe'
],
[
'12.6.1',
'https://developer.download.nvidia.com/compute/cuda/12.6.1/network_installers/cuda_12.6.1_windows_network.exe'
],
[
'12.6.0',
'https://developer.download.nvidia.com/compute/cuda/12.6.0/network_installers/cuda_12.6.0_windows_network.exe'
],
[
'12.5.1',
'https://developer.download.nvidia.com/compute/cuda/12.5.1/network_installers/cuda_12.5.1_windows_network.exe'
],
[
'12.5.0',
'https://developer.download.nvidia.com/compute/cuda/12.5.0/network_installers/cuda_12.5.0_windows_network.exe'
Expand Down Expand Up @@ -195,6 +211,22 @@ export class WindowsLinks extends AbstractLinks {
super()
// Map of cuda SemVer version to download URL
this.cudaVersionToURL = new Map([
[
'12.6.2',
'https://developer.download.nvidia.com/compute/cuda/12.6.2/local_installers/cuda_12.6.2_560.94_windows.exe'
],
[
'12.6.1',
'https://developer.download.nvidia.com/compute/cuda/12.6.1/local_installers/cuda_12.6.1_560.94_windows.exe'
],
[
'12.6.0',
'https://developer.download.nvidia.com/compute/cuda/12.6.0/local_installers/cuda_12.6.0_560.76_windows.exe'
],
[
'12.5.1',
'https://developer.download.nvidia.com/compute/cuda/12.5.1/local_installers/cuda_12.5.1_555.85_windows.exe'
],
[
'12.5.0',
'https://developer.download.nvidia.com/compute/cuda/12.5.0/local_installers/cuda_12.5.0_555.85_windows.exe'
Expand Down
Loading