MediaSDK icon indicating copy to clipboard operation
MediaSDK copied to clipboard

Loading a Custom Shader/Kernel from a User Plugin

Open softworkz opened this issue 4 years ago • 4 comments

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?

softworkz avatar Feb 11 '21 23:02 softworkz

Hi @FurongZhang can you take a look on the issue?

daleksan avatar Jun 09 '21 21:06 daleksan

@daleksan , I can take a look at this.

FurongZhang avatar Jun 14 '21 08:06 FurongZhang

@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?

FurongZhang avatar Jun 14 '21 08:06 FurongZhang

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.

softworkz avatar Jun 14 '21 19:06 softworkz