I’m editing texture which is in cudaArray.
Access patterns are random and I would like to know if texture in cudaArray is somehow synchronized?
I mean what happens if two blocks/threads try to access the same pixel (i.e. change color) at the same time using code from examples:
float* pixelPtr = reinterpret_cast<float*>((m_surfacePtr + y * m_pitch)) + sizeof(float) * x; pixelPtr = R; pixelPtr = G; pixelPtr = B; pixelPtr = A;