Skip to content

Commit 940bdd8

Browse files
committed
Vulkan: Use zu printf specifier for size_t instead of ld
1 parent 0c74e09 commit 940bdd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ static void ggml_vk_print_gpu_info(size_t idx) {
17641764
fp16 = fp16 && vk12_features.shaderFloat16;
17651765

17661766
std::string device_name = props2.properties.deviceName.data();
1767-
GGML_LOG_DEBUG("ggml_vulkan: %ld = %s (%s) | uma: %d | fp16: %d | warp size: %ld\n",
1767+
GGML_LOG_DEBUG("ggml_vulkan: %zu = %s (%s) | uma: %d | fp16: %d | warp size: %zu\n",
17681768
idx, device_name.c_str(), driver_props.driverName.data(), uma, fp16, subgroup_size);
17691769

17701770
if (props2.properties.deviceType == vk::PhysicalDeviceType::eCpu) {
@@ -1937,7 +1937,7 @@ void ggml_vk_instance_init() {
19371937
vk_instance.device_indices.push_back(0);
19381938
}
19391939
}
1940-
GGML_LOG_DEBUG("ggml_vulkan: Found %ld Vulkan devices:\n", vk_instance.device_indices.size());
1940+
GGML_LOG_DEBUG("ggml_vulkan: Found %zu Vulkan devices:\n", vk_instance.device_indices.size());
19411941

19421942
for (size_t i = 0; i < vk_instance.device_indices.size(); i++) {
19431943
ggml_vk_print_gpu_info(i);

0 commit comments

Comments
 (0)