App::OS::Detect::MachineCores - Detect how many cores your machine has (OS-independently)
On different system, different approaches are needed to detect the number of cores for that machine.
This Module is a wrapper around these different approaches.
This module will install one executable,
in your bin.
It is really simple and straightforward:
usage: mcores [-?i] [long options...] -h --help Prints this usage information. -i --add_one add one to the number of cores (useful in scripts)
During development of dotfiles for different platforms I was searching for some way to be able to transparantly detect the number of available cores and couldn't find one. Also it is quite handy to be able to increment the number by simply using a little switch
export TEST_JOBS=`mcores -i`
Daniel B. <firstname.lastname@example.org>
This software is Copyright (c) 2012 by Daniel B..
This is free software, licensed under:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE, Version 2, December 2004