[PyCUDA] using libraries with pycuda
lists at informa.tiker.net
Sun Oct 4 15:49:21 PDT 2009
On Dienstag 29 September 2009, Dan Goodman wrote:
> Hi all,
> Has anyone tried using pycuda with a library of GPU code such as CUDPP
>  or chag:pp ? How do you use these in pycuda? Is it just a matter
> of passing some header and lib file directories to nvcc via the
> options=... keyword for SourceModule?
SourceModule won't work because it's meant only for device-side code, and most
of these libraries expose host-side interfaces.
If the library is written with the driver API in mind, it's as simple as
wrapping it into Python using, e.g. Boost.Python, cython, etc. If it is using
the CUDA "runtime" API, it's not quite as simple, because then Nvidia's
idiotic driver/runtime dichotomy kicks in and prevents direct communication.
Luckily, however, I learned at the Nvidia conference last week that a) they're
aware that this is causing problems, and b) this issue will go away in CUDA
3.0, which will be released along with their new hardware.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part.
More information about the PyCUDA