Moreover, I do not need the actual data to be copied. I just need a view to the middle of an existing array.
On Sun, Feb 10, 2013 at 10:53 AM, Bogdan Opanchuk <[email protected]> wrote: > Hi Alex, > >> Maybe I am misunderstanding, I am not so familiar with the buffer >> terminology (having not dealt much with opencl), > > It is not really OpenCL-specific; basically it's just a wrapper on top > of pointer arithmetic. > >> Would the following be sufficient? >> >> a = pycuda.gpuarray.to_gpu(numpy.zeros(N)) >> >> sub_region1 = a[0:N/4] >> sub_region2 = a[3N/4:N] > > Unfortunately, this produces numpy.ndarray, not another GPUArray. _______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
