Skip to content

Commit a4c329b

Browse files
committed
Add compile flag to force vk performance logging
1 parent 5545231 commit a4c329b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml/src/ggml-vulkan/ggml-vulkan.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4486,7 +4486,11 @@ static void ggml_vk_instance_init() {
44864486
vk_instance.pfn_vkCmdInsertDebugUtilsLabelEXT = (PFN_vkCmdInsertDebugUtilsLabelEXT) vkGetInstanceProcAddr(vk_instance.instance, "vkCmdInsertDebugUtilsLabelEXT");
44874487
}
44884488

4489+
#ifndef FORCE_GGML_VK_PERF_LOGGER
44894490
vk_perf_logger_enabled = getenv("GGML_VK_PERF_LOGGER") != nullptr;
4491+
#else
4492+
vk_perf_logger_enabled = true;
4493+
#endif
44904494

44914495
std::vector<vk::PhysicalDevice> devices = vk_instance.instance.enumeratePhysicalDevices();
44924496

0 commit comments

Comments
 (0)