-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefinition_runfile.def
25 lines (21 loc) · 1020 Bytes
/
definition_runfile.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
BootStrap: docker
From: julia
%post
echo "updating repositories and installing necessary packages"
apt-get -y update
apt-get -y upgrade
apt-get -y install pciutils gcc wget sudo lsb-base lsb-release software-properties-common
# https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#pre-installation-actions
echo "Preparing to install CUDA drivers"
echo "Beginning pre-installation steps"
echo "Verify if CUDA-Capable GPU is available"
lspci | grep -i nvidia
echo "Verify supported version of Linux is installed"
uname -m && cat /etc/*release
echo "Verify system has gcc installed"
gcc --version
echo "Verify the system has the correct kernel headers and development packages installed"
uname -r
# https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Debian&target_version=12&target_type=deb_local
wget https://developer.download.nvidia.com/compute/cuda/12.5.1/local_installers/cuda_12.5.1_555.42.06_linux.run
# installer is interactive. BAD!