GPU computing Monte Carlo

1 visualización (últimos 30 días)
cedric W
cedric W el 5 de Oct. de 2018
Respondida: Joss Knight el 6 de Oct. de 2018
I'm pricing barrier options with Monte Carlo simulations. I started my code with CPU setting and now I'm moving to GPU. I want to compute independant paths many times, but for each simulation, since I'm pricing a worst of basket and path dependant option, I have to retrieve the path for each asset and each time step. So in the end after gathering results, I have a matrix N (time step) x NbAssets x M simulations.
The point is I don't know where to use gpuArray and how to set the size of the matrix (I mean, how to order the size). Because in the end there is the "gather" part and I don't know how it will be indexed(gathered/concatenated).
I tried to make things as clear as possible. Tell me if that's not.

Respuestas (1)

Joss Knight
Joss Knight el 6 de Oct. de 2018
It's pretty hard to tell from your description. The normal way for Monte Carlo would be to use arrayfun, following the document example Using GPU arrayfun for Monte Carlo Simulations.

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