mmstick/parallel

-j0: zero cores

Flat opened this issue · 3 comments

Flat commented

It looks like -j0 using MIT/Rust Parallel literally means use 0 cores [1], while -j0 in GNU Parallel means use as many cores/jobs as possible [2]. This makes scripts that use -j0 stall indefinitely upon calling MIT/Rust parallel with the -j0 flag

  1. value.parse::<usize>().map_err(|_| ParseErr::JobsNaN(value.to_owned()))
  2. https://www.gnu.org/software/parallel/man.html

Seems silly to write -j0 when it basically means choose the default setting. Nonetheless, I'll fix this shortly.

Flat commented

I agree, unfortunately to be compatible as a replacement for GNU Parallel this seems to be used.

This should fix the problem.