Skip to content

Commit 6833f86

Browse files
committed
disable subgroup shuffle on MoltenVK AMD
1 parent 479618c commit 6833f86

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5583,6 +5583,11 @@ static vk_device ggml_vk_get_device(size_t idx) {
55835583
#endif
55845584
device->subgroup_shuffle = (vk11_props.subgroupSupportedStages & vk::ShaderStageFlagBits::eCompute) &&
55855585
(vk11_props.subgroupSupportedOperations & vk::SubgroupFeatureFlagBits::eShuffle);
5586+
#ifdef __APPLE__
5587+
if (device->vendor_id == VK_VENDOR_ID_AMD) {
5588+
device->subgroup_shuffle = false;
5589+
}
5590+
#endif
55865591
device->subgroup_clustered = (vk11_props.subgroupSupportedStages & vk::ShaderStageFlagBits::eCompute) &&
55875592
(vk11_props.subgroupSupportedOperations & vk::SubgroupFeatureFlagBits::eClustered);
55885593

0 commit comments

Comments
 (0)