Skip to content

Commit

Permalink
Fix synchronization problem for AMD Radeon with amdvlk driver or windows
Browse files Browse the repository at this point in the history
drivers. Does not have any performance or fidelity effect on other gpu/driver
combos I've tested.

FIXES: nomic-ai/gpt4all#1507
  • Loading branch information
manyoso authored and cebtenzzre committed Nov 3, 2023
1 parent 8d9efbf commit 74ddf0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kompute/src/OpAlgoDispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ OpAlgoDispatch::record(const vk::CommandBuffer& commandBuffer)
this->mAlgorithm->getTensors()) {
tensor->recordPrimaryBufferMemoryBarrier(
commandBuffer,
vk::AccessFlagBits::eTransferWrite,
vk::AccessFlagBits::eShaderWrite,
vk::AccessFlagBits::eShaderRead,
vk::PipelineStageFlagBits::eTransfer,
vk::PipelineStageFlagBits::eComputeShader,
vk::PipelineStageFlagBits::eComputeShader);
}

Expand Down

0 comments on commit 74ddf0f

Please sign in to comment.