Skip to content

Commit 73a8e5c

Browse files
dg0ytggerganov
authored andcommitted
vulkan : fix 32-bit builds (ggml/1313)
The pipeline member can be cast to VkPipeline. This is a VkPipeline_T* on 64 bit but a uint64_t on 32 bit. Cf. VK_DEFINE_NON_DISPATCHABLE_HANDLE documentation.
1 parent 92b8810 commit 73a8e5c

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
@@ -1341,7 +1341,7 @@ static void ggml_vk_create_pipeline_func(vk_device& device, vk_pipeline& pipelin
13411341
vk::DebugUtilsObjectNameInfoEXT duoni;
13421342
duoni.objectType = vk::ObjectType::ePipeline;
13431343
duoni.pObjectName = pipeline->name.c_str();
1344-
duoni.objectHandle = reinterpret_cast<uint64_t>(static_cast<VkPipeline_T*>(pipeline->pipeline));
1344+
duoni.objectHandle = /*reinterpret_cast*/(uint64_t)(static_cast<VkPipeline>(pipeline->pipeline));
13451345
vk_instance.pfn_vkSetDebugUtilsObjectNameEXT(device->device, &static_cast<VkDebugUtilsObjectNameInfoEXT &>(duoni));
13461346
}
13471347

0 commit comments

Comments
 (0)