Using cupy#

CuPy is an open-source array library for GPU-accelerated computing with Python with a strong focus on NVidia GPUs made by Preferred Networks
| WebSite | GitHub | Read the Docs |
It’s meant to be used in codebases which have been developed using numpy
and scipy
before to allow the transition for using the GPU.
Therefore the interface is very similar to numpy
and the code does not need to change very much.
Quite often the only necessary change is to switch the namespace from np
to cp
.