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 easier. I've created a git branch
called "cudart" which I hope has a proper implementation of those bindings.
I can't build it because hwloc's cudart.h needs cuda.h from the CUDA driver
development files, which I do not have.
On an RPM based system you should be able to "make rpm".  On other
platforms the setup.py should build the bindings for you to try. I
implemented test/cudart.py, patterned after the test/cudart.c from hwloc.

--Guy

On Sat, Sep 2, 2017 at 6:42 AM Jeff Squyres (jsquyres) <jsquy...@cisco.com>
wrote:

> Guy --
>
> This is tremendous.  Thank you!
>
>
> > On Sep 1, 2017, at 6:32 PM, Guy Streeter <guy.stree...@gmail.com> 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 Fedora 25 and Cento 7
> as well.
> >
> > There are 2 important hosting changes for python-hwloc: the fdeorahosted
> git server has been deactivated, and I no longer host files at redhat.com.
> >
> > The new location of the python-hwloc git tree is
> >  https://gitlab.com/guystreeter/python-hwloc
> >
> > RPM repos for Fedora 25 and 26 and Centos 7 (EPEL) are found at
> >  https://copr.fedorainfracloud.org/coprs/streeter/python-hwloc/
> >
> > Other important changes:
> >
> > Documentation! I wrote a programmer's guide of sorts. It describes all
> the classes and their methods, and has a few examples.
> >
> > For non-RPM distros, setup.py should now be usable to build and install
> python-hwloc. Just run it with python2 or python3 (or both) to build the
> correct version. Building requires Cython, and the development files for
> several other packages. See the lines containing "BuildRequires" in the
> top-level python-hwloc.spec file for a list.
> >
> > One last note about the state of python-hwloc development: I don't have
> access to a system with CUDA development files or CUDA devices, so I have
> not completed the implementation of CUDA-related features.
> >
> > I'm in the process of writing (slowly, I'm still retired) a GUI program
> in Python to assist in setting process affinities. I'll post when I have it
> in a usable state.
> >
> > Let me know if you are interested in seeing any changes, or have any
> problems, in python-hwloc.
> >
> > regards,
> > --Guy Streeter
> >
> > _______________________________________________
> > hwloc-devel mailing list
> > hwloc-devel@lists.open-mpi.org
> > https://lists.open-mpi.org/mailman/listinfo/hwloc-devel
>
>
> --
> Jeff Squyres
> jsquy...@cisco.com
>
> _______________________________________________
> hwloc-devel mailing list
> hwloc-devel@lists.open-mpi.org
> https://lists.open-mpi.org/mailman/listinfo/hwloc-devel
>
_______________________________________________
hwloc-devel mailing list
hwloc-devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/hwloc-devel

Reply via email to