Re: [hwloc-users] hwloc-ls graphical output

2014-10-01 Thread Brice Goglin
Dennis,
Did you have an opinion about this?
I am going to release the final hwloc v1.10 soon. So if there's
something to fix, I'd rather know it quickly.
thanks
Brice



Le 25/09/2014 07:47, Brice Goglin a écrit :
> Le 25/09/2014 02:22, Dennis Jacobfeuerborn a écrit :
>> So I just recompiled again but using version 1.4.3 and the graphical
>> output options reappeared. I also tried version 1.5.2 and this version
>> will not show the graphical output options anymore so it seems something
>> has changed between 1.4 and 1.5 that changes the output options in some way.
>>
> In 1.5, Fedora/RH people asked for a separation of lstopo-no-graphics
> and lstopo with graphical options.  lstopo-no-graphics is always built
> without graphical support. lstopo is built with graphical support when
> possible, or it's just a symlink to lstopo-no-graphics.
>
> And hwloc-ls is just a symlink to lstopo-no-graphics in all cases. So
> just use lstopo and you'll be happy.
>
> The reason for not being a symlink to lstopo is likely that lstopo
> doesn't always exist. It depends how hwloc is packaged. On Debian, you
> have either a package with lstopo-no-graphics and a lstopo symlink, or
> another package with lstopo-no-graphics and lstopo binaries. On
> Fedora/... you always have a package that contains lstopo-no-graphics
> with no lstopo at all, and you can add another package with the
> graphical lstopo on top of it.
>
> Maybe we should just drop hwloc-ls to avoid the confusion. But several
> people are used to it already.
> Also we added a hwloc-ls desktop file recently, I guess it points to a
> non-graphical, which isn't good.
> I can make hwloc-ls a real program that checks whether lstopo exists
> before it runs lstopo or lstopo-no-graphics ?
>
> Brice
>
>



Re: [hwloc-users] hwloc-ls graphical output

2014-09-25 Thread Brice Goglin
Le 25/09/2014 02:22, Dennis Jacobfeuerborn a écrit :
> So I just recompiled again but using version 1.4.3 and the graphical
> output options reappeared. I also tried version 1.5.2 and this version
> will not show the graphical output options anymore so it seems something
> has changed between 1.4 and 1.5 that changes the output options in some way.
>

In 1.5, Fedora/RH people asked for a separation of lstopo-no-graphics
and lstopo with graphical options.  lstopo-no-graphics is always built
without graphical support. lstopo is built with graphical support when
possible, or it's just a symlink to lstopo-no-graphics.

And hwloc-ls is just a symlink to lstopo-no-graphics in all cases. So
just use lstopo and you'll be happy.

The reason for not being a symlink to lstopo is likely that lstopo
doesn't always exist. It depends how hwloc is packaged. On Debian, you
have either a package with lstopo-no-graphics and a lstopo symlink, or
another package with lstopo-no-graphics and lstopo binaries. On
Fedora/... you always have a package that contains lstopo-no-graphics
with no lstopo at all, and you can add another package with the
graphical lstopo on top of it.

Maybe we should just drop hwloc-ls to avoid the confusion. But several
people are used to it already.
Also we added a hwloc-ls desktop file recently, I guess it points to a
non-graphical, which isn't good.
I can make hwloc-ls a real program that checks whether lstopo exists
before it runs lstopo or lstopo-no-graphics ?

Brice




Re: [hwloc-users] hwloc-ls graphical output

2014-09-24 Thread Dennis Jacobfeuerborn
On 25.09.2014 02:08, Dennis Jacobfeuerborn wrote:
> On 25.09.2014 02:05, Samuel Thibault wrote:
>> Dennis Jacobfeuerborn, le Thu 25 Sep 2014 02:01:48 +0200, a écrit :
>>> The question I guess is how does the command determine the availability
>>> of png as an output? Both cairo and libpng are installed.
>>
>> It depends on the backends which were built into cairo.
> 
> Hm, I just recompiled 1.9 on my desktop system and now the graphical
> output options are gone there too. Before I used the distribution
> supplied version 1.4 and had the output options for png, pdf, etc.
> 
> So the cairo backends are available but it seems the newly compiled
> version of hwloc refuses to use them.

So I just recompiled again but using version 1.4.3 and the graphical
output options reappeared. I also tried version 1.5.2 and this version
will not show the graphical output options anymore so it seems something
has changed between 1.4 and 1.5 that changes the output options in some way.

Regards,
  Dennis



Re: [hwloc-users] hwloc-ls graphical output

2014-09-24 Thread Samuel Thibault
Dennis Jacobfeuerborn, le Thu 25 Sep 2014 02:01:48 +0200, a écrit :
> The question I guess is how does the command determine the availability
> of png as an output? Both cairo and libpng are installed.

It depends on the backends which were built into cairo.

Samuel


Re: [hwloc-users] hwloc-ls graphical output

2014-09-24 Thread Dennis Jacobfeuerborn
On 25.09.2014 01:39, Samuel Thibault wrote:
> Dennis Jacobfeuerborn, le Thu 25 Sep 2014 01:31:21 +0200, a écrit :
>> I'm not sure why it would draw to an x11 window?
> 
> Well, that's what we would call a "graphical output" :)
> 
> So I guess you are saying that making a .png or .pdf doesn't work?  Does
> hwloc-ls --help list them as supported output formats?

Supported output file formats: console, txt, fig, xml, synthetic

The question I guess is how does the command determine the availability
of png as an output? Both cairo and libpng are installed.

> If not, not only cairo is needed, but cairo itself needs to have support for
> pdf/ps/png/svg built it.  I don't know how it was built on your system, but
> perhaps that is what is missing?
> 
> At worse, you can use the .fig format, and use fig2dev to convert them. Or you
> can export to .xml and render graphically on your workstation from the .xml
> file.

The XML route would probably best as a fallback though it would still be
interesting to find out why hwloc-ls thinks it cannot do png output.

Regards,
  Dennis