[PyCuda] async memcpy
Nicholas Tung
ntung at ntung.com
Wed Mar 11 18:44:26 PDT 2009
On Wed, Mar 11, 2009 at 16:56, Andreas Klöckner <lists at informa.tiker.net>wrote:
> On Mittwoch 11 März 2009, you wrote:
> > Hi Andreas,
> >
> > For asynchronous memory copies, what do I use to load data to a
> > page-locked array?
>
> > Does page_locked[:] = original[:] work?
>
> That should do it. Even if it comes out pagelocked_something(), it's just a
> plain old numpy array, just in special memory.
>
> Andreas
Thanks. However, when I try to do any GPU operations on separate threads, I
get [e.g.]
"LogicError: cuStreamCreate failed: invalid context"
Is this avoidable?
Thanks,
Nicholas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20090311/9b980c97/attachment-0001.htm>
More information about the PyCUDA
mailing list