01.10.2015 Views

Binomial option pricing model

App Note Template - nVIDIA CUDA Toolkit Documentation

App Note Template - nVIDIA CUDA Toolkit Documentation

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

i = 1<br />

i = 2<br />

...<br />

...<br />

...<br />

...<br />

...<br />

...<br />

...<br />

...<br />

i = NUM_STEPS - 1<br />

i = NUM_STEPS<br />

NUM_STEPS + 1<br />

Figure 2. Successive reduction of the prices array.<br />

GPU implementation<br />

On parallel architectures such as the NVIDIA G80 GPU, a more robust computation<br />

scheme has to be developed, since everything is different on GPUs: there are many physical<br />

devices executing instructions in parallel as well as constraints on memory access patterns.<br />

A straightforward approach would be to load all leaf values into a high-speed shared<br />

memory buffer and perform calculations in shared memory. But the size of shared memory<br />

on the G80 GPU is limited. So, we take as basis our intention to store as many data as<br />

possible in shared memory, but taking into account that working data sizes can be much<br />

larger than the available shared memory, forcing us to spill to global memory at some steps<br />

of the computation.<br />

July 2012

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!