MediaSDK
MediaSDK copied to clipboard
Loading a Custom Shader/Kernel from a User Plugin
Quick Question - would it be possible to create a custom kernel with https://github.com/intel/cm-compiler and load it from an MSDK VPP plugin?
Hi @FurongZhang can you take a look on the issue?
@daleksan , I can take a look at this.
@softworkz , theoretically, it is feasible. But May I know why you need to do this? What is your feature request? Why need to through VPP plugin?
I have done vectorized tone mapping implementations for CPU and Intel GPUs via OpenCL, but I wasn't satisfied with the OpenCL performance (my OpenCL implementation performance is similar - about 10-20% slower than your 3d LUT implementation for VAAPI tone mapping). A recent article from some Intel fellows (https://arxiv.org/abs/2101.11049) indicated that it would be possible to achieve up to 2.7x better performance using plain C-for-Metal implementations for image processing algorithms.
That's how I came to think that it would be a great way when it would be possible to create VPP plugins that can load shaders that are compiled using C-for-Metal.