Re: [PATCH] core-count: A new program to count the number of cpu cores
From:
Giuseppe Scrivano
Subject:
Re: [PATCH] core-count: A new program to count the number of cpu cores
Date:
Thu, 05 Nov 2009 23:55:59 +0100
User-agent:
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)
Hello,
Erik Auerswald <address@hidden> writes:
> Why have an option for the default operation at all? If --available is
> the same as specifying no option and the only other mode of operation is
> --all, only the --all option should be recognised. There is no need for
> --available.
it is not very common case but it may be useful to override an alias:
$ OMP_NUM_THREADS=1 nproc
1
$ alias nproc="nproc --all"
$ OMP_NUM_THREADS=1 nproc
2
$ OMP_NUM_THREADS=1 nproc --available
1
Beside this one, I don't see other cases.
Cheers,
Giuseppe