diff --git a/doc/release_new_version b/doc/release_new_version index 2aac4830..7bbec41a 100644 --- a/doc/release_new_version +++ b/doc/release_new_version @@ -171,43 +171,31 @@ cc:Sandro Cazzaniga , Ryoichiro Suzuki , Jesse Alama -Subject: GNU Parallel 20121122 ('Barack') released +Subject: GNU Parallel 20121222 ('#freeandopen') released -GNU Parallel 20121122 ('Barack') has been released. It is +GNU Parallel 20121222 ('#freeandopen') has been released. It is available for download at: http://ftp.gnu.org/gnu/parallel/ New in this release: -* niceload --sensor makes it possible to use a program to control if a - program should be suspended. +* --shebang-wrap makes is possible to parallelize scripts by putting + parallel in the shebang line (the first #! line in scripts). -* GNU Parallel was part of the justification for Nordic Free Software - Award 2012 - https://fsfe.org/news/2012/news-20121112-01.html +* --delay puts in a delay after starting each job. Useful to avoid + raceconditions and thundering herd problems. -* Dateien schneller packen und konvertieren mit GNU parallel - http://www.linux-community.de/Archiv/Tipp-der-Woche/Dateien-schneller-packen-und-konvertieren-mit-GNU-parallel +* --results now uses / as separator instead of TAB and thus creates + subdirs. -* Processing images from Lunar Reconnaissance Orbiter Narrow Angle - Camera http://lunokhod.org/?p=774 +* niceload --sensor allows for negative numbers to signify a lower + number means the limit is lower. -* GNU Parallel is used in types2: Type and Hapax Accumulation Curves - http://www.cs.helsinki.fi/u/josuomel/types2/ +* niceload --prg suspend a named program that is already running. -* GNU Parallel used in: A Hybrid Factor Analysis and Probabilistic - PCA-based system for Dictionary Learning and Encoding for Robust - Speaker Recognition - http://www.superlectures.com/odyssey2012/lecture.php?id=8&lang=en - http://www.cse.iitm.ac.in/~mrsri/ppca.pdf +* niceload --pid suspend process id that is already running. -* Mapreduce avec parallel, cat et une redirection - http://datacratic.com/site/blog/mapreduce-avec-parallel-cat-et-une-redirection - -* GNU Parallel for Large Batches of Small Jobs - https://support.scinet.utoronto.ca/wiki/images/7/7b/Tech-talk-gnu-parallel.pdf - -* GNU Parallel used in black belt tip (8:50-10:12) - https://aws.amazon.com/apac/awspodcast/episode20/ +* Convertir des images avec find et imagemagick + http://roger.b.over-blog.com/article-convertir-des-images-avec-find-et-imagemagick-113416637.html * Bug fixes and man page updates. diff --git a/src/parallel b/src/parallel index fc87068d..565cbf67 100755 --- a/src/parallel +++ b/src/parallel @@ -2903,6 +2903,8 @@ sub no_of_cores { $no_of_cores = no_of_cores_gnu_linux(); } elsif ($^O eq 'freebsd') { $no_of_cores = no_of_cores_freebsd(); + } elsif ($^O eq 'openbsd') { + $no_of_cores = no_of_cores_openbsd(); } elsif ($^O eq 'solaris') { $no_of_cores = no_of_cores_solaris(); } elsif ($^O eq 'aix') { @@ -2911,6 +2913,7 @@ sub no_of_cores { $no_of_cores = no_of_cores_darwin(); } else { $no_of_cores = (no_of_cores_freebsd() + || no_of_cores_openbsd() || no_of_cores_darwin() || no_of_cores_solaris() || no_of_cores_aix() @@ -3010,6 +3013,15 @@ sub no_of_cores_freebsd { return $no_of_cores; } +sub no_of_cores_openbsd { + # Returns: + # Number of CPU cores on OpenBSD + # undef if not OpenBSD + my $no_of_cores = `sysctl -n hw.ncpu 2>/dev/null`; + chomp $no_of_cores; + return $no_of_cores; +} + sub no_of_cpus_solaris { # Returns: # Number of physical CPUs on Solaris