pyvips icon indicating copy to clipboard operation
pyvips copied to clipboard

How to take advantage of the GPU while using pyvips/libvips?

Open euzada opened this issue 2 years ago • 2 comments

Hi,
I know libvips is mainly CPU based library, but there is any way I can use GPU to perform some of the tasks? I used CUDA in python but it didn't really help. What will be than the best practice to reduce the CPU usage (ideally move it to GPU)?

Regards,

euzada avatar Jul 21 '23 16:07 euzada

Hi @euzada,

We've talked about adding GPU path to libvips, but no one's done the work yet.

jcupitt avatar Jul 22 '23 08:07 jcupitt

Improving efficiency is all about having good benchmarks. Make a small thing that's a good representation of what you need to do, then start digging in with a profiler and a log tool.

jcupitt avatar Jul 22 '23 08:07 jcupitt