O'Reilly logo

CUDA Fortran for Scientists and Engineers by Massimiliano Fatica, Gregory Ruetsch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5

Monte Carlo Method

Abstract

This chapter goes through several examples of a Monte Carlo algorithm to show how to generate random-number sequences and perform parallel reduction.

Keywords

Reduction; Random-number generation; CURAND; Accuracy of reduction; Accuracy due to FMA instructions

A book on high-performance and parallel computing is not complete without an example that shows how to compute image. Instead of using the classic example of numerical integration of the function image, we use a Monte Carlo method to compute .

Calculating using a Monte ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required