cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

m_wagner
Journeyman III

Does streamWrite free the allocated memory on gpu memory?

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?

0 Likes
1 Reply

m.wagner,
After talking to another engineer about this that worked on this part, the allocated and deallocation is done elsewhere. You can verify this by stepping through the code as the source is included in the SDK. However, there is a temporary surface that is allocated for the streamRead/streamWrite on the remote(host) side but it shouldn't cause an issue with a.

0 Likes