Skip to content

Commit bc7dd9f

Browse files
committed
vulkan: Change uint32 cast to int32 for outprod; allows android compilation
Signed-off-by: vineet <[email protected]>
1 parent 0721550 commit bc7dd9f

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
@@ -7964,7 +7964,7 @@ static void ggml_vk_out_prod(ggml_backend_vk_context * ctx, vk_context& subctx,
79647964
(uint32_t)src1->ne[0], (uint32_t)src1->ne[1], (uint32_t)src1->ne[2],(uint32_t)src1->ne[3], (uint32_t)src1->nb[0] / src1_type_size, (uint32_t)src1->nb[1] / src1_type_size, (uint32_t)src1->nb[2] / src1_type_size, (uint32_t)src1->nb[3] / src1_type_size,
79657965
(uint32_t) dst->ne[0], (uint32_t) dst->ne[1], (uint32_t) dst->ne[2],(uint32_t) dst->ne[3], (uint32_t) dst->nb[0] / dst_type_size, (uint32_t) dst->nb[1] / dst_type_size, (uint32_t) dst->nb[2] / dst_type_size, (uint32_t) dst->nb[3] / dst_type_size,
79667966
0,
7967-
0.0f, (float) r2, (uint32_t) r3
7967+
0.0f, (float) r2, (int32_t) r3
79687968
}, dryrun);
79697969
}
79707970

0 commit comments

Comments
 (0)