Re: [hwloc-devel] gather-topology.sh and rpm

2010-11-04 Thread Samuel Thibault
Jirka Hladky, le Thu 04 Nov 2010 16:59:35 +0100, a écrit :
> 3) Whenever I run lstopo using X output and I close lstopo window I will get
> 
> $lstopo
> XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
>   after 121 requests (121 known processed) with 0 events remaining.
> 
> Is there something wrong with my X-server settings? Can it be suppressed?

That is the usual behavior. Try with the xlogo app for instance, it'll
get the same. You can close more nicely by hitting q, escape, or the
close button (not kill button) if your window manager provides one.

Samuel


Re: [hwloc-devel] gather-topology.sh and rpm

2010-11-01 Thread Brice Goglin
Le 31/10/2010 23:17, Jirka Hladky a écrit :
> 1) During install, rename  gather-topology.sh on hwloc-gather-topology.sh
>   

I don't know how to rename properly during install with automake, so I
just renamed everywhere (source, build and install dir).

> 2) During install,  remove variable abs_top_builddir all together and make 
> lstopo=`which lstopo`
>   

I replace $abs_top_builddir/utils with $bindir during install. I want to
be sure that we're not going to mix different versions of
gather-topology and lstopo since the command-line options given by
gather to lstopo changed in the past.

> 3)Create a minimalist man page (it just need to say in one or two sentences 
> what the command does)
>   

There's a usage but no manpage yet, lazyness :)

> BTW, 
> gather-topology.sh /tmp/a 
> is not working at the moment.
>   

I just fixed this in trunk, thanks.

Brice



Re: [hwloc-devel] gather-topology.sh and rpm

2010-10-31 Thread Brice Goglin
Le 31/10/2010 01:44, Jirka Hladky a écrit :
> Hi all,
>
> since gather-topology.sh is nice script to help debug problems I was thinking 
> to add it to the rpm.
>
> However, path to the lstopo is set to the absolute build path:
>
> abs_top_builddir="/home/jhladky/tests/performance/hwloc/hwloc-1.0.2"
> lstopo="$abs_top_builddir/utils/lstopo"
>
> so it will no work after installation from rpm package (lstopo is in 
> /usr/bin/lstopo)
>
> I would propose to modify the script to look first for installed lstopo using 
> "which" command.
>   

What about we first try the one in $abs_top_builddir/utils/lstopo and
then revert back to $prefix/bin/lstopo ?

By the way, should we rename gather-topology.sh into
hwloc-gather-topology.sh during install ?

Brice



[hwloc-devel] gather-topology.sh and rpm

2010-10-30 Thread Jirka Hladky
Hi all,

since gather-topology.sh is nice script to help debug problems I was thinking 
to add it to the rpm.

However, path to the lstopo is set to the absolute build path:

abs_top_builddir="/home/jhladky/tests/performance/hwloc/hwloc-1.0.2"
lstopo="$abs_top_builddir/utils/lstopo"

so it will no work after installation from rpm package (lstopo is in 
/usr/bin/lstopo)

I would propose to modify the script to look first for installed lstopo using 
"which" command.

Or perhaps we can have two versions of this script
-one for testing with hard-wired path to lstopo
-another general version suitable for rpm where we will take first lstopo in 
the $PATH (achieved by which command)

Any comments/ideas on that?

Thanks!
Jirka