kompute icon indicating copy to clipboard operation
kompute copied to clipboard

Validate if mapped memory should always have flush and the workflow in which it should be done

Open axsaucedo opened this issue 4 years ago • 0 comments

Currently the way that memory is mapped into host memory is always flushed. This in theory is only necessary if the host bit is not coherent, so should ensure this doesn't have a performance issue, or alternatively make sure it's only carried out if the memory has to be flushed (ie if the memory host bit is not coherent).

ie https://github.com/axsaucedo/vulkan-kompute/blob/af4f429d4df40e3b963bc2e106ba0756e80f1d29/src/Tensor.cpp#L202-L212

axsaucedo avatar Sep 02 '20 20:09 axsaucedo