In order to do a sychronization after streamRead(a, A) I use a streamWrite(a A). Then I perform another streamRead i.e. streamRead(b, B) and start a kernel like my_kernel(a, b, c).
My question: Does the streamWrite(a, A) free the allocated memory of streamRead(a, A) so that it is possible that streamRead(b, B) writes in the memory of *a?