Skip to content

Commit 1c40582

Browse files
committed
Also disable coopmats on amdvlk
1 parent 9131c59 commit 1c40582

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
@@ -2149,7 +2149,7 @@ static vk_device ggml_vk_get_device(size_t idx) {
21492149

21502150
device->fp16 = !force_disable_f16 && fp16_storage && fp16_compute;
21512151

2152-
if (device->vendor_id == VK_VENDOR_ID_INTEL || (device->vendor_id == VK_VENDOR_ID_AMD && driver_props.driverID == vk::DriverId::eAmdProprietary)) {
2152+
if (device->vendor_id == VK_VENDOR_ID_INTEL || (device->vendor_id == VK_VENDOR_ID_AMD && (driver_props.driverID == vk::DriverId::eAmdProprietary || driver_props.driverID == vk::DriverId::eAmdOpenSource))) {
21532153
// Intel drivers don't support coopmat properly yet
21542154
// Only RADV supports coopmat properly on AMD
21552155
device->coopmat_support = false;
@@ -2536,7 +2536,7 @@ static void ggml_vk_print_gpu_info(size_t idx) {
25362536
}
25372537
}
25382538

2539-
if (props2.properties.vendorID == VK_VENDOR_ID_INTEL || (props2.properties.vendorID == VK_VENDOR_ID_AMD && driver_props.driverID == vk::DriverId::eAmdProprietary)) {
2539+
if (props2.properties.vendorID == VK_VENDOR_ID_INTEL || (props2.properties.vendorID == VK_VENDOR_ID_AMD && (driver_props.driverID == vk::DriverId::eAmdProprietary || driver_props.driverID == vk::DriverId::eAmdOpenSource))) {
25402540
// Intel drivers don't support coopmat properly yet
25412541
// Only RADV supports coopmat properly on AMD
25422542
coopmat_support = false;

0 commit comments

Comments
 (0)