Indexing in GPUArrays

조회 수: 6 (최근 30일)
Jesse
Jesse 2011년 2월 16일
I have a problem with working on the GPU. Indexing, and thereby the fftshift is not working (see error below). Transferring my matrix for and after each fftshift will be pretty time consuming and seems rather pointless. Is it correct that indexing does not work for GPU or can I fix it somehow? And if it's correct, why?
_??? Error using ==> GPUArray.subsref at 9 Indexing is not supported for GPUArrays.
Error in ==> fftshift at 42 y = x(idx{:});_
(matlab version 7.11 = 2010, including parallel computing toolbox)

채택된 답변

Jill Reese
Jill Reese 2011년 2월 16일
Hi Jesse. Yes, unfortunately in R2010b indexing is not supported for GPUArrays. R2010b is the first release to contain GPU support, and it was not possible to ensure that all functions could be executed on the GPU in that single release. However, we are committed to expanding the GPU functionality we support, and your feedback is appreciated.
  댓글 수: 1
Ben Tordoff
Ben Tordoff 2011년 6월 14일
Indexing into GPUArrays is supported in R2011a and above.

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

추가 답변 (1개)

Ben Tordoff
Ben Tordoff 2011년 2월 22일
Hi Jesse, if your MATLAB license is up to date you might like to have a look at the pre-release of R2011a which is now available. This includes a number of updates to the GPU features. It can be downloaded by logging in to the main www.mathworks.com page.

카테고리

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