Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Arc iGPUs to the perf list #434

Merged
merged 4 commits into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ on:
push:
branches:
- jellyfin
- jellyfin-7.0
paths-ignore:
- '**/*.md'

pull_request:
branches:
- jellyfin
- jellyfin-7.0
paths-ignore:
- '**/*.md'

Expand Down
8 changes: 5 additions & 3 deletions builder/images/base-linux64/ct-ng-config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
# crosstool-NG 1.26.0.93_a87bf7f Configuration
# crosstool-NG 1.26.0.106_ed12fa6 Configuration
#
CT_CONFIGURE_has_static_link=y
CT_CONFIGURE_has_cxx11=y
Expand Down Expand Up @@ -29,7 +29,7 @@ CT_CONFIGURE_has_sha1sum=y
CT_CONFIGURE_has_sha256sum=y
CT_CONFIGURE_has_sha512sum=y
CT_CONFIGURE_has_install_with_strip_program=y
CT_VERSION="1.26.0.93_a87bf7f"
CT_VERSION="1.26.0.106_ed12fa6"
CT_VCHECK=""
CT_CONFIG_VERSION_ENV="4"
CT_CONFIG_VERSION_CURRENT="4"
Expand Down Expand Up @@ -268,6 +268,7 @@ CT_LINUX_PATCH_GLOBAL=y
# CT_LINUX_PATCH_LOCAL_BUNDLED is not set
# CT_LINUX_PATCH_NONE is not set
CT_LINUX_PATCH_ORDER="global"
# CT_LINUX_V_6_10 is not set
# CT_LINUX_V_6_9 is not set
# CT_LINUX_V_6_8 is not set
# CT_LINUX_V_6_7 is not set
Expand Down Expand Up @@ -462,6 +463,7 @@ CT_GLIBC_PATCH_GLOBAL=y
# CT_GLIBC_PATCH_LOCAL_BUNDLED is not set
# CT_GLIBC_PATCH_NONE is not set
CT_GLIBC_PATCH_ORDER="global"
# CT_GLIBC_V_2_40 is not set
# CT_GLIBC_V_2_39 is not set
# CT_GLIBC_V_2_38 is not set
# CT_GLIBC_V_2_37 is not set
Expand Down Expand Up @@ -614,7 +616,7 @@ CT_GCC_V_14=y
# CT_GCC_V_6 is not set
# CT_GCC_V_5 is not set
# CT_GCC_V_4_9 is not set
CT_GCC_VERSION="14.1.0"
CT_GCC_VERSION="14.2.0"
CT_GCC_MIRRORS="$(CT_Mirrors GNU gcc/gcc-${CT_GCC_VERSION}) $(CT_Mirrors sourceware gcc/releases/gcc-${CT_GCC_VERSION})"
CT_GCC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
CT_GCC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
Expand Down
8 changes: 5 additions & 3 deletions builder/images/base-linuxarm64/ct-ng-config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
# crosstool-NG 1.26.0.93_a87bf7f Configuration
# crosstool-NG 1.26.0.106_ed12fa6 Configuration
#
CT_CONFIGURE_has_static_link=y
CT_CONFIGURE_has_cxx11=y
Expand Down Expand Up @@ -29,7 +29,7 @@ CT_CONFIGURE_has_sha1sum=y
CT_CONFIGURE_has_sha256sum=y
CT_CONFIGURE_has_sha512sum=y
CT_CONFIGURE_has_install_with_strip_program=y
CT_VERSION="1.26.0.93_a87bf7f"
CT_VERSION="1.26.0.106_ed12fa6"
CT_VCHECK=""
CT_CONFIG_VERSION_ENV="4"
CT_CONFIG_VERSION_CURRENT="4"
Expand Down Expand Up @@ -275,6 +275,7 @@ CT_LINUX_PATCH_GLOBAL=y
# CT_LINUX_PATCH_LOCAL_BUNDLED is not set
# CT_LINUX_PATCH_NONE is not set
CT_LINUX_PATCH_ORDER="global"
# CT_LINUX_V_6_10 is not set
# CT_LINUX_V_6_9 is not set
# CT_LINUX_V_6_8 is not set
# CT_LINUX_V_6_7 is not set
Expand Down Expand Up @@ -468,6 +469,7 @@ CT_GLIBC_PATCH_GLOBAL=y
# CT_GLIBC_PATCH_LOCAL_BUNDLED is not set
# CT_GLIBC_PATCH_NONE is not set
CT_GLIBC_PATCH_ORDER="global"
# CT_GLIBC_V_2_40 is not set
# CT_GLIBC_V_2_39 is not set
# CT_GLIBC_V_2_38 is not set
# CT_GLIBC_V_2_37 is not set
Expand Down Expand Up @@ -619,7 +621,7 @@ CT_GCC_V_14=y
# CT_GCC_V_6 is not set
# CT_GCC_V_5 is not set
# CT_GCC_V_4_9 is not set
CT_GCC_VERSION="14.1.0"
CT_GCC_VERSION="14.2.0"
CT_GCC_MIRRORS="$(CT_Mirrors GNU gcc/gcc-${CT_GCC_VERSION}) $(CT_Mirrors sourceware gcc/releases/gcc-${CT_GCC_VERSION})"
CT_GCC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
CT_GCC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
Expand Down
1 change: 0 additions & 1 deletion builder/images/base-win64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ FROM $GH_REPO/base:latest

