HW acceleration of intel igp broken after latest upgrade

Version 1.26.1.5772

Am currently on Version 1.26.1.5762 which currently displays and utilizes HW acceleration of an IGP from a 7700K system. After performing the upgrade it displayed that it could not find the libraries and didn’t enable HW acceleration. I rolled back and all is good again.

I am running an Ubuntu 21.10 server implementation with little customization.

1 Like

Might be worth posting this in Testing → Plex Pass Betas section

Which libraries did it complain about please?

Do you have a log file (DEBUG logging) which captures the playback attempt?

Below is a capture of the install showing the issue. When I rollback to 5762 it finds the libraries. As I do not leave the new version in, there is no attempt at playback with that version.

root@nasserver:/home/nas# apt install ./plexmediaserver_1.26.1.5772-872b93b91_amd64.deb
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Note, selecting ‘plexmediaserver’ instead of ‘./plexmediaserver_1.26.1.5772-872b93b91_amd64.deb’
The following packages will be upgraded:
plexmediaserver
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/78.7 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /home/nas/plexmediaserver_1.26.1.5772-872b93b91_amd64.deb plexmediaserver amd64 1.26.1.5772-872b93b91 [78.7 MB]
(Reading database … 200139 files and directories currently installed.)
Preparing to unpack …/plexmediaserver_1.26.1.5772-872b93b91_amd64.deb …
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.26.1.5772-872b93b91) over (1.26.1.5762-912e6f050) …
Setting up plexmediaserver (1.26.1.5772-872b93b91) …
PlexMediaServer install: PlexMediaServer-1.26.1.5772-872b93b91 - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install: Installation Type: Update
PlexMediaServer install: Process Control: systemd
PlexMediaServer install: Plex User: plex
PlexMediaServer install: Plex Group: plex
PlexMediaServer install: Video Group: render
PlexMediaServer install: Metadata Dir: /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install: Temp Directory: /dev/shm (set in Preferences.xml)
PlexMediaServer install: Lang Encoding: en_US.UTF-8
PlexMediaServer install: Intel i915 Hardware: Found
PlexMediaServer install: Nvidia GPU card: Not Found
PlexMediaServer install:
PlexMediaServer install: OpenCL: Installed
PlexMediaServer install: Intel Gmmlib: Not Installed
PlexMediaServer install: Intel IGC Core: Not Installed
PlexMediaServer install: Intel IGC OpenCL: Not Installed
PlexMediaServer install: Intel OpenCL: Not Installed
PlexMediaServer install:
PlexMediaServer install: WARNING: The Intel GMM library, required for Intel Compute Runtime support, is missing.
PlexMediaServer install: Please install package: ‘intel-gmmlib’ from https://github.com/intel/compute-runtime/r
eleases/download/21.49.21786/intel-gmmlib_21.3.3_amd64.deb
PlexMediaServer install:
PlexMediaServer install: WARNING: The Intel IGC Core, required for Intel Compute Runtime support, is missing.
PlexMediaServer install: Please install package: ‘intel-igc-core’ from https://github.com/intel/intel-graphics-
compiler/releases/download/igc-1.0.9441/intel-igc-core_1.0.9441_amd64.deb
PlexMediaServer install:
PlexMediaServer install: WARNING: The Intel IGC OpenCL library, required for Intel Compute Runtime support, is missing.
PlexMediaServer install: Please install package: ‘intel-igc-opencl’ from https://github.com/intel/intel-graphi
cs-compiler/releases/download/igc-1.0.9441/intel-igc-opencl_1.0.9441_amd64.deb
PlexMediaServer install:
PlexMediaServer install: WARNING: The Intel OpenCL library, required for Intel Compute Runtime support, is missing.
PlexMediaServer install: Please install package: ‘intel-opencl’ from GitHub - intel/compute-runtime: Intel® Graphics Compute Runtime for oneAPI Level Zero and OpenCL™ Driver
releases/download/21.49.21786/intel-opencl-icd_21.49.21786_amd64.deb
PlexMediaServer install: Intel Compute Runtime packages are available from: https://github.com/intel/compute-runtime/re
leases
PlexMediaServer install: Please be certain to install them in the listed order.
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: PlexMediaServer-1.26.1.5772-872b93b91 - Installation successful. Errors: 0, Warnings: 4
Processing triggers for desktop-file-utils (0.26-1ubuntu2) …
Processing triggers for gnome-menus (3.36.0-1ubuntu1) …
Processing triggers for mailcap (3.69ubuntu1) …

