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

Reply via email to