Contour plot using GPU computing

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.

답변 (1개)

Abderrahim. B
Abderrahim. B 2022년 8월 1일

0 개 추천

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

Dan Solodky
Dan Solodky 2022년 8월 1일
Hi !
Thanks for the asnwer.
I tried what you suggested and I don't see that I'm using GPU for it.
you can try :
% Example
data = gpuArray(magic(10000))
contour(data)
and see that your RAM start to fill up
Edric Ellis
Edric Ellis 2022년 8월 2일
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 2022년 8월 3일
Thanks !
So in contour I cannot use GPU memory?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 GPU Computing in MATLAB에 대해 자세히 알아보기

태그

질문:

2022년 8월 1일

댓글:

2022년 8월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by