[hwloc-devel] python bindings

2011-01-17 Thread Guy Streeter
I am currently working to get a public git repository set up so that I can share the work. In the meantime, my first pass at python bindings for hwloc are available from http://people.redhat.com/streeter/ There are rpm files and a source tarball there. The tarball has implementations of some

Re: [hwloc-devel] python bindings

2011-01-18 Thread Jeff Squyres
Are the abstractions anything like Bernd's perl bindings, perchance? http://search.cpan.org/~bka/ On Jan 17, 2011, at 3:02 PM, Guy Streeter wrote: > I am currently working to get a public git repository set up so that I can > share the work. In the meantime, my first pass at python binding

Re: [hwloc-devel] python bindings

2011-01-18 Thread Guy Streeter
On 01/18/2011 06:47 AM, Jeff Squyres wrote: Are the abstractions anything like Bernd's perl bindings, perchance? http://search.cpan.org/~bka/ On Jan 17, 2011, at 3:02 PM, Guy Streeter wrote: I am currently working to get a public git repository set up so that I can share the work. In t

Re: [hwloc-devel] python bindings

2011-01-20 Thread Samuel Thibault
Hello, Guy Streeter, le Mon 17 Jan 2011 21:03:04 +0100, a écrit : > I am currently working to get a public git repository set up so that I can > share the work. In the meantime, my first pass at python bindings for hwloc > are available from > > http://people.redhat.com/streeter/ Here are some

Re: [hwloc-devel] python bindings

2011-01-20 Thread Guy Streeter
On 01/20/2011 11:32 AM, Samuel Thibault wrote: Hello, Guy Streeter, le Mon 17 Jan 2011 21:03:04 +0100, a écrit : I am currently working to get a public git repository set up so that I can share the work. In the meantime, my first pass at python bindings for hwloc are available from http://peop

Re: [hwloc-devel] python bindings

2011-01-20 Thread Jeff Squyres
On Jan 20, 2011, at 12:32 PM, Samuel Thibault wrote: > Apart from these nasty details, I like the interface style, thanks for > the nice contribution ! :) +1 I was more curious on whether the hwloc bindings interfaces for perl and python would be similar. It looks like they will be a bit diffe

Re: [hwloc-devel] python bindings

2011-01-20 Thread Samuel Thibault
Guy Streeter, le Thu 20 Jan 2011 19:02:52 +0100, a écrit : > On 01/20/2011 11:32 AM, Samuel Thibault wrote: > >>topo = hwloc.hwloc_topology() > >>assert obj.type == hwloc.HWLOC_OBJ_PU > >>orig = hwloc.hwloc_bitmap.alloc() > > > >Mmm, why repeating "hwloc"? > > I think removing the "hwloc_" prefix

Re: [hwloc-devel] python bindings

2011-01-20 Thread Bernd Kallies
On Thu, 2011-01-20 at 13:08 -0500, Jeff Squyres wrote: > On Jan 20, 2011, at 12:32 PM, Samuel Thibault wrote: > > > Apart from these nasty details, I like the interface style, thanks for > > the nice contribution ! :) > > +1 > > I was more curious on whether the hwloc bindings interfaces for per

Re: [hwloc-devel] python bindings

2011-01-20 Thread Samuel Thibault
Bernd Kallies, le Thu 20 Jan 2011 20:13:03 +0100, a écrit : > The only thing I was wondering about are these OO method names, which I > had to invent them myself. If there is some need to synchronize these > with the python binding, we may agree about them. Backwards > compatibility of the Perl bin

Re: [hwloc-devel] python bindings

2011-01-20 Thread Bernd Kallies
On Thu, 2011-01-20 at 20:22 +0100, Samuel Thibault wrote: > Bernd Kallies, le Thu 20 Jan 2011 20:13:03 +0100, a écrit : > > The only thing I was wondering about are these OO method names, which I > > had to invent them myself. If there is some need to synchronize these > > with the python binding,

Re: [hwloc-devel] python bindings

2011-01-20 Thread Guy Streeter
On 01/20/2011 01:22 PM, Samuel Thibault wrote: Bernd Kallies, le Thu 20 Jan 2011 20:13:03 +0100, a écrit : The only thing I was wondering about are these OO method names, which I had to invent them myself. If there is some need to synchronize these with the python binding, we may agree about the

Re: [hwloc-devel] python bindings

2011-01-21 Thread Samuel Thibault
Guy Streeter, le Thu 20 Jan 2011 20:57:24 +0100, a écrit : > I added some iterators: > bitmap.all_set_bits > obj.infos > topology.objs_by_depth > topology.objs_by_type > > I also made obj.children an iterator. > I think I could do the same with siblings and cousins if that makes sense. I think it

[hwloc-devel] python bindings for libhwloc?

2010-11-19 Thread Guy Streeter
Has anyone worked on or expressed interest in python bindings for the hwloc library? I do most of my work in python and would find it useful. I threw together a python implementation of the hwloc-hello program in python, using ctypes to access the library. It was fairly straight-forward. I woul

[hwloc-devel] Python bindings for hwloc

2017-09-01 Thread Guy Streeter
I'm still retired, but I found time to update python-hwloc for hwloc version 1.11.5, the version currently shipped in Fedora 26. I made some bug-fixes along the way, and built new versions for Fedora 25 and Cento 7 as well. There are 2 important hosting changes for python-hwloc: the fdeorahosted g

Re: [hwloc-devel] python bindings for libhwloc?

2010-11-20 Thread Brice Goglin
Le 19/11/2010 22:39, Guy Streeter a écrit : > Has anyone worked on or expressed interest in python bindings for the > hwloc library? I do most of my work in python and would find it useful. > I threw together a python implementation of the hwloc-hello program > in python, using ctypes to access th

