Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion tcl-hwloc 0.2
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andreas Kupries  
View profile  
 More options Oct 17 2011, 11:24 pm
Newsgroups: comp.lang.tcl
From: Andreas Kupries <akupr...@shaw.ca>
Date: Mon, 17 Oct 2011 20:24:09 -0700
Local: Mon, Oct 17 2011 11:24 pm
Subject: [ANN] tcl-hwloc 0.2

*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 <akupr...@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/
--------------------------------------------------------------------------- ----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.