CoBrALab / antsRegistration-MAGeT

A reimplementation of MAGeTbrain using only ANTs tools.
Other
16 stars 6 forks source link

Parallelize loops using gnu-parallel to speed up file checking #14

Closed gdevenyi closed 8 years ago

gdevenyi commented 8 years ago

Scinet I/O wait is painful, parallel offers "sem" which allows parallel things to be running.

Should be able to wrap the center of the loops in this to speed them up.

Concern: how does impact writing script files, will there be contention?

gdevenyi commented 8 years ago

https://www.gnu.org/software/parallel/sem.html

http://unix.stackexchange.com/a/216466

gdevenyi commented 8 years ago

Also important, fix bash's clever buffering https://www.gnu.org/software/coreutils/manual/html_node/stdbuf-invocation.html

I think this will prevent bash from writing to the jobfile until the loop is done.

gdevenyi commented 8 years ago

Don't need to fix bash's buffering, we'll use pipes for qbatch commands.