Borrar filtros
Borrar filtros

loop on gpu

1 visualización (últimos 30 días)
Mate 2u
Mate 2u el 26 de Abr. de 2012
Hi there, how would you make the fastest loop on a gpu considering a function I have? Could anybody help me
  2 comentarios
Jill Reese
Jill Reese el 26 de Abr. de 2012
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 el 26 de Abr. de 2012
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

Iniciar sesión para comentar.

Respuestas (1)

Thomas
Thomas el 26 de Abr. de 2012
Hi this demo gives a good demo about converting matlab for loop example from CPU to GPU
  1 comentario
Mate 2u
Mate 2u el 26 de Abr. de 2012
Any further help anybody?

Iniciar sesión para comentar.

Categorías

Más información sobre GPU Computing 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