Content is empty
If you don't find the content you expect, please try another search term
Last updated:2020-12-18 10:54:36
Compute Unified Device Architecture (CUDA) is a general-purpose parallel computing architecture developed by NVIDIA. CUDA™ enables GPUs to perform complicated calculations. CUDA™ contains the CUDA instruction set architecture (ISA) and a GPU internal parallel computing engine. Developers can write programs for CUDA™ in C, C++, and Fortran. The programs can run with excellent performance on processors that support CUDA™. Kingsoft Cloud GPU Elastic Compute (GEC) uses NVIDIA graphics cards and requires you to install the development and runtime environment of CUDA.
You can download the CUDA installation script provided by Kingsoft Cloud to install CUDA. You can also download the CUDA driver from the NVIDIA official website.
You only need to install the GPU driver on instances that are equipped with NVIDIA GPUs. Only GEC instances without vGPU support the GPU driver. The installation script installs the latest GPU driver of NVIDIA on standard images. The following images are supported:
The following procedure describes how to install CUDA in Ubuntu 16.0.4:
Log in to the GEC instance and enable administrator privileges.
sudo -i
rz
In the upload dialog box that appears, select the script and upload it. Now the script has been uploaded to the current directory.
After the script is uploaded, click Close.
sh auto_install_kingsoft.sh
The following procedure describes how to install CUDA in Ubuntu 16.0.4:
Log in to the GEC instance. Download the CUDA driver or open the link https://developer.nvidia.com/cuda-downloads.
Select the CUDA installation package for your operating system. In this example, select an installer type for Ubuntu 16.0.4 64-bit.
Note:
Click Download and select a directory to store the CUDA installation package.
Go to the directory where the CUDA installation package is stored and run the following command:
sudo sh cuda_9.1.85_387.26_linux.run
Type accept and yes, and press enter as prompted.
Note:
If the following command output is returned, the CUDA installation package contains the driver, toolkit, and samples but only the driver is installed:
Driver: Installed require reboot
Toolkit: install skip
Samples: install skip
In this case, run the following command again to reinstall CUDA:
sudo sh cuda_9.1.85_387.26_linux.run
If the following command output is returned, CUDA is installed:
Driver: Installed
Toolkit: Installed in /usr/local/cuda
Samples: Installed in /home/XX
Run the make command in the /usr/local/cuda/samples/1_Utilities/deviceQuery directory to compile the deviceQuery program. If the device information shown in the following figure is displayed after you run the deviceQuery program, CUDA is installed correctly.
Pure Mode