Contour plot using GPU computing

2 visualizaciones (últimos 30 días)
Dan Solodky
Dan Solodky el 1 de Ag. de 2022
Comentada: Dan Solodky el 3 de Ag. de 2022
I want to draw contour plot (with a lot of data).
It’s heavy for the computer’s RAM (I have 32Gb) , but then I saw that I can draw it using GPU computing:
I don't understand how to use the GPU computing with contour.

Respuestas (1)

Abderrahim. B
Abderrahim. B el 1 de Ag. de 2022
Hi!
If you have Parllel Computing Toolbox, you can use gpuArray to store your data in the GPU memory, and since countour functions support gpuArray objects you can now passe data to contour function!
% Example
data = gpuArray(magic(1000))
contour(data)
Hope this helps
  3 comentarios
Edric Ellis
Edric Ellis el 2 de Ag. de 2022
Although you can plot gpuArray data directly as you mention, but as noted in the contour reference page, the function doesn't run on the GPU - it is provided simply as a convenience.
Dan Solodky
Dan Solodky el 3 de Ag. de 2022
Thanks !
So in contour I cannot use GPU memory?

Iniciar sesión para comentar.

Categorías

Más información sobre GPU Computing in MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by