Unity-Technologies / barracuda-release

Other
564 stars 76 forks source link

Using GPU in android with Unity Barracuda #331

Open taeyunwoo opened 10 months ago

taeyunwoo commented 10 months ago

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.

Aurimasp commented 10 months ago

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

taeyunwoo commented 10 months ago

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