Skip to content

Commit b686eff

Browse files
makaveli10zoq
authored andcommitted
vulkan: Change uint32 cast to int32 for outprod; allows android compilation
Signed-off-by: vineet <[email protected]>
1 parent 00f8459 commit b686eff

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
@@ -9301,7 +9301,7 @@ static void ggml_vk_out_prod(ggml_backend_vk_context * ctx, vk_context& subctx,
93019301
(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,
93029302
(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,
93039303
0,
9304-
0.0f, (float) r2, (uint32_t) r3
9304+
0.0f, (float) r2, (int32_t) r3
93059305
}, dryrun);
93069306
}
93079307

0 commit comments

Comments
 (0)