Skip to Main Content
Designing Scientific Applications on GPUs
book

Designing Scientific Applications on GPUs

by Raphael Couturier
November 2013
Intermediate to advanced content levelIntermediate to advanced
498 pages
17h 6m
English
Chapman and Hall/CRC
Content preview from Designing Scientific Applications on GPUs
446 Designing Scientific Applications on GPUs
In Listing 19.1 a sequential version of the proposed PRNG based on chaotic
iterations is presented, which extends the generator family formerly presented
in [4,5]. The xor operator is represented by ˆ. This function uses three classical
64-bit PRNGs, namely the xorshift, the xor128, and the xorwow [13].
In the following, we call them “xor-like PRNGs”. As each xor-like PRNG
uses 64-bits whereas our proposed generator works with 32-bits, we use the
command (unsigned int), which selects the 32 least significant bits of a
given integer, and the code (unsigned int)(t>>32) in order to obtain
the 32 most significant bits of t.
Thus producing a pseudorandom number needs 6 xor operations with 6 32-
bit numbers that
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Introduction to Numerical Analysis and Scientific Computing

Introduction to Numerical Analysis and Scientific Computing

Nabil Nassif, Dolly Khuwayri Fayyad
Computational Electromagnetism

Computational Electromagnetism

Alain Bossavit, Isaak D. Mayergoyz

Publisher Resources

ISBN: 9781466571648