Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] python bindings testing help needed
From: Guy Streeter (streeter_at_[hidden])
Date: 2013-06-04 15:08:31


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 cpuset retrieving code wasn't tested.
>>
>> gl doesn't seem to find any GPU, but I don't know enough about Python to
>> debug things. If you have a debugging version, I can test it.
>>
>> By the way, I couldn't find a "libnuma" python package so I used "numa"
>> in hwloc.py instead (that's what PIP was able to install).

I have python-libnuma at
 git://git.fedorahosted.org/python-libnuma.git
or
 http://people.redhat.com/streeter/

I should have included a reminder about that.

>>
>> Are you working on OpenCL too?

The hwloc_opencl_* functions are static function definitions in the opencl.h
file. I'd have to implement them in python instead of writing python
interfaces to the library routines, and I'd need python bindings for the
opencl libraries in order to do that.

--Guy

>>
>> Brice
>>
>>
>>
>> Le 03/06/2013 23:16, Guy Streeter a écrit :
>>> 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 a Linux system
>>> with some appropriate hardware and you can help, please either:
>>>
>>> clone the git repo at
>>> git://git.fedorahosted.org/python-hwloc.git
>>> and then checkout the 1.7-devel branch
>>>
>>> or
>>>
>>> get the tarball from
>>> http://people.redhat.com/streeter/python-hwloc-1.7.tar.bz2
>>> and unpack it.
>>>
>>> Export the PYTHONPATH environment variable to point to the top level
>>> directory, then run the various tests, like:
>>>
>>> python tests/gl.py
>>>
>>> also cuda.py, cudart.py, intel_mic.py, nvml.py
>>>
>>> As I said, the CUDA and NVML tests are only partly implemented.
>>> All the other tests in the tests directory should match the output of the same
>>> test in the hwloc 1.7 source tree.
>>>
>>> Let me know how it goes.
>>> thanks,
>>> --Guy
>>> _______________________________________________
>>> hwloc-devel mailing list
>>> hwloc-devel_at_[hidden]
>>> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-devel
>