Introduction - If you have any usage issues, please Google them yourself
This the thesis " On the Utility of Graphics Cards to Perform Massively Parallel Simulation of Advanced Monte Carlo Methods" supporting code, for understanding GPU cuda parallel programming helpful.