pangenome / pggb

the pangenome graph builder
https://doi.org/10.1038/s41592-024-02430-3
MIT License
368 stars 41 forks source link

Automatically set thread count #220

Closed ekg closed 2 years ago

ekg commented 2 years ago

We usually should be running with a thread per logical/virtual core or CPU thread. This uses getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 1 to obtain a thread count. The help text indicates the default setting.

Documentation updated to improve overview and usage, plus refer to the new thread option behavior.