Tech Tips: NAG SMP Library - Pseudo-Random Numbers and OpenMP Parallel RegionsPseudo-Random NumbersWhen 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 RegionsIf 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. |
© 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.co.uk/techtips/techtip014.asp