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.

Website Feedback

(If you're a human, don't change the following field)
Your first name.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.