46 lines
2.5 KiB
Bash
Executable File
46 lines
2.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# http://developer.download.nvidia.com/compute/DevZone/docs/html/C/doc/CUDA_C_Getting_Started_Linux.pdf
|
|
|
|
# https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#package-manager-metas
|
|
|
|
# http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1704/x86_64/
|
|
|
|
# Meta Package Purpose
|
|
# cuda Installs all CUDA Toolkit and Driver packages. Handles upgrading to the next version of the cuda package when it's released.
|
|
# cuda-9-1 Installs all CUDA Toolkit and Driver packages. Remains at version 9.1 until an additional version of CUDA is installed.
|
|
# cuda-toolkit-9-1 Installs all CUDA Toolkit packages required to develop CUDA applications. Does not include the driver.
|
|
# cuda-tools-9-1 Installs all CUDA command line and visual tools.
|
|
# cuda-runtime-9-1 Installs all CUDA Toolkit packages required to run CUDA applications, as well as the Driver packages.
|
|
# cuda-compiler-9-1 Installs all CUDA compiler packages.
|
|
# cuda-libraries-9-1 Installs all runtime CUDA Library packages.
|
|
# cuda-libraries-dev-9-1 Installs all development CUDA Library packages.
|
|
# cuda-drivers Installs all Driver packages. Handles upgrading to the next version of the Driver packages when they're released.
|
|
|
|
#curl http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1704/x86_64/cuda-repo-ubuntu1704_9.1.85-1_amd64.deb | dpkg -i -
|
|
|
|
# Ubuntu
|
|
#echo '#sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1704/x86_64/7fa2af80.pub' > /etc/apt/sources.list-available/cuda.list
|
|
#echo 'deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1704/x86_64 /' >> /etc/apt/sources.list-available/cuda.list
|
|
#ln -s /etc/apt/sources.list-available/cuda.list /etc/apt/sources.list.d/cuda.list
|
|
#
|
|
#sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1704/x86_64/7fa2af80.pub
|
|
#sudo apt update
|
|
#sudo apt install -y cuda
|
|
|
|
# debian
|
|
apt install -y \
|
|
nvidia-cuda-toolkit \
|
|
nvidia-cuda-mps \
|
|
nvidia-visual-profiler \
|
|
nvidia-cuda-dev
|
|
|
|
# nvidia-legacy-340xx-kernel-dkms
|
|
# nvidia-legacy-340xx-driver \
|
|
# xserver-xorg-video-nvidia-legacy-340xx
|
|
# libnvidia-legacy-304xx-cuda1 - NVIDIA CUDA Driver Library (304xx legacy version)
|
|
# libnvidia-legacy-304xx-nvcuvid1 - NVIDIA CUDA Video Decoder runtime library (304xx legacy version)
|
|
# libnvidia-legacy-340xx-cuda1 - NVIDIA CUDA Driver Library (340xx legacy version)
|
|
# libnvidia-legacy-340xx-nvcuvid1 - NVIDIA CUDA Video Decoder runtime library (340xx legacy version)
|
|
|
|
|