RUN --mount=src=ct-ng-config,dst=/.config \
git clone --filter=blob:none https://github.com/crosstool-ng/crosstool-ng.git /ct-ng && cd /ct-ng && \
curl "https://github.com/gcc-mirror/gcc/commit/747c4b58573ea00419f64293a61537eb69f43307.patch" > packages/gcc/14.1.0/9999-fix-inline.patch && \
./bootstrap && \
./configure --enable-local && \
make -j$(nproc) && \
Expand Down
6 changes: 3 additions & 3 deletions builder/images/base-win64/ct-ng-config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
# crosstool-NG 1.26.0.93_a87bf7f Configuration
# crosstool-NG 1.26.0.106_ed12fa6 Configuration
#
CT_CONFIGURE_has_static_link=y
CT_CONFIGURE_has_cxx11=y
Expand Down Expand Up @@ -29,7 +29,7 @@ CT_CONFIGURE_has_sha1sum=y
CT_CONFIGURE_has_sha256sum=y
CT_CONFIGURE_has_sha512sum=y
CT_CONFIGURE_has_install_with_strip_program=y
CT_VERSION="1.26.0.93_a87bf7f"
CT_VERSION="1.26.0.106_ed12fa6"
CT_VCHECK=""
CT_CONFIG_VERSION_ENV="4"
CT_CONFIG_VERSION_CURRENT="4"
Expand Down Expand Up @@ -458,7 +458,7 @@ CT_GCC_V_14=y
# CT_GCC_V_6 is not set
# CT_GCC_V_5 is not set
# CT_GCC_V_4_9 is not set
CT_GCC_VERSION="14.1.0"
CT_GCC_VERSION="14.2.0"
CT_GCC_MIRRORS="$(CT_Mirrors GNU gcc/gcc-${CT_GCC_VERSION}) $(CT_Mirrors sourceware gcc/releases/gcc-${CT_GCC_VERSION})"
CT_GCC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
CT_GCC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
Expand Down
4 changes: 2 additions & 2 deletions builder/scripts.d/50-libvpl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ ffbuild_dockerbuild() {

cmake -GNinja -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
-DCMAKE_INSTALL_BINDIR="$FFBUILD_PREFIX"/bin -DCMAKE_INSTALL_LIBDIR="$FFBUILD_PREFIX"/lib \
-DBUILD_DISPATCHER=ON -DBUILD_DEV=ON \
-DBUILD_PREVIEW=OFF -DBUILD_TOOLS=OFF -DBUILD_TOOLS_ONEVPL_EXPERIMENTAL=OFF -DINSTALL_EXAMPLE_CODE=OFF \
-DINSTALL_DEV=ON -DINSTALL_LIB=ON \
-DBUILD_EXAMPLES=OFF -DBUILD_EXPERIMENTAL=OFF \
-DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF ..

ninja -j$(nproc)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ Index: FFmpeg/libavfilter/vf_tonemap_opencl.c
+ if (max_compute_units >= 40)
+ ctx->tradeoff = 0;
+ if (device_name = check_opencl_device_str(ctx->ocf.hwctx->device_id, CL_DEVICE_NAME)) {
+ const char *excluded_devices[4] = { "Iris", "Xe", "770", "750" };
+ const char *excluded_devices[5] = { "Arc", "Iris", "Xe", "770", "750" };
+ for (i = 0; i < FF_ARRAY_ELEMS(excluded_devices); i++) {
+ if (strstr(device_name, excluded_devices[i])) {
+ ctx->tradeoff = 0;
Expand Down
6 changes: 2 additions & 4 deletions docker-build-win64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,8 @@ cmake \
-DCMAKE_INSTALL_LIBDIR=${FF_DEPS_PREFIX}/lib \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_{DISPATCHER,DEV}=ON \
-DBUILD_{PREVIEW,TESTS}=OFF \
-DBUILD_TOOLS{,_ONEVPL_EXPERIMENTAL}=OFF \
-DINSTALL_EXAMPLE_CODE=OFF \
-DINSTALL_{DEV,LIB}=ON \
-DBUILD_{TESTS,EXAMPLES,EXPERIMENTAL}=OFF \
..
make -j$(nproc)
make install
Expand Down
14 changes: 7 additions & 7 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ prepare_extra_amd64() {

# GMMLIB
pushd ${SOURCE_DIR}
git clone -b intel-gmmlib-22.4.1 --depth=1 https://github.com/intel/gmmlib.git
git clone -b intel-gmmlib-22.5.0 --depth=1 https://github.com/intel/gmmlib.git
pushd gmmlib
mkdir build && pushd build
cmake -DCMAKE_INSTALL_PREFIX=${TARGET_DIR} ..
Expand All @@ -399,6 +399,8 @@ prepare_extra_amd64() {
pushd MediaSDK
# fix build in gcc 13
wget -q -O - https://github.com/Intel-Media-SDK/MediaSDK/commit/8fb9f5f.patch | git apply
# fix ADI issue with VPL patch
wget -q -O - https://github.com/intel/vpl-gpu-rt/commit/e025c82.patch | git apply
sed -i 's|MFX_PLUGINS_CONF_DIR "/plugins.cfg"|"/usr/lib/jellyfin-ffmpeg/lib/mfx/plugins.cfg"|g' api/mfx_dispatch/linux/mfxloader.cpp
mkdir build && pushd build
cmake -DCMAKE_INSTALL_PREFIX=${TARGET_DIR} \
Expand All @@ -425,10 +427,8 @@ prepare_extra_amd64() {
-DCMAKE_INSTALL_LIBDIR=${TARGET_DIR}/lib \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_{DISPATCHER,DEV}=ON \
-DBUILD_{PREVIEW,TESTS}=OFF \
-DBUILD_TOOLS{,_ONEVPL_EXPERIMENTAL}=OFF \
-DINSTALL_EXAMPLE_CODE=OFF \
-DINSTALL_{DEV,LIB}=ON \
-DBUILD_{TESTS,EXAMPLES,EXPERIMENTAL}=OFF \
..
make -j$(nproc) && make install && make install DESTDIR=${SOURCE_DIR}/intel
echo "intel${TARGET_DIR}/lib/libvpl.so* usr/lib/jellyfin-ffmpeg/lib" >> ${DPKG_INSTALL_LIST}
Expand All @@ -439,7 +439,7 @@ prepare_extra_amd64() {
# VPL-GPU-RT (RT only)
# Provides VPL runtime (libmfx-gen.so.1.2) for 11th Gen Tiger Lake and newer
pushd ${SOURCE_DIR}
git clone -b intel-onevpl-24.2.5 --depth=1 https://github.com/intel/vpl-gpu-rt.git
git clone -b intel-onevpl-24.3.1 --depth=1 https://github.com/intel/vpl-gpu-rt.git
pushd vpl-gpu-rt
mkdir build && pushd build
cmake -DCMAKE_INSTALL_PREFIX=${TARGET_DIR} \
Expand All @@ -459,7 +459,7 @@ prepare_extra_amd64() {
# Full Feature Build: ENABLE_KERNELS=ON(Default) ENABLE_NONFREE_KERNELS=ON(Default)
# Free Kernel Build: ENABLE_KERNELS=ON ENABLE_NONFREE_KERNELS=OFF
pushd ${SOURCE_DIR}
git clone -b intel-media-24.2.5 --depth=1 https://github.com/intel/media-driver.git
git clone -b intel-media-24.3.1 --depth=1 https://github.com/intel/media-driver.git
pushd media-driver
mkdir build && pushd build
cmake -DCMAKE_INSTALL_PREFIX=${TARGET_DIR} \
Expand Down
6 changes: 2 additions & 4 deletions msys2/PKGBUILD/50-mingw-w64-libvpl/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,8 @@ build() {
-DCMAKE_INSTALL_PREFIX="${FF_MINGW_PREFIX}" \
"${extra_config[@]}" \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_{DISPATCHER,DEV}=ON \
-DBUILD_{PREVIEW,TESTS}=OFF \
-DBUILD_TOOLS{,_ONEVPL_EXPERIMENTAL}=OFF \
-DINSTALL_EXAMPLE_CODE=OFF \
-DINSTALL_{DEV,LIB}=ON \
-DBUILD_{TESTS,EXAMPLES,EXPERIMENTAL}=OFF \
../libvpl-${pkgver}

"${MINGW_TOOLCHAIN_PREFIX}"/bin/cmake.exe --build .
Expand Down
Loading