barracuda-release icon indicating copy to clipboard operation
barracuda-release copied to clipboard

Using GPU in android with Unity Barracuda

Open taeyunwoo opened this issue 2 years ago • 2 comments

Hello, Thank you for your work.

I'm using Barracuda with ONNX wrapped model. In computer setting, I use GPU with: worker = WorkerFactory.CreateWorker(WorkerFactory.Type.Compute, m_RuntimeModel);

However, in android unity application, I cannot use GPU with that code fragment. My android build setting is 'OpenGLES3', not 'Vulkan'. (Actually, I cannot use Vulkan for this build due to other dependency Nreal Light)

Can you give a solution for this?

Thanks.

taeyunwoo avatar Oct 20 '23 09:10 taeyunwoo

Hey, you can try upgrading the package version (It is called Sentis now) and use the GPUPixel backend.

Aurimasp avatar Oct 20 '23 09:10 Aurimasp

@Aurimasp Thank you for replying. You mean that trying to upgrade the Barracuda to Unity sentis, right?

taeyunwoo avatar Oct 20 '23 12:10 taeyunwoo