Thanks for sharing that.

Even though these warnings are printed, do you have successful HW tone mapping support for HEVC HDR files?

I ask because the latest update pinned Intel Compute Runtime libraries to version 21.49.21786 for Ubuntu 22.04.

It looks like I did miss a test in my detection logic.

I’ve been working on making more changes to the Debian installer.

  • Fix incorrectly calling for HDR libraries in CPUs below -7000
  • Rewriting the CPU detection to include Ubuntu / Debian version detection
    – ( Ubuntu 22.04 and above must have Intel Compute Runtime )
    – ( Ubuntu version below 22.04 is still able to use Beignet & OpenCL for -9xxx and below )
  • Update the detection for the supported Xeon CPUs

Would you like to try the new package when I’ve completed my testing?

Chuck, I haven’t moved to 22.04 on my plex server as I always move my other systems first. I have moved four others at this point with no problems. Would this have been avoided if I had already upgraded from 21.10 to 22.04?

@ranger671

No, 22.04 only makes it worse at the moment.

I am playing catch-up with the 22.04 release

I have most of my testing completed (but there are still tests to complete)
but do have a working 1.26.1.5772 .

If you’re willing to try my developer package, I’ll post it here for you.

This is 21.04 on an i7-8809

What you see here:

  1. Ubuntu 21.04
  2. It does a fresh install
  3. It knows the dependency for Beignet / OpenCL
  4. At preinstall (inventory) time, they aren’t installed so it remembers that
  5. After package install is complete, APT then finishes Beignet & OpenCL.

This is a timing issue with apt/dpkg which I can’t work around

I’d be happy to test for you. Just to clarify though, as the install of beignet-opencl-icd and ocl-icd-libopencl are occurring after the start, it would require a restart for plexmediaserver to display functional hardware acceleration correct?

No, no PMS restart is required.

The only dependency here is they are installed and ready for use before the transcoder is invoked.

I will PM you a link to the package

To test:

  1. Uninstall PMS
  2. Uninstall beignet package
  3. Uninstall ocl-icd-opencl1 package
  4. Install package, saving console output and /tmp/pmsinstaller.log
  5. Test HW transcoding.
1 Like

Chuck, after your one off variant of 5772 worked, the next patch to come out was broken again. So, I skipped that release, but am still seeing the issue with the latest 1.26.2.5797 release. Will you be rolling your changes in, or should I be looking to load the opencl and gmm libraries from repositories? I am still holding off on the 22.04 upgrade as you seemed to indicate that would be more problematic.

Thanks for any assistance/direction you can provide.

@ranger671

If you don’t change the beignet/ocl or ICR packages (depending on CPU),
Everything should continue to work.

Remember what my packaging does – It takes inventory of the host and reports back what it expects/is needed.

Nothing has change regarding ocl and beignet (CoffeeLake and below) or ICR 21.49.21786 for CometLake and above.

Please use dpkg and get an inventory of the packages you have installed ,
checking the beignet-opencl-icd / ocl-icd-libopencl1

Afer that please capture some debug log zip with it failing and attach it so I may see what it’s finding.

I’ve not had opportunity to look at 1.26.2 yet.

I’m trying to get the updated packaging completed which is OS distro and version sensitive. (so it knows when and when not to look for beignet/ocl-icd)

Chuck, here’s what I have installed.

root@nasserver:~# apt list |egrep -i “opencl|beignet|ocl” | grep -i installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

beignet-opencl-icd/impish,now 1.3.2-8 amd64 [installed]
geoclue-2.0/impish,now 2.5.7-3ubuntu2 amd64 [installed,automatic]
gir1.2-geoclue-2.0/impish,now 2.5.7-3ubuntu2 amd64 [installed,automatic]
intel-igc-opencl/now 1.0.7423 amd64 [installed,local]
intel-ocloc/now 21.20.19883 amd64 [installed,local]
intel-opencl-icd/impish,now 21.32.20609-1 amd64 [installed]
libgeoclue-2-0/impish,now 2.5.7-3ubuntu2 amd64 [installed,automatic]
libopencl-clang12/impish,now 12.0.0-1 amd64 [installed,automatic]
ocl-icd-libopencl1/impish,now 2.2.14-2 amd64 [installed,automatic]

