@@ -1763,7 +1763,8 @@ static void ggml_vk_print_gpu_info(size_t idx) {
17631763 fp16 = fp16 && vk12_features.shaderFloat16 ;
17641764
17651765 std::string device_name = props2.properties .deviceName .data ();
1766- std::cerr << GGML_VK_NAME << idx << " : " << device_name << " (" << driver_props.driverName << " ) | uma: " << uma << " | fp16: " << fp16 << " | warp size: " << subgroup_size << std::endl;
1766+ GGML_LOG_DEBUG (" ggml_vulkan: %d = %s (%s) | uma: %d | fp16: %d | warp size: %d\n " ,
1767+ idx, device_name.c_str (), driver_props.driverName , uma, fp16, subgroup_size);
17671768
17681769 if (props2.properties .deviceType == vk::PhysicalDeviceType::eCpu) {
17691770 std::cerr << " ggml_vulkan: Warning: Device type is CPU. This is probably not the device you want." << std::endl;
@@ -1821,8 +1822,7 @@ void ggml_vk_instance_init() {
18211822 };
18221823 validation_features.setPNext (nullptr );
18231824 instance_create_info.setPNext (&validation_features);
1824-
1825- std::cerr << " ggml_vulkan: Validation layers enabled" << std::endl;
1825+ GGML_LOG_DEBUG (" ggml_vulkan: Validation layers enabled\n " );
18261826 }
18271827 vk_instance.instance = vk::createInstance (instance_create_info);
18281828
@@ -1936,8 +1936,8 @@ void ggml_vk_instance_init() {
19361936 vk_instance.device_indices .push_back (0 );
19371937 }
19381938 }
1939+ GGML_LOG_DEBUG (" ggml_vulkan: Found %d Vulkan devices:\n " , vk_instance.device_indices .size ());
19391940
1940- std::cerr << " ggml_vulkan: Found " << vk_instance.device_indices .size () << " Vulkan devices:" << std::endl;
19411941
19421942 for (size_t i = 0 ; i < vk_instance.device_indices .size (); i++) {
19431943 ggml_vk_print_gpu_info (i);
0 commit comments