Also installs the following, additional packages: - libcuda1 - libnvcuvid1 - mesa-va-drivers
This commit is contained in:
parent
c2baf2ae5a
commit
7f32ff46e8
1 changed files with 7 additions and 3 deletions
10
scripts/dist/install-gpu.sh
vendored
10
scripts/dist/install-gpu.sh
vendored
|
@ -27,18 +27,22 @@ apt-get -qq install lshw jq
|
|||
# shellcheck disable=SC2207
|
||||
GPU_DETECTED=($(lshw -c display -json 2>/dev/null | jq -r '.[].configuration.driver'))
|
||||
|
||||
echo "GPU detected: ${GPU_DETECTED[*]}"
|
||||
|
||||
# shellcheck disable=SC2068
|
||||
for t in ${GPU_DETECTED[@]}; do
|
||||
case $t in
|
||||
i915)
|
||||
apt-get -qq install intel-opencl-icd intel-media-va-driver-non-free i965-va-driver-shaders libmfx1 libva2 vainfo libva-wayland2
|
||||
echo "Installing Intel Drivers..."
|
||||
apt-get -qq install intel-opencl-icd intel-media-va-driver-non-free i965-va-driver-shaders mesa-va-drivers libmfx1 libva2 vainfo libva-wayland2
|
||||
;;
|
||||
|
||||
nvidia)
|
||||
apt-get -qq install nvidia-opencl-icd nvidia-vdpau-driver nvidia-driver-libs nvidia-kernel-dkms libva2 vainfo libva-wayland2 libnvidia-encode1
|
||||
echo "Installing Nvidia Drivers..."
|
||||
apt-get -qq install libcuda1 libnvcuvid1 libnvidia-encode1 nvidia-opencl-icd nvidia-vdpau-driver nvidia-driver-libs nvidia-kernel-dkms libva2 vainfo libva-wayland2
|
||||
;;
|
||||
|
||||
null)
|
||||
"null")
|
||||
# ignore
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue