Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- If the tasks do not depend on each other such as using channels or pipes, then they should all run immediately one after the other (appearing to launch almost at the same time) once event1 has been completed. --- Quote End --- Not really; the last parameter of clEnqueueTask() is "an event object that identifies this particular kernel execution instance" (https://www.khronos.org/registry/opencl/sdk/1.2/docs/man/xhtml/clenqueuetask.html). So, in the code above I'm not sure what will happen. Probably, it will work but you have no control over what is in event1.