필터 지우기
필터 지우기

How can I make fft2 parallel?

조회 수: 1 (최근 30일)
bazrafshan88@gmail.com
bazrafshan88@gmail.com 2016년 9월 1일
댓글: Walter Roberson 2016년 9월 4일
Hi guys
I got a code consisting of 3 loops and packed with fft2 command. Since it is not possible to make the code itself parallel, I wonder if it is possible to make the fft2 parallel instead and see how much it can speed up the code.
Any help in this regard is appreciated
Thanks
Mohammad

채택된 답변

michio
michio 2016년 9월 1일
Are you considering using gpu? fft2 is one of the built-in functions that support gpuArray. It requires Parallel Computing Toolbox though.
  댓글 수: 3
Walter Roberson
Walter Roberson 2016년 9월 4일
gpu is not always faster. You need to do tests. What would a sample array size be for you?
Walter Roberson
Walter Roberson 2016년 9월 4일
One thing to watch out for is that GPUs often have limited memory. It is common for the largest practical input array size to be about 1/8th of the amount of memory on the GPU.
On the test I just did on my Geforce GTX 650M (not a high end device), gputimeit() of fft2 of a random 1000 x 1000 array took aproximately twice as long as on the CPU. I could not go much faster than 1000 x 1000 before running out of memory on the gpu.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by