I search for a means to transfer data from two HOST buffers into a single DEVICE buffer in the following strided way:
Below are the two host buffers Host_buffer_1 = [0 5] // copy to device with a stride equals to 5 Host_buffer_2 = [1 2 3 4 6 7 8 9] // each region of 4 numbers copy with a stride
I need the resulting Device buffer to be device buffer [0 1 2 3 4 5 6 7 8 9]
Do I have to realize it on the HOST first and then a normal transfer to the device, or do you know a means to achieve this using clEnqueueWriteBufferRect function for instance, but this function does not have any stride parameter, right?
Thanks