-
Notifications
You must be signed in to change notification settings - Fork 11
/
dep-intel.sh
executable file
·24 lines (17 loc) · 899 Bytes
/
dep-intel.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -xeuo pipefail # Make my life easier
# :warning: This script is only needed for those would like to use Intel/OpenVINO ONNX execution provider.
# Variables
TEMP_DIR=/tmp/immich-intel
mkdir $TEMP_DIR
cd $TEMP_DIR
# Copied from immich/machine-learning/Dockerfile line 41
apt-get install --no-install-recommends -yqq ocl-icd-libopencl1 wget
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17384.11/intel-igc-core_1.0.17384.11_amd64.deb
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17384.11/intel-igc-opencl_1.0.17384.11_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/24.31.30508.7/intel-opencl-icd_24.31.30508.7_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/24.31.30508.7/libigdgmm12_22.4.1_amd64.deb
dpkg -i *.deb
# Clean up
rm -r $TEMP_DIR
echo "All Good"