Skip to content

Commit 1a12157

Browse files
committed
disable this tune for the proprietary driver
1 parent cc091f8 commit 1a12157

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ struct vk_device_struct {
246246
bool pipeline_robustness;
247247
vk::Device device;
248248
uint32_t vendor_id;
249+
vk::DriverId driver_id;
249250
vk_device_architecture architecture;
250251
vk_queue compute_queue;
251252
vk_queue transfer_queue;
@@ -1741,7 +1742,7 @@ static void ggml_vk_load_shaders(vk_device& device) {
17411742
s_warptile_mmq_int = { subgroup_size_32, 32, 32, 32, 32, 32, 2, 2, 1, 1, subgroup_size_8 };
17421743

17431744
// chip specific tuning
1744-
if (device->architecture == AMD_GCN) {
1745+
if ((device->architecture == AMD_GCN) && (device->driver_id != vk::DriverId::eAmdProprietary)) {
17451746
m_warptile_mmq = m_warptile_mmq_int = { 256, 64, 64, 32, 16, 16, 2, 2, 2, 1, 16 };
17461747
}
17471748

@@ -2663,6 +2664,7 @@ static vk_device ggml_vk_get_device(size_t idx) {
26632664
device->physical_device.getProperties2(&props2);
26642665
device->properties = props2.properties;
26652666
device->vendor_id = device->properties.vendorID;
2667+
device->driver_id = driver_props.driverID;
26662668

26672669
const char* GGML_VK_FORCE_MAX_ALLOCATION_SIZE = getenv("GGML_VK_FORCE_MAX_ALLOCATION_SIZE");
26682670

0 commit comments

Comments
 (0)