Re: Using Reduction in Fortran by cyFeng » Thu Jan 17, 2008 3:31 pm After using real*16, I could get the same result for both programs. Thanks for your help. 9 posts • Page 1 of 1 Return to “Using OpenMP” Jump to
If you look at the OpenMP V2.5 spec, section 3.2.3 omp_get_max_threads states: Summary The omp_get_max_threads routine returns the value of the nthreads-var internal control variable, which is used to determine the number of threads that would form the new team, if an active parallel region without a num_threads clause were to be
RAND () and PRNG () by Ranzeeta » Wed Aug 12, 2009 2:03 pm does anyone know how can i implement PRNG (Parallel Random Number Generator ) in openMP ? here is theeimple code that i did for generating random numbers with openMP using Rand () .
I need (well, the actual job is a bit more elaborated, but I simplify as example) to sum certain elements of an array in certain number of groups. I think it could be parallelized via OpenMP, but I don't know how to deal with the problem. First, I paste the example code: Code: Select all
I wonder about any incompatibility regarding openmp directives and DO blocks in FORTRAN. I need to parallelize the following block (inside a while loop) in Fortran:
The issue is allocating memory on the heap using malloc or new within an openmp parallel block. I see in the OpenMP API 3.1 spec, p. 272, and in the sample code file fig4.98-threadprivate.c provided by the Chapman book "Using OpenMP" that mallocs are done within a parallel for loop. The 2 code snippets below are from the Chapman example code.