Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ANN] tcl-hwloc 0.2

15 views
Skip to first unread message

Andreas Kupries

unread,
Oct 17, 2011, 11:24:09 PM10/17/11
to

*tcl-hwloc*
is a binding to "hwloc", the "Portable Hardware Locality".

In hwloc's words:

The Portable Hardware Locality (hwloc) software package
provides a portable abstraction (across OS, versions,
architectures, ...) of the hierarchical topology of modern
architectures, including NUMA memory nodes, sockets, shared
caches, cores and simultaneous multithreading. It also gathers
various system attributes such as cache and memory
information. It primarily aims at helping applications with
gathering information about modern computing hardware so as to
exploit it accordingly and efficiently.

This functionality is now accessible from within Tcl as well.

Please give thanks to George Andreou, who wrote it during this
year's Google's Summmer Of Code.

The project can be found at

http://code.google.com/p/tcl-hwloc/

Building it assumes that 'hwloc' is already installed on your
system. You need hwloc 1.2 or higher.


The package is currently at only version 0.2 because I hope to get
more feedback from users regarding the exposed API before making it
final.

Examples of use:

* Take a thread pool, and size the pool to match the number of
CPU(s) in the system (or maybe a small multiple thereof).

* Force a particular thread to run on a specific CPU (core,
processing unit, etc.). I.e. spread the load, if there are
many threads.

* Simply use it write a Tcl/Tk equivalent of hwloc's "lstopo"
command.

Hopefully you can think of more things this is useful for.

For background, this is what became of the withdrawn TIP 377

http://tip.tcl.tk/377.html
Portably Determining the Number of Processors in the System

--
So long,
Andreas Kupries <akup...@shaw.ca>
<http://www.purl.org/NET/akupries/>
Developer @ <http://www.activestate.com/>
18'th Annual Tcl/Tk Conference: 2011, Manassas, VA USA
http://www.tcl.tk/community/tcl2011/
-------------------------------------------------------------------------------

AndreasK

unread,
Oct 18, 2011, 6:38:38 PM10/18/11
to
On Oct 17, 8:24 pm, Andreas Kupries <akupr...@shaw.ca> wrote:
> *tcl-hwloc*
>         is a binding to "hwloc", the "Portable Hardware Locality".

As of a fw minutes ago ActiveState's builds are in the TEApot.

% teacup list --all-platforms hwloc
entity name version platform
------- -------- ------- ---------------------
package tclhwloc 0.2 linux-glibc2.3-ix86
package tclhwloc 0.2 linux-glibc2.3-x86_64
package tclhwloc 0.2 solaris2.8-sparc
package tclhwloc 0.2 solaris2.10-ix86
------- -------- ------- ---------------------

This one is currently a bit limited regarding the supported platforms.
Sorry about that.

--
Andreas

0 new messages