How do I set maxtasks during regtest?

Nico Holmberg holmbe... at
Wed Feb 7 09:57:43 UTC 2018


The number of tasks and other settings can be defined in a configuration 
file, which is passed to the regtest script with the -c flag (see 
./do_regtest -h). You can find example configuration files in the folder 

For example, to use 4 tasks in total and 2 tasks per test (popt binary), 
you can set


You should also comment out the line "maxtasks=$(nproc --all)" if you are 
using one of the example configurations files as a template.



tiistai 6. helmikuuta 2018 18.32.19 UTC+2 Jerry Tanoury kirjoitti:
> Hi,
> I have successfully compiled popt and ssmp versions of CP2K-5.1.  When I 
> run regtests, I notice that the maxtasks = # of core on the node.  As a 
> result, the regtest takes all available cores, which is not a nice thing to 
> do to my computational colleagues.  Is there a way to change this?
> For the ssmp version, I have tried OMP_NUM_THREADS, but that has no effect.
> Best regards,
> Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the CP2K-user mailing list