Le 27/05/2010 23:28, Jirka Hladky a écrit :
hwloc-calc doesn't accept input from stdin, it only reads the
command-line. We have a TODO entry about this, I'll work on it soon.
For now, you can do:
hwloc-distrib ... | xargs -n 1 utils/hwloc-calc
I forgot to use "-n 1" switch in xargs to send only 1 cpu set per one hwloc-
calc command.
This works just fine: :-)
hwloc-distrib --single 8 | xargs -n1 hwloc-calc --taskset
Perhaps you can add this example to hwloc-distrib man page?
I've added the stdin support to hwloc-calc so I don't think it matters
anymore: "hwloc-distrib --single 8 | hwloc-calc --taskset" should do
what you want. I'll add something like this to the manpage.
Brice