tseemann / VelvetOptimiser

:chart_with_upwards_trend: Automatically optimise three of Velvet's assembly parameters.
GNU General Public License v2.0
46 stars 18 forks source link

How to do CPU detection #16

Closed tseemann closed 7 years ago

tseemann commented 7 years ago
sub num_cpus {
 my($num)= qx(getconf _NPROCESSORS_ONLN); # POSIX
 chomp $num;
 return $num || 1;
}