# Plot GPArray/ Arrayfire

**URL:** <https://discourse.julialang.org/t/plot-gparray-arrayfire/5423>\
**Category:** General Usage\
**Created:** [August 17, 2017, 10:55am UTC](https://discourse.julialang.org/t/plot-gparray-arrayfire/5423 "2017-08-17T10:55:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rveltz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rveltz/32/2707_2.png) [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Post date:** [August 17, 2017, 10:55am UTC](https://discourse.julialang.org/t/plot-gparray-arrayfire/5423/1 "2017-08-17T10:55:38Z")

</div>

Hi,

Is there a way to display 1d/2d arrays hosted by the GPU (aka with GPUArrays or ArrayFire)?

ArrayFire has some method for that but it is a bit limited,

Thank you for your help,

Best regards

Romain

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [August 18, 2017, 2:37pm UTC](https://discourse.julialang.org/t/plot-gparray-arrayfire/5423/2 "2017-08-18T14:37:55Z")

</div>

Visualize.jl uses GPUArrays under the hood, so it should natively work with data on the GPU - just need to release it and bring it on the same level of functionality as GLVisualize.jl…

Meanwhile, does it not work to just do `array = Array(gpu_array)` and plot that with the plotting package of your choice?  
Or do you actually have one of those exciting use cases where that’s too slow?

---

<div class="post-metadata">

**Author:** ![rveltz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rveltz/32/2707_2.png) [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Post date:** [August 18, 2017, 3:52pm UTC](https://discourse.julialang.org/t/plot-gparray-arrayfire/5423/3 "2017-08-18T15:52:44Z")

</div>

Great!

I solve a PDE on a square. Even the plotting with GR (when solving in the CPU) is quite slow. Including the GPU → CPU transfer will be even slower.

Plus, I have seen what ArrayFire (limited) plotting capabilities can produce now…

---

<div class="post-metadata">

**Author:** ![Francois](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/francois/32/42434_2.png) [@Francois](https://discourse.julialang.org/u/Francois)\
**Post date:** [September 3, 2022, 7:41am UTC](https://discourse.julialang.org/t/plot-gparray-arrayfire/5423/4 "2022-09-03T07:41:58Z")

</div>

Hi,

Is there anything new on this topic? Have you found a solution to display directly from the GPU without going through the CPU @rveltz ? I’m doing a large cellular automaton simulation and I think it could increase my fps.

have a nice day

---

<div class="post-metadata">

**Author:** ![rveltz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rveltz/32/2707_2.png) [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Post date:** [September 3, 2022, 7:59am UTC](https://discourse.julialang.org/t/plot-gparray-arrayfire/5423/5 "2022-09-03T07:59:36Z")

</div>

no 🥲
