Re:GNU Parallel - build and execute command lines from stand...
by tptacek on Sunday October 17, 2010 @04:41PM
(#1801360)
In what ways is this better than make -j?
[ Parent
| on HN ]
Re:GNU Parallel - build and execute command lines from stand...
by chrisaycock on Sunday October 17, 2010 @04:48PM
(#1801387)
Because it can be run on the command line, ad hoc. Make -j is great for pre-existing command lists and dependencies. But as the man page describes, parallel is like xargs, which I use all the time on the command line for ad hoc actions (frees me from having to write a bash loop).
Re:GNU Parallel - build and execute command lines from stand...
by jcsalterego on Sunday October 17, 2010 @10:01PM
(#1802051)
make requires a Makefile, whereas one can pass parameters directly to parallel.
There also seems to be a few more options revolving around job success/failure and how to react -- a) ignore failed jobs and report how many at the end, b) cleanly exit as soon as a job fails and c) stop all jobs as soon as one fails.
Re:GNU Parallel - build and execute command lines from stand...
by tptacek on Sunday October 17, 2010 @10:34PM
(#1802126)
Those (a) (b) and (c) points sound like strengths of make, to me.
Re:GNU Parallel - build and execute command lines from stand...
by jcsalterego on Monday October 18, 2010 @08:58AM
(#1803261)
Sorry, those were features of parallel, not make (unless I'm mistaken).
Re:GNU Parallel - build and execute command lines from stand...
by scott_s on Sunday October 17, 2010 @07:27PM
(#1801735)
parallel is intended to work on arbitrary commands.
Re:GNU Parallel - build and execute command lines from stand...
by ori_b on Sunday October 17, 2010 @07:38PM
(#1801756)
So is make.
Re:GNU Parallel - build and execute command lines from stand...
by scott_s on Monday October 18, 2010 @12:26PM
(#1804086)
It can, but that was not its intended purpose. That is, you can figure out a way to map your task to a dependency hierarchy and save it to a Makefile, but why do that when you could use something designed for that?