Cuda tools sdk




















Y and cuda-X. They are used to install many CUDA packages when you may not know the details of the packages you want. Below is the list of meta packages. Choose one of the four options below depending on the desired driver:.

This section describes the installation and configuration of CUDA when using the standalone installer. The standalone installer is a ". The installation steps are listed below. Distribution-specific instructions on disabling the Nouveau drivers as well as steps for verifying device node creation are also provided. Finally, advanced options for the installer and uninstallation steps are detailed below.

The Runfile installation does not include support for cross-platform development. Disable the Nouveau drivers. This can usually be accomplished by adding the number "3" to the end of the system's kernel boot parameters.

Temporarily adding "nomodeset" to the system's kernel boot parameters may fix this issue. Consult your system's bootloader documentation for information on how to make the above boot parameter changes. The reboot is required to completely unload the Nouveau drivers and prevent the graphical interface from loading. The CUDA driver cannot be installed while the Nouveau drivers are loaded or while the graphical interface is active.

Verify that the Nouveau drivers are not loaded. If the Nouveau drivers are still loaded, consult your distribution's documentation to see if further steps are needed to disable Nouveau. The installer must be executed with sufficient privileges to perform some actions. When the current privileges are insufficient to perform an action, the installer will ask for the user's password to attempt to install with root privileges.

Actions that cause the installer to attempt to install with root privileges are:. Running the installer with sudo , as shown above, will give permission to install to directories that require root permissions.

Directories and files created while running the installer with sudo will have root ownership. If installing the driver, the installer will also ask if the openGL libraries should be installed.

If performing a silent installation, the --no-opengl-libs option should be used to prevent the openGL libraries from being installed. See the Advanced Options section for more details. In some cases, nvidia-xconfig can be used to automatically generate a xorg. For non-standard systems, such as those with more than one GPU, it is recommended to manually edit the xorg.

Consult the xorg. Verify the device nodes are created properly. Perform the post-installation actions. To install the Display Driver, the Nouveau drivers must first be disabled. Each distribution of Linux has a different method for disabling Nouveau.

However, some systems disallow setuid binaries, so if these files do not exist, you can create them manually by using a startup script such as the one below:. This is especially useful when one wants to install the driver using one or more of the command-line options provided by the driver installer which are not exposed in this installer.

To install a previous version, include that label in the install command such as:. Some CUDA releases do not move to new versions of all installable components. When this is the case these components will be moved to the new label, and you may need to modify the install command to include both labels such as:. These packages are intended for runtime use and do not currently include developer tools these can be installed separately.

Please note that with this installation method, CUDA installation environment is managed via pip and additional care must be taken to set up your host environment to use CUDA outside the pip environment. The following metapackages will install the latest version of the named component on Linux for the indicated CUDA version.

However this standardized approach will replace existing. Instructions for developers using CMake and Bazel build systems are provided in the next sections. For example CMakeLists. Cross-platform development is only supported on Ubuntu systems, and is only provided via the Package Manager installation process. We recommend selecting Ubuntu Some of the following steps may have already been performed as part of the native Ubuntu installation. Such steps can safely be skipped.

The post-installation actions must be manually performed. These actions are split into mandatory, recommended, and optional sections. When using. Note that the above paths change when using a custom install path with the runfile installation method. These additional steps are not handled by the installation of CUDA packages, and failure to ensure these extra requirements are met will result in a non-functional CUDA driver installation.

Disable a udev rule installed by default in some Linux distributions that cause hot-pluggable memory to be automatically onlined when it is physically probed. You will need to reboot the system to initialize the above changes.

Other actions are recommended to verify the integrity of the installation. The daemon approach provides a more elegant and robust solution to this problem than persistence mode.

If you installed the driver, verify that the correct version of it is loaded. If you did not install the driver, or are using an operating system where the driver is not loaded via a kernel module, such as L4T, skip this step. If the CUDA software is installed and configured correctly, the output for deviceQuery should look similar to that shown in Figure 1. The exact appearance and the output lines might be different on your system.

The important outcomes are that a device was found the first highlighted line , that the device matches the one on your system the second highlighted line , and that the test passed the final highlighted line.

Running the bandwidthTest program ensures that the system and the CUDA-capable device are able to communicate correctly. Its output is shown in Figure 2. Note that the measurements for your CUDA-capable device description will vary from system to system. The important point is that you obtain measurements, and that the second-to-last line in Figure 2 confirms that all necessary tests passed. Other options are not necessary to use the CUDA Toolkit, but are available to provide additional features.

Some CUDA samples use third-party libraries which may not be installed by default on your system. These samples attempt to detect any required libraries when building.

If a library is not detected, it waives itself and warns you which library is missing. To build and run these samples, you must install the missing libraries. These dependencies may be installed if the RPM or Deb cuda-samples- 11 - 6 package is used. In cases where these dependencies are not installed, follow the instructions below. The cuda-gdb source must be explicitly selected for installation with the runfile installation method. It is unchecked by default.

To obtain a copy of the source code for cuda-gdb using the RPM and Debian installation methods, the cuda-gdb-src package must be installed. Below is information on some advanced setup scenarios which are not covered in the basic instructions above. Follow the instructions here to ensure that Nouveau is disabled.

If performing an upgrade over a previous installation, the NVIDIA kernel module may need to be rebuilt by following the instructions here. This functionality isn't supported on Ubuntu. Instead, the driver packages integrate with the Bumblebee framework to provide a solution for users who wish to control what applications the NVIDIA drivers are used for. See Ubuntu's Bumblebee wiki for more information.

Follow the instructions here to continue installation as normal. The RPM packages don't support custom install locations through the package managers Yum and Zypper , but it is possible to install the RPM packages to a custom location using rpm's --relocate parameter:.

You will need to install the packages in the correct dependency order; this task is normally taken care of by the package managers. For example, if package "foo" has a dependency on package "bar", you should install package "bar" first, and package "foo" second. You can check the dependencies of a RPM package as follows:. The Deb packages do not support custom install locations. It is however possible to extract the contents of the Deb packages and move the files to the desired install location.

See the next scenario for more details one xtracting Deb packages. The Runfile can be extracted into the standalone Toolkit and Driver Runfiles by using the --extract parameter. The Toolkit standalone Runfiles can be further extracted by running:. Modify Ubuntu's apt package manager to query specific architectures for specific repositories. This is useful when a foreign architecture has been added, causing " Not Found" errors to appear when the repository meta-data is updated.

Each repository you wish to restrict to specific architectures must have its sources. For more details, see the sources. The nvidia. Check to see if there are any optionally installable modules that might provide these symbols which are not currently installed.

For instance, on Ubuntu This package is optional even though the kernel headers reflect the availability of DRM regardless of whether this package is installed or not.

The runfile installer fails to extract due to limited space in the TMP directory. In this case, the --tmpdir command-line option should be used to instruct the runfile to use a directory with sufficient space to extract into.

More information on this option can be found here. This can occur when installing CUDA after uninstalling a different version.

Use the following command before installation:. The RPM and Deb packages cannot be installed to a custom install location directly using the package managers. These errors occur after adding a foreign architecture because apt is attempting to query for each architecture within each repository listed in the system's sources. Repositories that do not host packages for the newly added architecture will present this error.

While noisy, the error itself does no harm. Please see the Advanced Setup section for details on how to modify your sources. For more information, please refer to the "Use a specific GPU for rendering the display" scenario in the Advanced Setup section.

See the Package Manager Installation section for more details. System updates may include an updated Linux kernel. In many cases, a new Linux kernel will be installed without properly updating the required Linux kernel headers and development packages. To ensure the CUDA driver continues to work when performing a system update, rerun the commands in the Kernel Headers and Development Packages section. To install a CUDA driver at a version earlier than using a network repo, the required packages will need to be explicitly installed at the desired version.

For example, to install Depending on your system configuration, you may not be able to install old versions of CUDA using the cuda metapackage. In order to install a specific version of CUDA, you may need to specify all of the packages that would normally be installed by the cuda metapackage at the version you want to install.

If you are using yum to install certain packages at an older version, the dependencies may not resolve as expected. These steps will ensure that the uninstallation will be clean. This document is provided for information purposes only and shall not be regarded as a warranty of a certain functionality, condition, or quality of a product.

NVIDIA shall have no liability for the consequences or use of such information or for any infringement of patents or other rights of third parties that may result from its use. This document is not a commitment to develop, release, or deliver any Material defined below , code, or functionality.

