Draft: Add basic state tracking to the host-side positions buffer
Tracking the state of the host-side buffer will allow to make the conditionals on where the copy is executed simpler. The state can be:
-
Consistent, when the data on the host-side is consistent with the device-side counterpart.
-
InTransit, when the device to host copy was issued, but may not be completed yet.
-
Invalid, when buffer was or is being updated on the device and this is not yet reflected on the host side.
Refs. #3988
Refs. #3020
Edited by Artem Zhmurov