loop on gpu

조회 수: 1 (최근 30일)
Mate 2u
Mate 2u 2012년 4월 26일
Hi there, how would you make the fastest loop on a gpu considering a function I have? Could anybody help me
  댓글 수: 2
Jill Reese
Jill Reese 2012년 4월 26일
It would be easier to provide some guidance if you could provide some more details. Can you provide the code for your function? Do you want to call your function from within a loop or does your function contain a loop that you want to run faster?
Mate 2u
Mate 2u 2012년 4월 26일
Hi mate, the function is provided online http://www.mathworks.com/matlabcentral/fileexchange/29489 function is leadlag.m . I want to run the following but on the gpu!
for n = 1:6400
parfor m = n:6400
[~,~,sh(n,m)] = leadlag(Close,n,m,annualScaling, 0.00006);
end
end

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

답변 (1개)

Thomas
Thomas 2012년 4월 26일
Hi this demo gives a good demo about converting matlab for loop example from CPU to GPU
  댓글 수: 1
Mate 2u
Mate 2u 2012년 4월 26일
Any further help anybody?

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

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by