During the install/upgrade, I am receiving messages that it is not finding the necessary libraries as indicated in the output I provided above. Are you inferring that even though it’s not “finding” the appropriate libraries during the startup of plexserver that it will still hardware transcode and that the error messages are erroneous? If that’s the case, I’d feel much more comfortable about moving forward and ignoring the messages. I was assuming that with the notification during start it would disable HW transcode.

You have beignet and ocl-icd-libopencl1 installed correctly (KabyLake → CoffeeLake CPUs)

The Intel modules are not correct.

You’re showing 21.32.20609.

This needs to be 21.49.21786 (and its companions) for CometLake and above CPUs -or- all CPUs as of Ubuntu 22.04

I’m on a 9700k (coffee lake), so I assume I should be fine. So, again, are the error messages at the time of PMS start a real issue? It does seem to be working quite well with the custom 5772 version you supplied earlier.

I’m confused at this point. What drivers do I need to have? The Beignet and OCL or the Intel drivers or both? I believe I installed the Intel drivers from github some time ago.

After checking github, I do see that I am off, version wise, from what is currently available. I was under the impression that Beignet was a replacement for the intel github drivers. I am staged to upgrade all 4 drivers to the latest. Can you confirm that this is the correct step to take?

On your CoffeeLake (-9xxx), you only need the beignet-ocl-icd and ocl-icd-libopencl1 packages installed.

(This is my KabyLake)

[~] # cat /proc/cpuinfo | grep 'model name' | head -1
model name	: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
[~] # 

Beignet preceded the Intel Compute Runtime drivers.

As of Ubuntu 22.04, Beignet is no longer available to be installed (which is why I’m fixing the packaging to get it working). Intel has decided to move all development and support to the Intel Compute Runtime project.

About an hour ago, I confirmed a weird transcoder problem.

Would you be willing to conduct the following test?

  1. Stop Plex
  2. Manually add VaapiDriver="i965" to your Preferences.xml
  3. Start Plex
  4. Retest HW transcoding with the same video file.

If it also fails, please grab the ZIP file and attach.
Regardless, please advise the result.

1 Like

Chuck, I did grab the latest drivers off github and upgraded everything. After that, I was able to upgrade with no complaints upon start. At this time this is what I have. I hope these drivers are included in the repository soon.

root@nasserver:/home/nas# apt list |egrep -i “opencl|beignet|ocl|gmm” | grep -i installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

beignet-opencl-icd/impish,now 1.3.2-8 amd64 [installed]
geoclue-2.0/impish,now 2.5.7-3ubuntu2 amd64 [installed,automatic]
gir1.2-geoclue-2.0/impish,now 2.5.7-3ubuntu2 amd64 [installed,automatic]
intel-gmmlib/now 21.3.3 amd64 [installed,local]
intel-igc-opencl/now 1.0.9441 amd64 [installed,local]
intel-opencl-icd/now 21.49.21786 amd64 [installed,local]
libgeoclue-2-0/impish,now 2.5.7-3ubuntu2 amd64 [installed,automatic]
libigdgmm11/impish,now 21.2.2+ds1-1 amd64 [installed,automatic]
ocl-icd-libopencl1/impish,now 2.2.14-2 amd64 [installed,automatic]

I’m about ready to offer a forum preview / review of the new package.

It knows:

  1. The CPU
  2. The Distro
  3. The Distro version

It tells you what you have and what you need if your system doesn’t match what’s expected.

This is a ‘best effort’ task because I’m chasing a moving target and am always behind on new hardware being released, distro updates/changes, and Intel in general :roll_eyes:

I’m trying to make the transition from the old methods to the new Intel Compute Runtime as easy as possible.

When engineering is finally able to include these libraries with the package, we won’t have anything to worry about anymore

1 Like

This looks incredibly tough for you Chuck, so thanks for the extra effort. And I could use it too, as I have same transcoder issue. If Intel could quit breaking their own stuff, that’d be swell. Hopefully there is some sort of improvement in the new OpenCL runtimes for someone, because this is frustrating.

Come take a ride on the wild side?

:sunglasses:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.