Andreas, Thank you for your reply. When I add mem_flags=pycuda.driver.host_alloc_flags.DEVICEMAP in pagelocked_empty(), it results in error: pycuda._driver.LogicError: cuMemHostAlloc failed: invalid value
Does this mean my card doesn't support this functionality? I'm not sure if it is relevant, but CAN_MAP_HOST_MEMORY entry in pycuda.driver.Context.get_driver().get_attributes() is 1. Thanks, Daisuke On 5 December 2012 16:47, Andreas Kloeckner <[email protected]> wrote: > Daisuke Nishino <[email protected]> writes: > > > Hi, all*. > > > > *I have a problem using pagelocked memory. > > I allocated one with pagelocked_xxx or PageLockedMemoryPool, but how can > I > > pass it into a kernel? > > I put a simple code below. > > What should "aa" be? > > > > aa = pycuda.driver.Out(a) works just fine, but I guess it involves a > copy. > > > http://documen.tician.de/pycuda/driver.html#pycuda.driver.host_alloc_flags.DEVICEMAP > > > http://documen.tician.de/pycuda/driver.html#pycuda.driver.HostPointer.get_device_pointer > > Andreas > > -- Daisuke Nishino
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
