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

2014-09-25 Thread Dennis Jacobfeuerborn
On 25.09.2014 02:22, Dennis Jacobfeuerborn wrote:
> 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.

I found the reason though I'm not sure what the proper fix is. In
version 1.4 the hwloc-ls command is apparently a symlink to lstopo
whereas in all later versions it is a symlink to lstopo-no-graphics.
Using lstopo directly shows the graphical output options.
How and where does the build process determine which of the two commands
to link to?

Regards,
  Dennis



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 Dennis Jacobfeuerborn
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.

Regards,
  Dennis


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


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

2014-09-24 Thread Dennis Jacobfeuerborn
Hi,
I'm not sure why it would draw to an x11 window? I ran this on a server
so x11 is not installed.
X11/Xlib.h and X11/Xutil.h are both available under /usr/include on the
build system.

Regards,
  Dennis

On 24.09.2014 18:15, Brice Goglin wrote:
> Hello
> 
> Are there any graphical formats in lstopo -h ? If so maybe Cairo can export 
> to png etc but it cant draw a x11 window?
> Check whether X11/Xlib.h and X11/Xutil.h are available.
> 
> Brice
> 
> 
> 
> On 24 septembre 2014 18:08:31 UTC+02:00, Dennis Jacobfeuerborn 
>  wrote:
>> Hi,
>> I just compiled hwloc for CentOS 6 and while text output for example
>> works fine hwloc-ls tells me that the graphical output formats are not
>> available an I'm not sure why that is. During compilation I got the
>> following output:
>>
>> ...
>> -
>> Hwloc optional build support status (more details can be found above):
>>
>> Probe / display I/O devices: PCI(linux)
>> Graphical output (Cairo):yes
>> XML input / output:  full
>> libnuma memory support:  yes
>> Plugin support:  no
>> -
>> ...
>>
>> Is there something specific required to really enable the graphical
>> output modes?
>>
>> Regards,
>>  Dennis
>> ___
>> hwloc-users mailing list
>> hwloc-us...@open-mpi.org
>> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users
>> Link to this post:
>> http://www.open-mpi.org/community/lists/hwloc-users/2014/09/1088.php
> 



[hwloc-users] hwloc-ls graphical output

2014-09-24 Thread Dennis Jacobfeuerborn
Hi,
I just compiled hwloc for CentOS 6 and while text output for example
works fine hwloc-ls tells me that the graphical output formats are not
available an I'm not sure why that is. During compilation I got the
following output:

...
-
Hwloc optional build support status (more details can be found above):

Probe / display I/O devices: PCI(linux)
Graphical output (Cairo):yes
XML input / output:  full
libnuma memory support:  yes
Plugin support:  no
-
...

Is there something specific required to really enable the graphical
output modes?

Regards,
  Dennis