CoBrALab / qbatch

The Unlicense
27 stars 13 forks source link

Rename THREADS_PER_COMMAND to QBATCH_THREADS_PER_COMMAND and also export OMP_NUM_THREADS #199

Open gdevenyi opened 5 years ago

gdevenyi commented 5 years ago

We should use the QBATCH prefix everywhere.

Also it seems nproc will honour OMP_NUM_THREADS which means that many apps which rely on openmp will use proper number of threads even if script writers didn't do anything with QBATCH_THREADS_PER_COMMAND

gdevenyi commented 5 years ago

https://www.gnu.org/software/coreutils/manual/html_node/nproc-invocation.html

gdevenyi commented 5 years ago

https://www.openmp.org/spec-html/5.0/openmpse58.html