How to copy array back from GPU do CPU?

Let’s say I have a done a computation on a GPU.
How do I copy this data back to the CPU, so that I can play around with it on CPU (like make the plots) and save it to disk (more important for me)?

1 Like

Just convert from CuArray to Array.

2 Likes

Nice, thank you. I have tried to copy from gpu array to the cpu one, to no avail.