Skip to content

Commit fec7911

Browse files
authored
vulkan: disable large mmv subgroups on older Nvidia GPUs (ggml-org#15717)
1 parent 078ce23 commit fec7911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4662,7 +4662,7 @@ static vk_pipeline ggml_vk_get_dequantize_mul_mat_vec(ggml_backend_vk_context *
46624662

46634663
// heuristic to choose workgroup size
46644664
uint32_t dmmv_wg = DMMV_WG_SIZE_SUBGROUP;
4665-
if (ctx->device->vendor_id == VK_VENDOR_ID_NVIDIA || ctx->device->vendor_id == VK_VENDOR_ID_INTEL) {
4665+
if ((ctx->device->vendor_id == VK_VENDOR_ID_NVIDIA && ctx->device->architecture != vk_device_architecture::NVIDIA_PRE_TURING) || ctx->device->vendor_id == VK_VENDOR_ID_INTEL) {
46664666
// Prefer larger workgroups when M is small, to spread the work out more
46674667
// and keep more SMs busy.
46684668
// q6_k seems to prefer small workgroup size even for "medium" values of M.

0 commit comments

Comments
 (0)