Skip to content

Commit dcbe214

Browse files
committed
Switching from std::error to GGML_LOG_ERROR for better Android visibility
1 parent 06c1e4a commit dcbe214

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,6 +3137,8 @@ static vk_device ggml_vk_get_device(size_t idx) {
31373137
}
31383138

31393139
if (!vk11_features.storageBuffer16BitAccess) {
3140+
// We need this for Android, because we don't know until we test if a device has 16-bit storage.
3141+
GGML_LOG_ERROR("ggml_vulkan: device %s %d does not support 16-bit storage.", GGML_VK_NAME, idx);
31403142
std::cerr << "ggml_vulkan: device " << GGML_VK_NAME << idx << " does not support 16-bit storage." << std::endl;
31413143
throw std::runtime_error("Unsupported device");
31423144
}

0 commit comments

Comments
 (0)