support asymmetric number of threads

With: mpiexec -n 32 ./a.out -threads-per-node 32,244,4

Link: https://github.com/GeneAssembly/biosal/issues/82
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>