-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add nvidia-cuda feature #35
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,7 @@ jobs: | |
| "mingw", | ||
| "nginx", | ||
| "node", | ||
| "nvidia-cuda", | ||
| "playwright-deps", | ||
| "python", | ||
| "rust", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| ## Notes | ||
|
|
||
| ### System Compatibility | ||
|
|
||
| > Only amd64 is supported | ||
|
|
||
| Debian, Ubuntu | ||
|
|
||
| ### Accessed URLs | ||
|
|
||
| Needs access to the following URL for downloading and resolving: | ||
| * https://developer.download.nvidia.com | ||
|
|
||
| ### Install the NVIDIA Container Toolkit | ||
|
|
||
| Follow [NVIDIA's instructions to install the NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/overview.html) on your host machine. The NVIDIA Container Toolkit is available on a variety of Linux distributions. Make sure you have [installed the NVIDIA driver](https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/index.html) for your Linux distribution before installing the NVIDIA Container Toolkit. | ||
|
|
||
| ### Package Dependency Tree | ||
|
|
||
| Here is a list of the dependency tree of the packages in case you want to install only some of them. | ||
|
|
||
| cuda-toolkit | ||
| - cuda-compiler | ||
| - cuda-cuobjdump | ||
| - cuda-cuxxfilt | ||
| - cuda-nvcc | ||
| - cuda-nvprune | ||
| - cuda-libraries | ||
| - libnpp | ||
| - cuda-libraries-dev | ||
| - cuda-tools | ||
| - cuda-command-line-tools | ||
| - cuda-nvtx | ||
| - cuda-visual-tools | ||
| - gds-tools | ||
| - cuda-documentation | ||
| - cuda-nvml-dev | ||
|
|
||
| ### NVIDIA cuDNN | ||
|
|
||
| TODO: This is not yet supported | ||
|
|
||
| * libcudnn8 - cuDNN runtime libraries | ||
| * libcudnn8-dev - cuDNN development libraries and headers | ||
| * libcudnn9-cuda-11 - cuDNN runtime libraries for CUDA 11.8 | ||
| * libcudnn9-dev-cuda-11 - cuDNN development headers and symlinks for CUDA 11.8 | ||
| * libcudnn9-cuda-12 - cuDNN runtime libraries for CUDA 12.4 | ||
| * libcudnn9-dev-cuda-12 - cuDNN development headers and symlinks for CUDA 12.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| # NVIDIA CUDA (nvidia-cuda) | ||
|
|
||
| A package which installs NVIDIA CUDA. | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ```json | ||
| "features": { | ||
| "ghcr.io/postfinance/devcontainer-features/nvidia-cuda:0.1.0": { | ||
| "version": "latest", | ||
| "installLibraries": true, | ||
| "installDevLibraries": true, | ||
| "installCompiler": true, | ||
| "installTools": true, | ||
| "additionalCudaPackages": "", | ||
| "downloadUrl": "" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Options | ||
|
|
||
| | Option | Description | Type | Default Value | Proposals | | ||
| |-----|-----|-----|-----|-----| | ||
| | version | The version of NVIDIA CUDA to install. | string | latest | latest, 12.9, 13.1 | | ||
| | installLibraries | Installs all runtime CUDA Library packages. | boolean | true | true, false | | ||
| | installDevLibraries | Installs all development CUDA Library packages. | boolean | true | true, false | | ||
| | installCompiler | Installs all CUDA compiler packages. | boolean | true | true, false | | ||
| | installTools | Installs all CUDA command line and visual tools. | boolean | true | true, false | | ||
| | additionalCudaPackages | A comma-separated list of additional CUDA packages to install. Disable the other flags to have full control over what is installed. | string | <empty> | | | ||
| | downloadUrl | The download URL to use for CUDA binaries. | string | <empty> | https://mycompany.com/artifactory/nvidia-cuda-generic-remote/ | | ||
|
|
||
| ## Notes | ||
|
|
||
| ### System Compatibility | ||
|
|
||
| > Only amd64 is supported | ||
|
|
||
| Debian, Ubuntu | ||
|
|
||
| ### Accessed URLs | ||
|
|
||
| Needs access to the following URL for downloading and resolving: | ||
| * https://developer.download.nvidia.com | ||
|
|
||
| ### Install the NVIDIA Container Toolkit | ||
|
|
||
| Follow [NVIDIA's instructions to install the NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/overview.html) on your host machine. The NVIDIA Container Toolkit is available on a variety of Linux distributions. Make sure you have [installed the NVIDIA driver](https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/index.html) for your Linux distribution before installing the NVIDIA Container Toolkit. | ||
|
|
||
| ### Package Dependency Tree | ||
|
|
||
| Here is a list of the dependency tree of the packages in case you want to install only some of them. | ||
|
|
||
| cuda-toolkit | ||
| - cuda-compiler | ||
| - cuda-cuobjdump | ||
| - cuda-cuxxfilt | ||
| - cuda-nvcc | ||
| - cuda-nvprune | ||
| - cuda-libraries | ||
| - libnpp | ||
| - cuda-libraries-dev | ||
| - cuda-tools | ||
| - cuda-command-line-tools | ||
| - cuda-nvtx | ||
| - cuda-visual-tools | ||
| - gds-tools | ||
| - cuda-documentation | ||
| - cuda-nvml-dev | ||
|
|
||
| ### NVIDIA cuDNN | ||
|
|
||
| TODO: This is not yet supported | ||
|
|
||
| * libcudnn8 - cuDNN runtime libraries | ||
| * libcudnn8-dev - cuDNN development libraries and headers | ||
| * libcudnn9-cuda-11 - cuDNN runtime libraries for CUDA 11.8 | ||
| * libcudnn9-dev-cuda-11 - cuDNN development headers and symlinks for CUDA 11.8 | ||
| * libcudnn9-cuda-12 - cuDNN runtime libraries for CUDA 12.4 | ||
| * libcudnn9-dev-cuda-12 - cuDNN development headers and symlinks for CUDA 12.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| { | ||
| "id": "nvidia-cuda", | ||
| "version": "0.1.0", | ||
| "name": "NVIDIA CUDA", | ||
| "description": "A package which installs NVIDIA CUDA.", | ||
| "options": { | ||
| "version": { | ||
| "type": "string", | ||
| "proposals": [ | ||
| "latest", | ||
| "12.9", | ||
| "13.1" | ||
| ], | ||
| "default": "latest", | ||
| "description": "The version of NVIDIA CUDA to install." | ||
| }, | ||
| "installLibraries": { | ||
| "type": "boolean", | ||
| "default": true, | ||
| "description": "Installs all runtime CUDA Library packages." | ||
| }, | ||
| "installDevLibraries": { | ||
| "type": "boolean", | ||
| "default": true, | ||
| "description": "Installs all development CUDA Library packages." | ||
| }, | ||
| "installCompiler": { | ||
| "type": "boolean", | ||
| "default": true, | ||
| "description": "Installs all CUDA compiler packages." | ||
| }, | ||
| "installTools": { | ||
| "type": "boolean", | ||
| "default": true, | ||
| "description": "Installs all CUDA command line and visual tools." | ||
| }, | ||
| "additionalCudaPackages": { | ||
| "type": "string", | ||
| "default": "", | ||
| "description": "A comma-separated list of additional CUDA packages to install. Disable the other flags to have full control over what is installed." | ||
| }, | ||
| "downloadUrl": { | ||
| "type": "string", | ||
| "default": "", | ||
| "proposals": [ | ||
| "https://mycompany.com/artifactory/nvidia-cuda-generic-remote/" | ||
| ], | ||
| "description": "The download URL to use for CUDA binaries." | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| . ./functions.sh | ||
|
|
||
| "./installer_$(detect_arch)" \ | ||
| -version="${VERSION:-"latest"}" \ | ||
| -installLibraries="${INSTALLLIBRARIES:-"true"}" \ | ||
| -installDevLibraries="${INSTALLDEVLIBRARIES:-"true"}" \ | ||
| -installCompiler="${INSTALLCOMPILER:-"true"}" \ | ||
| -installTools="${INSTALLTOOLS:-"true"}" \ | ||
| -additionalCudaPackages="${ADDITIONALCUDAPACKAGES:-""}" \ | ||
| -downloadUrl="${DOWNLOADURL:-""}" | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.