null

Message Boards

Running DELWAQ with OpenMP

JL
João Lencart e Silva, modified 6 Years ago.

Running DELWAQ with OpenMP

Padawan Posts: 70 Join Date: 3/30/11 Recent Posts
Hi All,

I looked in the examples and the manual for how to start an OpenMP run of DELWAQ but couldn't find any clue...
I tried setting the
OMP_NUM_THREADS=#
for # number of processors but the simulation always started with 1 processor.
I assume that openmp is included in the standard makefiles (checked and there was an -fopenmp flag). Do the number of threads need to be set at build time?


Regards,

João.
CT
Christophe Thiange, modified 6 Years ago.

RE: Running DELWAQ with OpenMP (Answer)

Jedi Knight Posts: 125 Join Date: 11/15/12 Recent Posts
Hi João,

The number of threads can be set in block 7 of the input file through the special constant nothreads. Like this:

CONSTANTS nothreads DATA 0.0


Default value is -1: no multiprocessing
You can either set it to 0 (max number of threads) or to the number of threads you want.

If you need more info, look in the Input File Description manual (section 7.3.1.1).

Regards,
Christophe
JL
João Lencart e Silva, modified 6 Years ago.

RE: Running DELWAQ with OpenMP

Padawan Posts: 70 Join Date: 3/30/11 Recent Posts
Thanks,

João.