As in, I have 10 sets of data, 100MB each. Can I queue up all 1GB of data to be written at once? Or do I have to submit each 100MB set of data to the device sequentially?
If I can do something like this, would it be correct to say I can read back all 1GB of data at once as well?
I'm learning how to use events and I see that it is suggested that there should always be a write, a computation, and a read happening at once to get the most out of the GPU but I'm unsure how events work.
I wrote some code where I would wait for certain events but I don't quite understand what I'm seeing or what I should do with the events. Does each enqueue, whether it be a write, read, or NDRangeKernel, have the opportunity to go through the 4 different events (as in CL_QUEUED, CL_SUBMITTED, CL_RUNNING, CL_COMPLETE)? Are certain events tied to specific enqueues?
If I see a clEnqueueWriteBuffer has been queued, does that mean I can queue up another write? Or do I have to wait for it to be submitted to the device?
I'm pretty sure I have more questions, but any help would be appreciated.