Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] lstopo --top
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2013-06-21 07:57:15


I don't think there's currently any way to do that. Coloring Misc
objects with user-given colors shouldn't be hard to do, assuming we have
a real need to put that feature in the official hwloc?

Brice

Le 20/06/2013 21:33, Jiri Hladky a écrit :
>
>
> On Tue, Jun 18, 2013 at 5:32 PM, Samuel Thibault
> <samuel.thibault_at_[hidden] <mailto:samuel.thibault_at_[hidden]>> wrote:
>
> Hello,
>
> Jiri Hladky, le Tue 18 Jun 2013 17:18:15 +0200, a écrit :
> > I would like to check the possibilities to visualize the results
> to the output
> > similar to lstopo --top (see the attachment). I would like to
> write a simple
> > utility which will
> > * parse the above file
> > * foreach timestep create an output similar to lstopo --top
> output showing,
> > where each job was running
>
> It should be easy to do: create a program which
>
> - detects the topology as usual
> - for each of these lines:
> PID #CPU #CPU #CPU #CPU
> PID #CPU #CPU #CPU
> call hwloc_topology_insert_misc_object_by_cpuset(topology, cpuset,
> PID)
> - export the topology as xml file.
>
> and then for each job output, run it and run lstopo on the
> generated xml
> file.
>
> Samuel
> _______________________________________________
> hwloc-devel mailing list
> hwloc-devel_at_[hidden] <mailto:hwloc-devel_at_[hidden]>
> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-devel
>
>
> Hi Samuel,
>
> thanks for the advice, I got it working! :-) It's a little bit
> overhead with a XML file but the C program is really short and easy.
>
> Now comes a hard question - can the background color of the created
> box in lstopo output be easily changed? The idea is to have time axes
> color coded. So for the format
>
> PID #CPU #CPU #CPU #CPU
> PID #CPU #CPU #CPU
>
> For time=1 use color red
> For time=2 use color blue
>
> and so on. The idea is to display the file above in one PNG picture so
> that you can easily see if more jobs were running on the same CPU
> simultaneously.
>
> Thanks
> Jirka
>
>
> _______________________________________________
> hwloc-devel mailing list
> hwloc-devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-devel