-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Does Pillow make use of GPU instances (CUDA) #1546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
No, there's no support for CUDA. Pull requests are appreciated. |
Some folks from NVIDIA have expressed an interest in adding CUDA support, please watch for future discussions here and elsewhere. They referenced this library they built with ByteDance which has an implementation of Pillow's resize for CUDA, added by popular demand. Initial discussions will be about:
Similar to #1888, I am excited about the possibility of expanding Pillow's core features in ways that are both popular (in demand) and maintainable (in scope). |
There is a bit in the arrow spec about device memory, so it's possible that it's one way to leverage getting the data onto the GPU. PyArrow has CUDA/Numba integration: https://arrow.apache.org/docs/python/integration/cuda.html . On the other hand, if there's an arrow->GPU->arrow program that does image manipulation, we can support that now. |
Thinking about this a bit more:
|
Also, FWIW, If we did anything on MacOS, it would probably have to be Metal, and that doesn't look insurmountable. Ref: |
This might be related: https://thenewstack.io/nvidia-finally-adds-native-python-support-to-cuda/
Looks like cupy is basically numpy on cuda, so |
Does Pillow utilize GPU instructions when running on GPU enabled machines?
The text was updated successfully, but these errors were encountered: