Skip to content

Instantly share code, notes, and snippets.

@royseto
Created October 25, 2015 14:45
Show Gist options
  • Save royseto/182af220edeb3472eea8 to your computer and use it in GitHub Desktop.
Save royseto/182af220edeb3472eea8 to your computer and use it in GitHub Desktop.
suspected_parallel_bug_with_slot_numbers_and_eta
➜ tmp seq 1 10 | parallel -j4 --eta echo '{%} {}'
Computers / CPU cores / Max jobs to run
1:local / 16 / 4
Computer:jobs running/jobs completed/%of started jobs/Average seconds to complete
ETA: 0s Left: 10 AVG: 0.00s local:4/0/100%/0.0s 1 1
ETA: 0s Left: 9 AVG: 0.00s local:4/1/100%/0.0s 2 2
ETA: 0s Left: 8 AVG: 0.00s local:4/2/100%/0.0s 3 3
ETA: 0s Left: 7 AVG: 0.00s local:4/3/100%/0.0s 4 4
ETA: 0s Left: 6 AVG: 0.00s local:4/4/100%/0.0s 5 5
ETA: 0s Left: 5 AVG: 0.00s local:4/5/100%/0.0s 6 6
ETA: 0s Left: 4 AVG: 0.00s local:4/6/100%/0.0s 7 7
ETA: 0s Left: 3 AVG: 0.00s local:3/7/100%/0.0s 8 8
ETA: 0s Left: 2 AVG: 0.00s local:2/8/100%/0.0s 9 9
ETA: 0s Left: 1 AVG: 0.00s local:1/9/100%/0.0s 10 10
ETA: 0s Left: 0 AVG: 0.00s local:0/10/100%/0.0s
➜ tmp seq 1 10 | parallel -j4 echo '{%} {}'
1 1
2 2
3 3
4 4
1 5
2 6
3 7
4 8
1 9
2 10
➜ tmp parallel --version
GNU parallel 20150922
Copyright (C) 2007,2008,2009,2010,2011,2012,2013,2014,2015 Ole Tange
and Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
GNU parallel comes with no warranty.
Web site: http://www.gnu.org/software/parallel
When using programs that use GNU Parallel to process data for publication
please cite as described in 'parallel --bibtex'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment