mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-02 14:54:35 +00:00
Fix synchronization problem for AMD Radeon with amdvlk driver or windows
drivers. Does not have any performance or fidelity effect on other gpu/driver combos I've tested. FIXES: https://github.com/nomic-ai/gpt4all/issues/1507
This commit is contained in:
parent
8d9efbf97a
commit
74ddf0f17d
@ -32,9 +32,9 @@ OpAlgoDispatch::record(const vk::CommandBuffer& commandBuffer)
|
|||||||
this->mAlgorithm->getTensors()) {
|
this->mAlgorithm->getTensors()) {
|
||||||
tensor->recordPrimaryBufferMemoryBarrier(
|
tensor->recordPrimaryBufferMemoryBarrier(
|
||||||
commandBuffer,
|
commandBuffer,
|
||||||
vk::AccessFlagBits::eTransferWrite,
|
vk::AccessFlagBits::eShaderWrite,
|
||||||
vk::AccessFlagBits::eShaderRead,
|
vk::AccessFlagBits::eShaderRead,
|
||||||
vk::PipelineStageFlagBits::eTransfer,
|
vk::PipelineStageFlagBits::eComputeShader,
|
||||||
vk::PipelineStageFlagBits::eComputeShader);
|
vk::PipelineStageFlagBits::eComputeShader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user