Re: [hwloc-users] Getting a graphics view for anon graphic system...

2010-07-02 Thread Brice Goglin
Le 09/06/2010 21:52, Brice Goglin a écrit :
> Le 09/06/2010 21:41, Jeff Squyres a écrit :
>   
>> On Jun 6, 2010, at 4:03 PM, Olivier Cessenat wrote:
>>
>>   
>> 
>>> What you write is clear to computer scientists, but I failed to figure
>>> out what it meant. Sorry, it is clear now !
>>> 
>>>   
>> FWIW, there's a section about "output formats" in the hwloc-ls.1 man page.  
>> It's probably worth adding a sentence in there that the list in the man page 
>> applies to the filenames; i.e., that the filename determines the output 
>> format.
>>   
>> 
> By the way, I wonder if we should have explicit --input and --output
> options to clarify the lstopo command-line.
> For instance
> lstopo --xml file.xml file2.png
> would be better written as
> lstopo --input file.xml --output file2.png
>
> So basically, I am saying that --input/-i would be a superset of our
> current --xml, --synthetic and --fsroot. And --output/-o would be
> implicit when passing an filename argument on the command line. And we
> could have --output-format/--of to enforce the output without looking at
> the filename extension (and maybe --input-format/--if to enforce
> xml/synthetic/fsroot).
>   

Most of the above (except the addition of an explicit --output before
the filename) is available in the lstopo branch.

Brice



Re: [hwloc-users] Getting a graphics view for anon graphic system...

2010-06-09 Thread Brice Goglin
Le 09/06/2010 21:41, Jeff Squyres a écrit :
> On Jun 6, 2010, at 4:03 PM, Olivier Cessenat wrote:
>
>   
>> What you write is clear to computer scientists, but I failed to figure
>> out what it meant. Sorry, it is clear now !
>> 
> FWIW, there's a section about "output formats" in the hwloc-ls.1 man page.  
> It's probably worth adding a sentence in there that the list in the man page 
> applies to the filenames; i.e., that the filename determines the output 
> format.
>   

By the way, I wonder if we should have explicit --input and --output
options to clarify the lstopo command-line.
For instance
lstopo --xml file.xml file2.png
would be better written as
lstopo --input file.xml --output file2.png

So basically, I am saying that --input/-i would be a superset of our
current --xml, --synthetic and --fsroot. And --output/-o would be
implicit when passing an filename argument on the command line. And we
could have --output-format/--of to enforce the output without looking at
the filename extension (and maybe --input-format/--if to enforce
xml/synthetic/fsroot).

Brice



Re: [hwloc-users] Getting a graphics view for anon graphic system...

2010-06-09 Thread Jeff Squyres
On Jun 6, 2010, at 4:03 PM, Olivier Cessenat wrote:

> What you write is clear to computer scientists, but I failed to figure
> out what it meant. Sorry, it is clear now !

FWIW, there's a section about "output formats" in the hwloc-ls.1 man page.  
It's probably worth adding a sentence in there that the list in the man page 
applies to the filenames; i.e., that the filename determines the output format.

Here's a snipit from the man page:

OUTPUT FORMATS
   -  Send a text summary to stdout.

   /dev/stdout
  Send a text summary to stdout.  It is effectively  the  same  as
  specifying "-".

   .txt
  If the filename ends in ".txt", lstopo outputs an ASCII art rep-
  resentation of the map.

   -.txt  If the entire filename is "-.txt", lstopo outputs the same ASCII
  art  representation as other ".txt" filenames, but with two exe-
  ceptions: 1) the output is sent to stdout, and 2) if colors  are
  supported on the terminal, the ASCII art will be colorized.

   .fig
  If  the filename ends in ".fig", lstopo outputs a representation
  of the map that can be loaded in Xfig.

   .pdf
  If the filename ends in ".pdf" and lstopo was compiled with  the
  proper  support, lstopo outputs a PDF representation of the map.

   .ps
  If the filename ends in ".ps" and lstopo was compiled  with  the
  proper  support,  lstopo  outputs a Postscript representation of
  the map.

   .png
  If the filename ends in ".png" and lstopo was compiled with  the
  proper  support, lstopo outputs a PNG representation of the map.

   .svg
  If the filename ends in ".svn" and lstopo was compiled with  the
  proper support, lstopo outputs an SVG representation of the map.

   .xml
  If the filename ends in ".xml" and lstopo was compiled with  the
  proper support, lstopo outputs an XML representation of the map.
  It may be reused later, even on  another  machine,  with  lstopo
  --xml,   the   HWLOC_XMLFILE   environment   variable,   or  the
  hwloc_topology_set_xml() function.

   See the output of "lstopo --help" for a specific list of what graphical
   output formats are supported in your hwloc installation.


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/