NAG Logo
Numerical Algorithms Group
graphic

Tech Tips: NAG SMP Library - Pseudo-Random Numbers and OpenMP Parallel Regions

Pseudo-Random Numbers

When a piece of code generates a large number of pseudo-random numbers, these are best generated in long arrays. This reduces the overhead associated with restarting the generator on each call to the generator (G05 Chapter) routines.

SMP/OpenMP Parallel Regions

If your code contains OpenMP directives to create parallel regions, please remember that this will switch off any parallelism in NAG routines called within the parallel region since multi-level SMP parallelism is not (yet) supported by any vendor.


For specific technical advice in using NAG's products, please contact our technical experts.

Return to Technical Tips & Hints index page.

© The Numerical Algorithms Group 2008
Privacy Policy | Trademarks

© Numerical Algorithms Group

Visit NAG on the web at:

www.nag.co.uk (Europe and ROW)
www.nag.com (North America)
www.nag-j.co.jp (Japan)

http://www.nag.com/techtips/techtip014.asp