You should run hwloc-gather-topology with one parameter:
  hwloc-gather-topology foo
This should generate foo.tar.bz2

We don't explicitly check the number of parameters, we directly look at $1. My bash makes $1 empty when not given, looks like your bash doesn't accept that. The attached patch should fix the error.

Brice

Index: tests/linux/hwloc-gather-topology.in
===================================================================
--- tests/linux/hwloc-gather-topology.in	(révision 5403)
+++ tests/linux/hwloc-gather-topology.in	(copie de travail)
@@ -34,6 +34,11 @@
    echo "  $0 /tmp/\$(uname -n)"
 }
 
+if test x$# = x0 ; then
+  usage
+  exit 1
+fi
+
 name="$1"; shift
 if [ -z "$name" -o x`echo $name | cut -c1` = x- ] ; then
   [ x$name != x -a x$name != x-h -a x$name != x--help ] && echo "Unrecognized option: $name"




Le 04/03/2013 14:47, Erik Schnetter a écrit :
Brice

bash-3.2$ configs/sim-debug/scratch/build/hwloc/hwloc-1.7a1r5312/tests/linux/hwloc-gather-topology
configs/sim-debug/scratch/build/hwloc/hwloc-1.7a1r5312/tests/linux/hwloc-gather-topology[37]: shift: bad number

No tarball is generated.

-erik



On Wed, Feb 27, 2013 at 5:19 PM, Brice Goglin <Brice.Goglin@inria.fr> wrote:
I think I've seen cases where the device-tree contains 0 for such line sizes.
I guess we should document that the line size is 0 means unknown.

Can you send the tarball generated by hwloc-gather-topology ? (send it only to, in a private email)

Brice



Le 27/02/2013 23:11, Erik Schnetter a écrit :
I am running hwloc 1.7a1r5312 on a Power7 architecture. I find there a level 2 cache with a cacheline size of 0. Is this to be expected? The documentation doesn't say that determining the cacheline size may fail.

I query the cache parameters from my application with these results:

Cache (unknown name) has type "data" depth 1
   size 32768 linesize 128 associativity 8 stride 4096
Cache (unknown name) has type "unified" depth 2
   size 262144 linesize 0 associativity 8 stride 32768

-erik

--
Erik Schnetter <schnetter@cct.lsu.edu>
http://www.perimeterinstitute.ca/personal/eschnetter/


_______________________________________________
hwloc-users mailing list
hwloc-users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users


_______________________________________________
hwloc-users mailing list
hwloc-users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users



--
Erik Schnetter <schnetter@cct.lsu.edu>
http://www.perimeterinstitute.ca/personal/eschnetter/


_______________________________________________
hwloc-users mailing list
hwloc-users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users