Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Users mailing list

Subject: Re: [hwloc-users] Zero cache line size on Power7?
From: Erik Schnetter (schnetter_at_[hidden])
Date: 2013-03-04 13:18:21


Brice

With argument, I get

bash-3.2$
configs/sim-debug/scratch/build/hwloc/hwloc-1.7a1r5312/tests/linux/hwloc-gather-topology
pandora
cat: cannot open /proc/mounts
Usage: tar -{c|r|t|u|x} [ -BdDEFhilmopRsUvwZ ] [ -Number ] [ -f TarFile ]
           [ -b Blocks ] [ -S [ Feet ] | [ Feet_at_Density ] | [ Blocksb ] ]
           [ -L InputList ] [-X ExcludeFile] [ -N Blocks ] [ -C Directory ]
File ...
Usage: tar {c|r|t|u|x} [ bBdDEfFhilLXmNopRsSUvwZ[0-9] ]
           [ Blocks ] [ TarFile ] [ InputList ] [ ExcludeFile ]
           [ [ Feet ] | [ Feet_at_Density ] | [ Blocksb ] ] [-C Directory ]
File ...
mv: cannot rename /tmp/tmp.0sq5xLkmNA/pandora.tar.bz2 to ./pandora.tar.bz2:
No such file or directory
Hierarchy gathered in ./pandora.tar.bz2 and kept in
/tmp/tmp.0sq5xLkmNA/pandora/
Expected topology output stored in ./pandora.output

bash-3.2$ ls -l /tmp/tmp.EhR7AqZjsK/pandora.tar.bz2
/tmp/tmp.EhR7AqZjsK/pandora.tar.bz2 not found

I don't think my tar supports bz2 (it's not GNU tar). There is a gtar,
though.

The file pandora.output exists; I will send it to you privately.

-erik

On Mon, Mar 4, 2013 at 9:37 AM, Brice Goglin <Brice.Goglin_at_[hidden]> wrote:

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

-- 
Erik Schnetter <schnetter_at_[hidden]>
http://www.perimeterinstitute.ca/personal/eschnetter/