mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-12 03:49:09 +00:00
perf: optimize Vulkan kernels, graph fusion, and workspace reuse (#2251)
This commit is contained in:
1 parent
e239e4b0fd
commit
0a067120b3
6 files changed
+89
-17
No files matched your search
@@ -735,7 +735,7 @@ ComputeWorkspace::Measurement GGMLRunner::measure(ggml_cgraph* graph, const std:
|
||||
auto assign_nodes = [&](ggml_backend_sched_t scheduler, ggml_cgraph* copy) {
|
||||
pin_multi_device_nodes(scheduler, copy, graph);
|
||||
};
|
||||
return workspace_.measure(graph, external_backend, assign_nodes);
|
||||
return workspace_.measure(graph, external_backend, assign_nodes, !is_multi_device());
|
||||
}
|
||||
|
||||
std::vector<DeviceMemoryRequest> GGMLRunner::memory_requests(
|
||||
|
||||
Reference in new issue
Block a user