Skip to content

Commit c0e88d6

Browse files
committed
Add legacy1 debs support
1 parent e5bcb2d commit c0e88d6

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@ RUN \
1010
if [ -z "${MOD_VERSION}" ]; then \
1111
MOD_VERSION=$(curl -sX GET "https://api.github.com/repos/intel/compute-runtime/releases/latest" | jq -r '.tag_name'); \
1212
fi && \
13+
COMP_RT_URLS_LEGACY1=$(curl -sX GET "https://api.github.com/repos/intel/compute-runtime/releases/tags/24.35.30872.22" | jq -r '.body' | grep wget | grep legacy1 | grep -v .sum | grep -v .ddeb | sed 's|wget ||g') && \
14+
echo "**** grab legacy1 debs ****" && \
15+
mkdir -p /root-layer/opencl-intel-legacy1 && \
16+
for i in $COMP_RT_URLS_LEGACY1; do \
17+
echo "**** downloading ${i%$'\r'} ****" && \
18+
curl -fS --retry 3 --retry-connrefused -o \
19+
/root-layer/opencl-intel-legacy1/$(basename "${i%$'\r'}") -L \
20+
"${i%$'\r'}" || exit 1; \
21+
done && \
1322
COMP_RT_URLS=$(curl -sX GET "https://api.github.com/repos/intel/compute-runtime/releases/tags/${MOD_VERSION}" | jq -r '.body' | grep wget | grep -v .sum | grep -v .ddeb | sed 's|wget ||g') && \
14-
echo "**** grab debs ****" && \
23+
echo "**** grab latest debs ****" && \
1524
mkdir -p /root-layer/opencl-intel && \
1625
for i in $COMP_RT_URLS; do \
1726
echo "**** downloading ${i%$'\r'} ****" && \

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,3 @@ This mod adds opencl-intel to jellyfin, to be installed/updated during container
55
In jellyfin docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel`
66

77
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel|linuxserver/mods:jellyfin-mod2`
8-
9-
If your system is equipped with an older CPU, you will need to pin the Opencl-Intel mod to a specific version. Intel has deprecated support for "legacy" CPUs with pre-Tigerlake GPUs. This includes desktop CPUs prior to Rocketlake, laptop CPUs prior to Tigerlake, and low power CPUs prior to Alderlake-N. If you are unsure which CPU family you have, if your iGPU model number is in the 500 and 600 range, you have a "legacy" Intel CPU.
10-
11-
For legacy CPUs, you must pin the Opencl-Intel mod to version 24.35.30872.22. Versions newer than this will cause tone mapping in Jellyfin to fail due to the openCL runtime not supporting your legacy CPU. Appending the environment variable with the version number will install that specific version. `DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel-24.35.30872.22`

root/etc/s6-overlay/s6-rc.d/init-mod-jellyfin-opencl-intel-add-package/run

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ if [ $(uname -m) != "x86_64" ]; then
1111
exit 0
1212
fi
1313

14+
if [ -d /opencl-intel-legacy ]; then
15+
echo "**** Installing/updating opencl-intel legacy1 debs and adding clinfo to package install list ****"
16+
dpkg -i /opencl-intel-legacy/*.deb
17+
rm -rf /opencl-intel-legacy
18+
echo "clinfo" >> /mod-repo-packages-to-install.list
19+
else
20+
echo "**** Opencl-intel already installed ****"
21+
fi
22+
1423
if [ -d /opencl-intel ]; then
1524
echo "**** Installing/updating opencl-intel debs and adding clinfo to package install list ****"
1625
dpkg -i /opencl-intel/*.deb

0 commit comments

Comments
 (0)