Skip to content
Discussion options

You must be logged in to vote

Looking at the source code of pyqtgraph 0.13.7, cupy support is available for RawImageWidget but not for RawImageGLWidget.

The code to add support seems trivial enough but it would still involve a GPU (cupy array) -> CPU (numpy array) -> GPU (opengl texture) trip.

But if you did really want to make use of cupy arrays with RawImageGLWidget in your code, you could simply do the conversion of the cupy array to numpy array manually?

If you are interested, you could implement the following to avoid the GPU->CPU memory copy.
https://gist.github.com/keckj/e37d312128eac8c5fca790ce1e7fc437
https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__OPENGL.html
https://docs.nvidia.com/cuda/cuda-ru…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@intrablock
Comment options

@pijyoi
Comment options

Answer selected by intrablock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants