Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [hwloc-users] Zero cache line size on Power7?
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2013-03-04 09:37:10


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_at_[hidden]
> <mailto:Brice.Goglin_at_[hidden]>> 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_at_[hidden] <mailto:schnetter_at_[hidden]>>
>> http://www.perimeterinstitute.ca/personal/eschnetter/
>>
>>
>> _______________________________________________
>> hwloc-users mailing list
>> hwloc-users_at_[hidden] <mailto:hwloc-users_at_[hidden]>
>> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users
>
>
> _______________________________________________
> hwloc-users mailing list
> hwloc-users_at_[hidden] <mailto:hwloc-users_at_[hidden]>
> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users
>
>
>
>
> --
> Erik Schnetter <schnetter_at_[hidden] <mailto:schnetter_at_[hidden]>>
> http://www.perimeterinstitute.ca/personal/eschnetter/
>
>
> _______________________________________________
> hwloc-users mailing list
> hwloc-users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users