Re: [hwloc-devel] python bindings for libhwloc?

2010-11-20 Thread Jeff Squyres
I personally would find such things (and perl bindings) useful. I've written a bunch of perl scripts internally at Cisco that use the hwloc output, and I end up slurping the XML output and working with it that way. But having direct bindings would be better. On Nov 20, 2010, at 9:24 AM, Bri

[hwloc-devel] python bindings for hwloc 1.2

2011-05-19 Thread Guy Streeter
I have updated the python bindings to support hwloc-1.2. They are backward-compatible with 1.1. There is a Fedora rpm and a tarball on http://people.redhat.com/streeter/ and the git archive is git://git.fedorahosted.org/python-hwloc.git ssh://git.fedorahosted.org/git/python-hwloc.git http://git.f

[hwloc-devel] python bindings updated to 1.6

2013-01-04 Thread Guy Streeter
I have finally made the 1.6 additions to python-hwloc. userdata and xml import/export od userdata works. I spent some time trying to find a way to let userdata be a reference to a python object, but in the end decided to leave associating the userdata value with data in python space up to the user

[hwloc-devel] python bindings testing help needed

2013-06-03 Thread Guy Streeter
I'm getting the hwloc-1.7 version of the python bindings ready to go. I've tried to add GL, Intel MIC, NVML, and CUDA support. I can't implement much of CUDA or NVML for lack of python bindings for those libraries, but I did what I could. I can't test any of these for lack of hardware. If you have

Re: [hwloc-devel] Python bindings for hwloc

2017-09-01 Thread Brice Goglin
Hello Thanks a lot! I updated the links on the website. Note that your code should work up to 1.11.8 except for one new topology flag added in 1.11.6. I am not very good at Python but I could help finishing CUDA support if you tell me what's missing and where to look. Brice Le 02/09/2017 00:32, G

Re: [hwloc-devel] Python bindings for hwloc

2017-09-02 Thread Jeff Squyres (jsquyres)
Guy -- This is tremendous. Thank you! > On Sep 1, 2017, at 6:32 PM, Guy Streeter wrote: > > I'm still retired, but I found time to update python-hwloc for hwloc version > 1.11.5, the version currently shipped in Fedora 26. I made some bug-fixes > along the way, and built new versions for Fe

Re: [hwloc-devel] Python bindings for hwloc

2017-09-20 Thread Guy Streeter
I looked at implementing the bindings for the CUDA driver library interfaces, and I can't see a way to add them without implementing (at least partially) Python bindings for the CUDA driver library. That's too much work for a retired person to take on. :) The CUDA runtime library seems a bit easie

Re: [hwloc-devel] python bindings testing help needed

2013-06-04 Thread Brice Goglin
(forgot to CC the list) Le 04/06/2013 10:48, Brice Goglin a écrit : > Hello, > > Here are some slightly fixed tests. cuda/cudart/nvml look good. > intel-mic looks good but I couldn't test on a real machine (I used XML > instead), so the cpuset retrieving code wasn't tested. > > gl doesn't seem to

Re: [hwloc-devel] python bindings testing help needed

2013-06-04 Thread Guy Streeter
On 06/04/2013 03:52 AM, Brice Goglin wrote: > (forgot to CC the list) > > > Le 04/06/2013 10:48, Brice Goglin a écrit : >> Hello, >> >> Here are some slightly fixed tests. cuda/cudart/nvml look good. >> intel-mic looks good but I couldn't test on a real machine (I used XML >> instead), so the cpu

Re: [hwloc-devel] python bindings testing help needed

2013-06-04 Thread Guy Streeter
On 06/04/2013 03:52 AM, Brice Goglin wrote: > (forgot to CC the list) > > > Le 04/06/2013 10:48, Brice Goglin a écrit : >> Hello, >> >> Here are some slightly fixed tests. cuda/cudart/nvml look good. >> intel-mic looks good but I couldn't test on a real machine (I used XML >> instead), so the cpu

Re: [hwloc-devel] python bindings testing help needed

2013-06-05 Thread Brice Goglin
Le 05/06/2013 00:03, Guy Streeter a écrit : > On 06/04/2013 03:52 AM, Brice Goglin wrote: >> (forgot to CC the list) >> >> >> Le 04/06/2013 10:48, Brice Goglin a écrit : >>> Hello, >>> >>> Here are some slightly fixed tests. cuda/cudart/nvml look good. >>> intel-mic looks good but I couldn't test o

Re: [hwloc-devel] python bindings testing help needed

2013-06-05 Thread Guy Streeter
On 06/05/2013 12:29 AM, Brice Goglin wrote: > Le 05/06/2013 00:03, Guy Streeter a écrit : ... >> I think my regular expression code is broken in the gl stuff. Do you have to >> have the hardware and drivers for GL, or could I use an XML file for testing? >> I believe I have the regex for GL fixed

Re: [hwloc-devel] python bindings testing help needed

2013-06-06 Thread Brice Goglin
Le 05/06/2013 21:14, Guy Streeter a écrit : > On 06/05/2013 12:29 AM, Brice Goglin wrote: >> Le 05/06/2013 00:03, Guy Streeter a écrit : > ... >>> I think my regular expression code is broken in the gl stuff. Do you have to >>> have the hardware and drivers for GL, or could I use an XML file for >

[hwloc-devel] python bindings updated for hwloc 1.5 (also, python-libnuma is available)

2012-09-25 Thread Guy Streeter
I have updated python-hwloc to support version 1.5 of hwloc. It is available at git://git.fedorahosted.org/python-hwloc.git as well as rpm packages and source tarball on http://people.redhat.com/streeter/ In the course of this, I added the linux_libnuma calls. python-hwloc now depends on python-