NVIDIA reserves the right to make corrections, modifications, enhancements, improvements, and any other changes to this document, at any time without notice. Customer should obtain the latest relevant information before placing orders and should verify that such information is current and complete. No contractual obligations are formed either directly or indirectly by this document. NVIDIA products are not designed, authorized, or warranted to be suitable for use in medical, military, aircraft, space, or life support equipment, nor in applications where failure or malfunction of the NVIDIA product can reasonably be expected to result in personal injury, death, or property or environmental damage.

NVIDIA makes no representation or warranty that products based on this document will be suitable for any specified use. NVIDIA accepts no liability related to any default, damage, costs, or problem which may be based on or attributable to: i the use of the NVIDIA product in any manner that is contrary to this document or ii customer product designs. Use of such information may require a license from a third party under the patents or other intellectual property rights of the third party, or a license from NVIDIA under the patents or other intellectual property rights of NVIDIA.

Reproduction of information in this document is permissible only if approved in advance by NVIDIA in writing, reproduced without alteration and in full compliance with all applicable export laws and regulations, and accompanied by all associated conditions, limitations, and notices.

Other company and product names may be trademarks of the respective companies with which they are associated. All rights reserved. CUDA Toolkit v Installation Guide Linux. Verify the System Has gcc Installed.

Choose an Installation Method. Handle Conflicting Installation Methods. Package Manager Installation. Additional Package Manager Capabilities. Precompiled Streams Support Matrix. Tarball and Zip Archive Deliverables. Importing Tarballs into CMake. Importing Tarballs into Bazel. Post-installation Actions. Install Persistence Daemon. Install Nsight Eclipse Plugins. Install Third-party Libraries. Install the Source Code for cuda-gdb.

Additional Considerations. CUDA was developed with several design goals in mind: Provide a small set of extensions to standard programming languages, like C, that enable a straightforward implementation of parallel algorithms. As such, CUDA can be incrementally applied to existing applications.

These cores have shared resources including a register file and a shared memory. The on-chip shared memory allows parallel tasks running on these cores to share data without sending it over the system memory bus. Table 1. About This Document This document is intended for readers familiar with the Linux environment and the compilation of C programs from the command line.

Note: Many commands in this document might require superuser privileges. On most distributions of Linux, this will require you to log in as root. For systems that have enabled the sudo package, use the sudo prefix for all necessary commands. Verify the system is running a supported version of Linux. Verify the system has gcc installed.

Verify the system has the correct kernel headers and development packages installed. Handle conflicting installation methods. Note: You can override the install-time prerequisite checks by running the installer with the -override flag.

To verify the version of gcc installed on your system, type the following on the command line: gcc --version If an error message displays, you need to install the development tools from your Linux distribution or obtain a version of gcc and its accompanying toolchain from the Web.

Verify the System has the Correct Kernel Headers and Development Packages Installed The CUDA Driver requires that the kernel headers and development packages for the running version of the kernel be installed at the time of the driver installation, as well whenever the driver is rebuilt. The version of the kernel your system is running can be found by running the following command: uname -r This is the version of the kernel headers and development packages that must be installed prior to installing the CUDA Drivers.

This command will be used multiple times below to specify the version of the packages to install. Note that below are the common-case scenarios for kernel usage. More advanced cases, such as custom kernel branches, should ensure that their kernel headers and sources match the kernel build they are running. Note: If you perform a system update which changes the version of the linux kernel being used, make sure to rerun the commands below to ensure you have the correct kernel headers and kernel development packages installed.

Choose an Installation Method The CUDA Toolkit can be installed using either of two different installation mechanisms: distribution-specific packages RPM and Deb packages , or a distribution-independent package runfile packages. For both native as well as cross development, the toolkit must be installed using the distribution-specific installer.

Table 2. Y Installed Toolkit Version! Table 3. Y Installed Driver Version! Overview The Package Manager installation interfaces with your system's package management system.

Please use cuda-compiler instead. Fedora Perform the pre-installation actions. Asked 6 years, 11 months ago. Active 6 years, 11 months ago. Viewed 13k times. It not longer exists. Add a comment.

Active Oldest Votes. CUDA Toolkit is a software package that has different components. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses.

Featured on Meta.



0コメント

  • 1000 / 1000