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

Add a requirement for CUDA toolkit for CUDA 12 builds #4588

Merged
merged 5 commits into from
Mar 21, 2023

Conversation

klecki
Copy link
Contributor

@klecki klecki commented Jan 19, 2023

Category: Other

Description:

Improve the documentation by linking to the CUDA toolkit installation instruction while mentioning it is required for CUDA 12-based builds.

Additional information:

Affected modules and functionalities:

docs/installation

Key points relevant for the review:

Better wording?

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

@klecki
Copy link
Contributor Author

klecki commented Jan 19, 2023

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [7055526]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [7055526]: BUILD PASSED


pip install --extra-index-url https://developer.download.nvidia.com/compute/redist --upgrade nvidia-dali-cuda110
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist --upgrade nvidia-dali-cuda120
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about putting the information about necessary CUDA install also here?
image
So that when somebody goes to the README, pastes these instructions in "installing DALI", it works?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have some wording to suggest? I think the problem is, that the CUDA toolkit may be installed in several different ways depending on the system and you shouldn't mix those if you already used one of installation paths already.
Especially if you have toolkit, you don't want to repeat the install by copy-pasting it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, right now user needs to know, that he needs to install CUDA first and then DALI. Anything that would suffice it works.

How about something along these lines:

A first step to installing DALI is to install CUDA toolkit. There are many possible ways of installing it, e.g.:
1. [Using `pip install`](https://nvidia.github.io/cuda-python/install.html#installing-from-pypi): `pip install cuda-python`
1. [Using runfile](https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=22.04&target_type=runfile_local) 
1. [Installing from conda](https://nvidia.github.io/cuda-python/install.html#installing-from-conda)

If the CUDA has been installed previously, it is not necessary to reinstall using any of these methods.

To install the latest DALI release [...]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is already in requirements, linked to the CUDA Toolkit installation guide https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html
which covers the topic extensively. I don't think it is good idea to copy a small subset of this page here.
Typically users working on DL will already have the CUDA installed for the purposes of the framework.
We don't specify how to install any of the frameworks or the driver either.

klecki and others added 2 commits March 20, 2023 18:25
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
@klecki
Copy link
Contributor Author

klecki commented Mar 20, 2023

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [7650371]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [7650371]: BUILD PASSED

@klecki klecki merged commit c62e712 into NVIDIA:main Mar 21, 2023
@klecki klecki deleted the install-toolkit branch March 21, 2023 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants