Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b3569 #289

Merged
merged 4 commits into from
Aug 11, 2024
Merged

b3569 #289

merged 4 commits into from
Aug 11, 2024

Conversation

Nexesenex
Copy link
Owner

No description provided.

mtavenrath and others added 4 commits August 11, 2024 10:09
…ronization overhead. (#8943)

* Optimize Vulkan backend for better CPU performance and less GPU synchronization overhead.

- Allocation overhead for the temporary std::vectors was easily detectable with a sampling profiler and simple to remove.
- ggml_vk_sync_buffer introduce a full pipeline sync which has a significant cost on the GPU side, sometimes larger than the actual kernel execution. Adding only barriers for shader read/writes and transfers seems to be sufficient looking at the code which either launches compute kernels or copies tensors.

* Fix small typo

---------

Co-authored-by: 0cc4m <[email protected]>
Co-authored-by: Neo Zhang <>
@github-actions github-actions bot added documentation Improvements or additions to documentation ggml SYCL Vulkan labels Aug 11, 2024
@Nexesenex Nexesenex merged commit 8c2c03f into Nexesenex:patch-1 Aug 11, 2024
82 of 103 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation ggml SYCL Vulkan
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants