* installing *source* package ‘ggmlR’ ... ** this is package ‘ggmlR’ version ‘0.5.1’ ** package ‘ggmlR’ successfully unpacked and MD5 sums checked ** using staged installation Checking OpenMP support... OpenMP not available, using pthreads fallback Generating src/Makevars... Configuration complete. Vulkan: disabled (use --with-vulkan to enable) ** libs specified C++17 using C compiler: ‘Apple clang version 17.0.0 (clang-1700.6.4.2)’ using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.6.4.2)’ using C++17 using SDK: ‘MacOSX26.2.sdk’ clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -DR_GGML_IO_IMPL -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c r_interface.c -o r_interface.o clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -DR_GGML_IO_IMPL -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c r_interface_graph.c -o r_interface_graph.o In file included from r_interface_graph.c:8: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 11 warnings generated. clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -DR_GGML_IO_IMPL -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c r_interface_vulkan.c -o r_interface_vulkan.o clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -DR_GGML_IO_IMPL -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c r_interface_scheduler.c -o r_interface_scheduler.o clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -DR_GGML_IO_IMPL -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c r_interface_opt.c -o r_interface_opt.o clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -DR_GGML_IO_IMPL -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c r_interface_backend.c -o r_interface_backend.o clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -DR_GGML_IO_IMPL -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c r_interface_quants.c -o r_interface_quants.o clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -DR_GGML_IO_IMPL -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c r_ggml_io.c -o r_ggml_io.o clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c ggml.c -o ggml.o In file included from ggml.c:5: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml.c:2088:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 2088 | int32_t params[] = { nb1, nb2, nb3, offset, inplace ? 1 : 0 }; | ~ ^~~~~~ ggml.c:2088:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 2088 | int32_t params[] = { nb1, nb2, nb3, offset, inplace ? 1 : 0 }; | ~ ^~~ ggml.c:2088:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 2088 | int32_t params[] = { nb1, nb2, nb3, offset, inplace ? 1 : 0 }; | ~ ^~~ ggml.c:2088:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 2088 | int32_t params[] = { nb1, nb2, nb3, offset, inplace ? 1 : 0 }; | ~ ^~~ ggml.c:3337:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 3337 | int32_t params[] = { nb1, nb2, nb3, offset, inplace ? 1 : 0 }; | ~ ^~~~~~ ggml.c:3337:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 3337 | int32_t params[] = { nb1, nb2, nb3, offset, inplace ? 1 : 0 }; | ~ ^~~ ggml.c:3337:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 3337 | int32_t params[] = { nb1, nb2, nb3, offset, inplace ? 1 : 0 }; | ~ ^~~ ggml.c:3337:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 3337 | int32_t params[] = { nb1, nb2, nb3, offset, inplace ? 1 : 0 }; | ~ ^~~ ggml.c:3725:17: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 3725 | ne[axis0] = a->ne[0]; | ~ ^~~~~~~~ ggml.c:3726:17: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 3726 | ne[axis1] = a->ne[1]; | ~ ^~~~~~~~ ggml.c:3727:17: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 3727 | ne[axis2] = a->ne[2]; | ~ ^~~~~~~~ ggml.c:3728:17: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 3728 | ne[axis3] = a->ne[3]; | ~ ^~~~~~~~ ggml.c:3730:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 3730 | nb[axis0] = a->nb[0]; | ~ ^~~~~~~~ ggml.c:3731:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 3731 | nb[axis1] = a->nb[1]; | ~ ^~~~~~~~ ggml.c:3732:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 3732 | nb[axis2] = a->nb[2]; | ~ ^~~~~~~~ ggml.c:3733:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 3733 | nb[axis3] = a->nb[3]; | ~ ^~~~~~~~ ggml.c:4433:48: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 4433 | return ggml_conv_1d(ctx, a, b, s, a->ne[0] / 2, d); | ~~~~~~~~~~~~ ~~~~~~~~~^~~ ggml.c:4464:52: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 4464 | return ggml_conv_1d_dw(ctx, a, b, s0, a->ne[0] / 2, d0); | ~~~~~~~~~~~~~~~ ~~~~~~~~~^~~ ggml.c:4623:46: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 4623 | return ggml_conv_2d(ctx, a, b, a->ne[0], a->ne[1], 0, 0, 1, 1); | ~~~~~~~~~~~~ ^~~~~~~~ ggml.c:4623:36: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 4623 | return ggml_conv_2d(ctx, a, b, a->ne[0], a->ne[1], 0, 0, 1, 1); | ~~~~~~~~~~~~ ^~~~~~~~ ggml.c:4632:65: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 4632 | return ggml_conv_2d(ctx, a, b, 1, 1, a->ne[0] / 2, a->ne[1] / 2, 1, 1); | ~~~~~~~~~~~~ ~~~~~~~~~^~~ ggml.c:4632:51: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 4632 | return ggml_conv_2d(ctx, a, b, 1, 1, a->ne[0] / 2, a->ne[1] / 2, 1, 1); | ~~~~~~~~~~~~ ~~~~~~~~~^~~ ggml.c:4821:35: warning: implicit conversion turns floating-point number into integer: 'float' to 'int64_t' (aka 'long long') [-Wfloat-conversion] 4821 | return (ins + 2 * p - ks) / s + 1; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~ ggml.c:4871:50: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 4871 | int32_t params[] = { op, k0, k1, s0, s1, p0, p1 }; | ~ ^~ ggml.c:4871:46: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 4871 | int32_t params[] = { op, k0, k1, s0, s1, p0, p1 }; | ~ ^~ ggml.c:4894:50: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 4894 | int32_t params[] = { op, k0, k1, s0, s1, p0, p1 }; | ~ ^~ ggml.c:4894:46: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 4894 | int32_t params[] = { op, k0, k1, s0, s1, p0, p1 }; | ~ ^~ ggml.c:5501:36: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 5501 | const int npx = (px + a->ne[1])/w; | ~~~ ~~~~~~~~~~~~~~~^~ ggml.c:5502:36: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 5502 | const int npy = (py + a->ne[2])/w; | ~~~ ~~~~~~~~~~~~~~~^~ ggml.c:6952:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 6951 | *cgraph = (struct ggml_cgraph) { | ~ 6952 | /*.size =*/ size, | ^~~~ In file included from ggml.c:5: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ ggml.c:6147:26: warning: unused function 'ggml_new_hash_map' [-Wunused-function] 6147 | static struct hash_map * ggml_new_hash_map(size_t size) { | ^~~~~~~~~~~~~~~~~ ggml.c:6154:13: warning: unused function 'ggml_hash_map_free' [-Wunused-function] 6154 | static void ggml_hash_map_free(struct hash_map * map) { | ^~~~~~~~~~~~~~~~~~ 37 warnings generated. clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c ggml-alloc.c -o ggml-alloc.o In file included from ggml-alloc.c:4: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ggml-alloc.c:109:13: warning: unused function 'ggml_buffer_address_less' [-Wunused-function] 109 | static bool ggml_buffer_address_less(struct buffer_address a, struct buffer_address b) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 11 warnings generated. clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c ggml-quants.c -o ggml-quants.o In file included from ggml-quants.c:5: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:56:26: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 56 | const float id = d ? 1.0f/d : 0.0f; | ^ ~ ggml-quants.c:41:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 41 | const int nb = k / qk; | ~~ ~~^~~~ ggml-quants.c:92:26: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 92 | const float id = d ? 1.0f/d : 0.0f; | ^ ~ ggml-quants.c:78:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 78 | const int nb = k / qk; | ~~ ~~^~~~ ggml-quants.c:130:26: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 130 | const float id = d ? 1.0f/d : 0.0f; | ^ ~ ggml-quants.c:143:39: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 143 | y[i].qs[j] = (xi0 & 0x0F) | ((xi1 & 0x0F) << 4); | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:115:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 115 | const int nb = k / qk; | ~~ ~~^~~~ ggml-quants.c:173:26: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 173 | const float id = d ? 1.0f/d : 0.0f; | ^ ~ ggml-quants.c:187:39: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 187 | y[i].qs[j] = (xi0 & 0x0F) | ((xi1 & 0x0F) << 4); | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:159:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 159 | const int nb = k / qk; | ~~ ~~^~~~ ggml-quants.c:212:26: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 212 | const float id = d ? 1.0f/d : 0.0f; | ^ ~ ggml-quants.c:219:26: warning: implicit conversion turns floating-point number into integer: 'float' to 'int8_t' (aka 'signed char') [-Wfloat-conversion] 219 | y[i].qs[j] = roundf(x0); | ~ ^~~~~~~~~~ ggml-quants.c:201:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 201 | const int nb = k / QK8_0; | ~~ ~~^~~~~~~ ggml-quants.c:239:26: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 239 | const float id = d ? 1.0f/d : 0.0f; | ^ ~ ggml-quants.c:249:36: warning: implicit conversion turns floating-point number into integer: 'float' to 'int8_t' (aka 'signed char') [-Wfloat-conversion] 249 | y[i].qs[ j] = roundf(v0); | ~ ^~~~~~~~~~ ggml-quants.c:250:36: warning: implicit conversion turns floating-point number into integer: 'float' to 'int8_t' (aka 'signed char') [-Wfloat-conversion] 250 | y[i].qs[QK8_1/2 + j] = roundf(v1); | ~ ^~~~~~~~~~ ggml-quants.c:228:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 228 | const int nb = k / QK8_1; | ~~ ~~^~~~~~~ ggml-quants.c:298:32: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 298 | const uint8_t x0 = best_index_mxfp4(x[i*qk + 0 + j], d); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:299:32: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 299 | const uint8_t x1 = best_index_mxfp4(x[i*qk + qk/2 + j], d); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:278:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 278 | const int nb = k / qk; | ~~ ~~^~~~ ggml-quants.c:312:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 312 | const int nb = k / qk; | ~~ ~~^~~~ ggml-quants.c:332:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 332 | const int nb = k / qk; | ~~ ~~^~~~ ggml-quants.c:353:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 353 | const int nb = k / qk; | ~~ ~~^~~~ ggml-quants.c:379:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 379 | const int nb = k / qk; | ~~ ~~^~~~ ggml-quants.c:406:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 406 | const int nb = k / qk; | ~~ ~~^~~~ ggml-quants.c:422:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 422 | const int nb = k / qk; | ~~ ~~^~~~ ggml-quants.c:469:25: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 469 | L[i] = nmax + MAX(-nmax, MIN(nmax-1, l)); | ~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:488:18: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 488 | L[i] = l + nmax; | ~ ~~^~~~~~ ggml-quants.c:493:19: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 493 | float scale = suml2 ? sumlx/suml2 : 0.0f; | ^~~~~ ~ ggml-quants.c:512:29: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 512 | L[i] = nmax + MAX(-nmax, MIN(nmax-1, l)); | ~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:538:20: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 538 | L[i] = l; | ~ ^ ggml-quants.c:556:36: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 556 | L[i] = new_l; sumlx = slx; suml2 = sl2; | ~ ^~~~~ ggml-quants.c:574:18: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 574 | L[i] = l + nmax; | ~ ~~^~~~~~ ggml-quants.c:602:24: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 602 | L[i] = l; | ~ ^ ggml-quants.c:652:27: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 652 | L[i] = MAX(0, MIN(nmax, l)); | ~ ^~~~ ./ggml-impl.h:34:37: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ./ggml-impl.h:38:43: note: expanded from macro 'MAX' 38 | # define MAX(a, b) ((a) > (b) ? (a) : (b)) | ^ ggml-quants.c:652:33: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 652 | L[i] = MAX(0, MIN(nmax, l)); | ~ ^ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ./ggml-impl.h:38:43: note: expanded from macro 'MAX' 38 | # define MAX(a, b) ((a) > (b) ? (a) : (b)) | ^ ggml-quants.c:668:23: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 668 | Laux[i] = l; | ~ ^ ggml-quants.c:707:29: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 707 | *d = (q[j+4] & 0xF) | ((q[j-4] >> 6) << 4); | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:708:29: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 708 | *m = (q[j+4] >> 4) | ((q[j-0] >> 6) << 4); | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:746:34: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 746 | y[i].scales[j] = l; | ~ ^ ggml-quants.c:765:18: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 765 | if (!d) continue; | ~^ ggml-quants.c:770:32: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 770 | L[16*j + ii] = l; | ~ ^ ggml-quants.c:776:91: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 776 | y[i].qs[j/4 + l] = L[j + l] | (L[j + l + 32] << 2) | (L[j + l + 64] << 4) | (L[j + l + 96] << 6); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:716:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 716 | const int nb = k / QK_K; | ~~ ~~^~~~~~ ggml-quants.c:786:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 786 | const int nb = k / QK_K; | ~~ ~~^~~~~~ ggml-quants.c:848:27: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 848 | L[i] = MAX(0, MIN(nmax, l)); | ~ ^~~~ ./ggml-impl.h:34:37: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ./ggml-impl.h:38:43: note: expanded from macro 'MAX' 38 | # define MAX(a, b) ((a) > (b) ? (a) : (b)) | ^ ggml-quants.c:848:33: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 848 | L[i] = MAX(0, MIN(nmax, l)); | ~ ^ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ./ggml-impl.h:38:43: note: expanded from macro 'MAX' 38 | # define MAX(a, b) ((a) > (b) ? (a) : (b)) | ^ ggml-quants.c:864:23: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 864 | Laux[i] = l; | ~ ^ ggml-quants.c:910:16: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 910 | L[i] = nearest_int(iscale * x[i]); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:941:16: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 941 | L[i] = l; | ~ ^ ggml-quants.c:959:32: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 959 | L[i] = new_l; sumlx = slx; suml2 = sl2; | ~ ^~~~~ ggml-quants.c:1008:36: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1008 | y[i].scales[j] = Ls[j] | (Lm[j] << 4); | ~ ~~~~~~^~~~~~~~~~~~~~ ggml-quants.c:1014:22: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 1014 | if (!d) continue; | ~^ ggml-quants.c:1019:36: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1019 | L[16*j + ii] = l; | ~ ^ ggml-quants.c:1026:91: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1026 | y[i].qs[j/4 + l] = L[j + l] | (L[j + l + 32] << 2) | (L[j + l + 64] << 4) | (L[j + l + 96] << 6); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:1042:60: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1042 | quantize_row_q2_K_impl(src, (block_q2_K*)qrow, n_per_row, quant_weights); | ~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ ggml-quants.c:1072:13: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 1072 | if (max_scale) { | ~~ ^~~~~~~~~ ggml-quants.c:1075:28: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 1075 | int8_t l = nearest_int(iscale*scales[j]); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:1093:74: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 1093 | sc = (sc | (((y[i].scales[8 + j%4] >> (2*(j/4))) & 3) << 4)) - 32; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ggml-quants.c:1095:18: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 1095 | if (!d) { | ~^ ggml-quants.c:1101:34: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 1101 | L[16*j + ii] = l + 4; | ~ ~~^~~ ggml-quants.c:1120:91: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1120 | y[i].qs[j/4 + l] = L[j + l] | (L[j + l + 32] << 2) | (L[j + l + 64] << 4) | (L[j + l + 96] << 6); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:1054:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1054 | const int nb = k / QK_K; | ~~ ~~^~~~~~ ggml-quants.c:1130:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1130 | const int nb = k / QK_K; | ~~ ~~^~~~~~ ggml-quants.c:1227:74: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 1227 | sc = (sc | (((y[i].scales[8 + j%4] >> (2*(j/4))) & 3) << 4)) - 32; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ggml-quants.c:1229:18: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 1229 | if (!d) { | ~^ ggml-quants.c:1235:34: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 1235 | L[16*j + ii] = l + 4; | ~ ~~^~~ ggml-quants.c:1254:91: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1254 | y[i].qs[j/4 + l] = L[j + l] | (L[j + l + 32] << 2) | (L[j + l + 64] << 4) | (L[j + l + 96] << 6); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:1180:30: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1180 | const int nb = n_per_row / QK_K; | ~~ ~~~~~~~~~~^~~~~~ ggml-quants.c:1313:26: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1313 | uint8_t ls = nearest_int(inv_scale*scales[j]); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:1314:26: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1314 | uint8_t lm = nearest_int(inv_min*mins[j]); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:1321:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1321 | y[i].scales[j+4] = (ls & 0xF) | ((lm & 0xF) << 4); | ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ggml-quants.c:1333:18: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 1333 | if (!d) continue; | ~^ ggml-quants.c:1338:32: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1338 | L[32*j + ii] = l; | ~ ^ ggml-quants.c:1344:58: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1344 | for (int l = 0; l < 32; ++l) q[l] = L[j + l] | (L[j + l + 32] << 4); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:1282:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1282 | const int nb = k / QK_K; | ~~ ~~^~~~~~ ggml-quants.c:1354:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1354 | const int nb = k / QK_K; | ~~ ~~^~~~~~ ggml-quants.c:1418:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1418 | y[i].scales[j+4] = (ls & 0xF) | ((lm & 0xF) << 4); | ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ggml-quants.c:1430:18: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 1430 | if (!d) continue; | ~^ ggml-quants.c:1435:32: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1435 | L[32*j + ii] = l; | ~ ^ ggml-quants.c:1440:58: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1440 | for (int l = 0; l < 32; ++l) q[l] = L[j + l] | (L[j + l + 32] << 4); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:1500:26: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1500 | uint8_t ls = nearest_int(inv_scale*scales[j]); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:1501:26: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1501 | uint8_t lm = nearest_int(inv_min*mins[j]); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:1508:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1508 | y[i].scales[j+4] = (ls & 0xF) | ((lm & 0xF) << 4); | ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ggml-quants.c:1520:18: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 1520 | if (!d) continue; | ~^ ggml-quants.c:1525:32: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1525 | L[32*j + ii] = l; | ~ ^ ggml-quants.c:1544:28: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1544 | ql[j] = l1 | (l2 << 4); | ~ ~~~^~~~~~~~~~~ ggml-quants.c:1627:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1627 | y[i].scales[j+4] = (ls & 0xF) | ((lm & 0xF) << 4); | ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ggml-quants.c:1639:18: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 1639 | if (!d) continue; | ~^ ggml-quants.c:1644:32: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1644 | L[32*j + ii] = l; | ~ ^ ggml-quants.c:1663:28: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1663 | ql[j] = l1 | (l2 << 4); | ~ ~~~^~~~~~~~~~~ ggml-quants.c:1727:40: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 1727 | y[i].scales[ib] = MIN(127, nearest_int(iscale*scales[ib])); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ggml-quants.c:1732:18: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 1732 | if (!d) { | ~^ ggml-quants.c:1738:34: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 1738 | L[16*j + ii] = l + 32; | ~ ~~^~~~ ggml-quants.c:1750:31: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1750 | ql[l+ 0] = q1 | (q3 << 4); | ~ ~~~^~~~~~~~~~~ ggml-quants.c:1751:31: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1751 | ql[l+32] = q2 | (q4 << 4); | ~ ~~~^~~~~~~~~~~ ggml-quants.c:1752:101: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1752 | qh[l] = (L[j + l] >> 4) | ((L[j + l + 32] >> 4) << 2) | ((L[j + l + 64] >> 4) << 4) | ((L[j + l + 96] >> 4) << 6); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:1841:40: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 1841 | y[i].scales[ib] = MIN(127, nearest_int(iscale*scales[ib])); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ggml-quants.c:1846:18: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 1846 | if (!d) { | ~^ ggml-quants.c:1852:34: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 1852 | L[16*j + ii] = l + 32; | ~ ~~^~~~ ggml-quants.c:1864:31: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1864 | ql[l+ 0] = q1 | (q3 << 4); | ~ ~~~^~~~~~~~~~~ ggml-quants.c:1865:31: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1865 | ql[l+32] = q2 | (q4 << 4); | ~ ~~~^~~~~~~~~~~ ggml-quants.c:1866:101: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1866 | qh[l] = (L[j + l] >> 4) | ((L[j + l + 32] >> 4) << 2) | ((L[j + l + 64] >> 4) << 4) | ((L[j + l + 96] >> 4) << 6); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:1916:32: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1916 | y[ib].qs[j] = L[j] | (L[j+16] << 4); | ~ ~~~~~^~~~~~~~~~~~~~~~ ggml-quants.c:1961:32: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1961 | y[ib].qs[j] = L[j] | (L[j+16] << 4); | ~ ~~~~~^~~~~~~~~~~~~~~~ ggml-quants.c:2009:40: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 2009 | y[ib].qs[j] = (xi0 & 0x0F) | ((xi1 & 0x0F) << 4); | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:2064:40: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 2064 | y[ib].qs[j] = (xi0 & 0x0F) | ((xi1 & 0x0F) << 4); | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:2116:26: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 2116 | const float id = d ? 1.0f/d : 0.0f; | ^ ~ ggml-quants.c:2130:53: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 2130 | q = ((uint16_t)q * 256 + (243 - 1)) / 243; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ ggml-quants.c:2145:53: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 2145 | q = ((uint16_t)q * 256 + (243 - 1)) / 243; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ ggml-quants.c:2162:49: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 2162 | q = ((uint16_t)q * 256 + (243 - 1)) / 243; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ ggml-quants.c:2125:56: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 2125 | int xi = lroundf(x[m + n*32] * id) + 1; // -1, 0, 1 -> 0, 1, 2 | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ggml-quants.c:2140:56: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 2140 | int xi = lroundf(x[m + n*16] * id) + 1; // -1, 0, 1 -> 0, 1, 2 | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ggml-quants.c:2155:63: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 2155 | int xi = lroundf(x[j + m*sizeof(y->qh)] * id) + 1; | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ggml-quants.c:2182:26: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 2182 | const float id = d ? 1.0f/d : 0.0f; | ^ ~ ggml-quants.c:2191:56: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 2191 | int xi = lroundf(x[m + n*32] * id) + 1; | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ggml-quants.c:2569:14: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 2569 | if (!amax) { | ~^~~~ ggml-quants.c:2580:35: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 2580 | y[i].qs[j] = MIN(127, v); | ~ ^ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ggml-quants.c:2587:29: warning: implicit conversion loses integer precision: 'int' to 'int16_t' (aka 'short') [-Wimplicit-int-conversion] 2587 | y[i].bsums[j] = sum; | ~ ^~~ ggml-quants.c:2911:26: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 2911 | pos[i] = 2*l + 1; | ~ ~~~~^~~ ggml-quants.c:2938:26: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 2938 | pos[k] = 2*l + 1; | ~ ~~~~^~~ ggml-quants.c:2968:26: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 2968 | pos[k] = 2*l + 1; | ~ ~~~~^~~ ggml-quants.c:2988:42: warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 2988 | kneighbors_q2xs[counter++] = dist2[2*j+1]; | ~ ^~~~~~~~~~~~ ggml-quants.c:2991:18: warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 2991 | *start = n; | ~ ^ ggml-quants.c:3114:59: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 3114 | Laux[8*k+i] = MAX(0, MIN(kMaxQ-1, l)); | ~ ^ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ./ggml-impl.h:38:43: note: expanded from macro 'MAX' 38 | # define MAX(a, b) ((a) > (b) ? (a) : (b)) | ^ ggml-quants.c:3186:14: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 3186 | if (!max_scale) { | ~^~~~~~~~~ ggml-quants.c:3290:59: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 3290 | Laux[8*k+i] = MAX(0, MIN(kMaxQ-1, l)); | ~ ^ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ./ggml-impl.h:38:43: note: expanded from macro 'MAX' 38 | # define MAX(a, b) ((a) > (b) ? (a) : (b)) | ^ ggml-quants.c:3326:38: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 3326 | L[8*k + i] = l; | ~ ^ ggml-quants.c:3357:41: warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 3357 | q2[2*ib+k] = grid_index | (block_signs[k] << 9); | ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:3364:14: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 3364 | if (!max_scale) { | ~^~~~~~~~~ ggml-quants.c:3375:50: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 3375 | if (ib%2 == 0) y[ibl].scales[ib/2] = l; | ~ ^ ggml-quants.c:3505:26: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 3505 | pos[i] = 2*l + 1; | ~ ~~~~^~~ ggml-quants.c:3532:26: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 3532 | pos[k] = 2*l + 1; | ~ ~~~~^~~ ggml-quants.c:3562:26: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 3562 | pos[k] = 2*l + 1; | ~ ~~~~^~~ ggml-quants.c:3582:42: warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 3582 | kneighbors_q3xs[counter++] = dist2[2*j+1]; | ~ ^~~~~~~~~~~~ ggml-quants.c:3585:18: warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 3585 | *start = n; | ~ ^ ggml-quants.c:3731:59: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 3731 | Laux[4*k+i] = MAX(0, MIN(kMaxQ-1, l)); | ~ ^ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ./ggml-impl.h:38:43: note: expanded from macro 'MAX' 38 | # define MAX(a, b) ((a) > (b) ? (a) : (b)) | ^ ggml-quants.c:3802:34: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 3802 | q3[8*ib+k] = grid_index; | ~ ^~~~~~~~~~ ggml-quants.c:3815:14: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 3815 | if (!max_scale) { | ~^~~~~~~~~ ggml-quants.c:3925:18: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 3925 | if (!max) { | ~^~~ ggml-quants.c:3938:59: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 3938 | Laux[4*k+i] = MAX(0, MIN(kMaxQ-1, l)); | ~ ^ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ./ggml-impl.h:38:43: note: expanded from macro 'MAX' 38 | # define MAX(a, b) ((a) > (b) ? (a) : (b)) | ^ ggml-quants.c:4019:14: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 4019 | if (!max_scale) { | ~^~~~~~~~~ ggml-quants.c:4031:38: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 4031 | y[ibl].scales[ib/2] = l1 | (l2 << 4); | ~ ~~~^~~~~~~~~~~ ggml-quants.c:4052:61: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 4052 | quantize_row_iq3_s_impl(IQ3S_BLOCK_SIZE, src, qrow, n_per_row, quant_weights, | ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ ggml-quants.c:4308:28: warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 4308 | index[k] = grid_index; | ~ ^~~~~~~~~~ ggml-quants.c:4331:26: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 4331 | shifts[ib] = best_shift; | ~ ^~~~~~~~~~ ggml-quants.c:4335:14: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 4335 | if (!max_scale) { | ~^~~~~~~~~ ggml-quants.c:4552:28: warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 4552 | index[k] = grid_index; | ~ ^~~~~~~~~~ ggml-quants.c:4571:45: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 4571 | y[ibl].qh[ib] = (index[0] >> 8) | ((index[1] >> 8) << 4); | ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:4574:26: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 4574 | shifts[ib] = best_k; | ~ ^~~~~~ ggml-quants.c:4578:14: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 4578 | if (!max_scale) { | ~^~~~~~~~~ ggml-quants.c:4680:21: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 4680 | Lb[j] = l; | ~ ^ ggml-quants.c:4715:20: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 4715 | float id = d ? 1/d : 0.f; | ^ ~ ggml-quants.c:4720:25: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 4720 | float idl = dl ? 1/dl : 0.f; | ^~ ~ ggml-quants.c:4724:25: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 4724 | Lb[j] = best_index_int8(16, values, idl*xb[j]); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:4728:29: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 4728 | uint8_t l_h = l >> 4; | ~~~ ~~^~~~~ ggml-quants.c:4736:24: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 4736 | float id = scales[0] ? 1/scales[0] : 0; | ^~~~~~~~~ ~ ggml-quants.c:4738:24: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 4738 | L[j] = best_index_int8(16, values, id*x[j]); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:4745:40: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 4745 | q4[16*i + j] = L[32*i + j] | (L[32*i + 16 + j] << 4); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:4890:59: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 4890 | Laux[8*k+i] = MAX(0, MIN(kMaxQ-1, l)); | ~ ^ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ./ggml-impl.h:38:43: note: expanded from macro 'MAX' 38 | # define MAX(a, b) ((a) > (b) ? (a) : (b)) | ^ ggml-quants.c:4926:38: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 4926 | L[8*k + i] = l; | ~ ^ ggml-quants.c:4967:14: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 4967 | if (!max_scale) { | ~^~~~~~~~~ ggml-quants.c:4977:50: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 4977 | if (ib%2 == 0) y[ibl].scales[ib/2] = l; | ~ ^ ggml-quants.c:5199:41: warning: implicit conversion loses floating-point precision: 'const double' to 'float' [-Wimplicit-float-conversion] 5199 | if (!validate_float(f[i], i)) { | ~~~~~~~~~~~~~~ ^~~~ In file included from ggml-quants.c:5: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ ggml-quants.c:579:14: warning: unused function 'make_qkx1_quants' [-Wunused-function] 579 | static float make_qkx1_quants(int n, int nmax, const float * GGML_RESTRICT x, uint8_t * GGML_RESTRICT L, float * GGML_RESTRICT the_min, | ^~~~~~~~~~~~~~~~ ggml-quants.c:4068:12: warning: unused function 'iq1_find_best_neighbour' [-Wunused-function] 4068 | static int iq1_find_best_neighbour(const uint16_t * GGML_RESTRICT neighbours, const uint64_t * GGML_RESTRICT grid, | ^~~~~~~~~~~~~~~~~~~~~~~ 177 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-opt.cpp -o ggml-opt.o In file included from ggml-opt.cpp:6: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:694:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./ggml-impl.h:694:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~ ggml-opt.cpp:1033:30: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 1033 | params.opt_period = opt_period; | ~ ^~~~~~~~~~ In file included from ggml-opt.cpp:6: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 14 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c gguf.cpp -o gguf.o In file included from gguf.cpp:3: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:694:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./ggml-impl.h:694:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~ gguf.cpp:478:35: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 478 | const int alignment_idx = gguf_find_key(ctx, GGUF_KEY_GENERAL_ALIGNMENT); | ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gguf.cpp:3: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 14 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-backend.cpp -o ggml-backend.o In file included from ggml-backend.cpp:14: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:694:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./ggml-impl.h:694:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~ ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ 10 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-backend-reg.cpp -o ggml-backend-reg.o In file included from ggml-backend-reg.cpp:3: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:694:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./ggml-impl.h:694:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~ ggml-backend-reg.cpp:449:21: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32] 449 | size = path.size(); | ~ ~~~~~^~~~~~ In file included from ggml-backend-reg.cpp:3: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 14 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-threading.cpp -o ggml-threading.o clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-cpu/traits.cpp -o ggml-cpu/traits.o In file included from ggml-cpu/traits.cpp:1: In file included from ggml-cpu/traits.h:3: In file included from ggml-cpu/ggml-cpu-impl.h:6: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:694:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./ggml-impl.h:694:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~ ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 13 warnings generated. clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c ggml-cpu/ggml-cpu-backend.c -o ggml-cpu/ggml-cpu-backend.o In file included from ggml-cpu/ggml-cpu-backend.c:6: In file included from ggml-cpu/traits.h:3: In file included from ggml-cpu/ggml-cpu-impl.h:6: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ggml-cpu/ggml-cpu-backend.c:12: In file included from ggml-cpu/unary-ops.h:3: In file included from ggml-cpu/common.h:7: ggml-cpu/simd-mappings.h:52:22: warning: implicit conversion loses floating-point precision: 'float' to '__fp16' [-Wimplicit-float-conversion] 52 | __fp16 tmp = f; | ~~~ ^ ggml-cpu/ggml-cpu-backend.c:752:66: warning: implicit conversion loses integer precision: 'int32_t' (aka 'int') to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 752 | ggml_vec_set_i8(nc, (int8_t *)(data + i*n1), value); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:759:68: warning: implicit conversion loses integer precision: 'int32_t' (aka 'int') to 'int16_t' (aka 'short') [-Wimplicit-int-conversion] 759 | ggml_vec_set_i16(nc, (int16_t *)(data + i*n1), value); | ~~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:741:23: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 741 | const int n = ggml_nrows(tensor); | ~ ^~~~~~~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:742:23: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 742 | const int nc = tensor->ne[0]; | ~~ ^~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:811:66: warning: implicit conversion turns floating-point number into integer: 'float' to 'int8_t' (aka 'signed char') [-Wfloat-conversion] 811 | ggml_vec_set_i8(nc, (int8_t *)(data + i*n1), value); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:818:68: warning: implicit conversion turns floating-point number into integer: 'float' to 'int16_t' (aka 'short') [-Wfloat-conversion] 818 | ggml_vec_set_i16(nc, (int16_t *)(data + i*n1), value); | ~~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:825:68: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 825 | ggml_vec_set_i32(nc, (int32_t *)(data + i*n1), value); | ~~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:800:23: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 800 | const int n = ggml_nrows(tensor); | ~ ^~~~~~~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:801:23: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 801 | const int nc = tensor->ne[0]; | ~~ ^~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:883:24: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 883 | return GGML_CPU_FP16_TO_FP32(((ggml_fp16_t *)(tensor->data))[i]); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/simd-mappings.h:42:38: note: expanded from macro 'GGML_CPU_FP16_TO_FP32' 42 | #define GGML_CPU_FP16_TO_FP32(x) GGML_CPU_COMPUTE_FP16_TO_FP32(x) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/simd-mappings.h:39:46: note: expanded from macro 'GGML_CPU_COMPUTE_FP16_TO_FP32' 39 | #define GGML_CPU_COMPUTE_FP16_TO_FP32(x) neon_compute_fp16_to_fp32(x) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:888:24: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 888 | return GGML_BF16_TO_FP32(((ggml_bf16_t *)(tensor->data))[i]); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:562:30: note: expanded from macro 'GGML_BF16_TO_FP32' 562 | #define GGML_BF16_TO_FP32(x) ggml_compute_bf16_to_fp32(x) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:893:24: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 893 | return ((float *)(tensor->data))[i]; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:862:61: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 862 | return ggml_get_i32_nd(tensor, id[0], id[1], id[2], id[3]); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:862:54: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 862 | return ggml_get_i32_nd(tensor, id[0], id[1], id[2], id[3]); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:862:47: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 862 | return ggml_get_i32_nd(tensor, id[0], id[1], id[2], id[3]); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:862:40: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 862 | return ggml_get_i32_nd(tensor, id[0], id[1], id[2], id[3]); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:913:49: warning: implicit conversion loses integer precision: 'int32_t' (aka 'int') to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 913 | ((int8_t *)(tensor->data))[i] = value; | ~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:918:50: warning: implicit conversion loses integer precision: 'int32_t' (aka 'int') to 'int16_t' (aka 'short') [-Wimplicit-int-conversion] 918 | ((int16_t *)(tensor->data))[i] = value; | ~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:906:54: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 906 | ggml_set_i32_nd(tensor, id[0], id[1], id[2], id[3], value); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:906:47: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 906 | ggml_set_i32_nd(tensor, id[0], id[1], id[2], id[3], value); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:906:40: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 906 | ggml_set_i32_nd(tensor, id[0], id[1], id[2], id[3], value); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:906:33: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 906 | ggml_set_i32_nd(tensor, id[0], id[1], id[2], id[3], value); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:957:20: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 957 | return GGML_CPU_FP16_TO_FP32(((ggml_fp16_t *) data)[0]); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/simd-mappings.h:42:38: note: expanded from macro 'GGML_CPU_FP16_TO_FP32' 42 | #define GGML_CPU_FP16_TO_FP32(x) GGML_CPU_COMPUTE_FP16_TO_FP32(x) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/simd-mappings.h:39:46: note: expanded from macro 'GGML_CPU_COMPUTE_FP16_TO_FP32' 39 | #define GGML_CPU_COMPUTE_FP16_TO_FP32(x) neon_compute_fp16_to_fp32(x) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:959:20: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 959 | return GGML_BF16_TO_FP32(((ggml_bf16_t *) data)[0]); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:562:30: note: expanded from macro 'GGML_BF16_TO_FP32' 562 | #define GGML_BF16_TO_FP32(x) ggml_compute_bf16_to_fp32(x) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:961:20: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 961 | return ((float *) data)[0]; | ~~~~~~ ^~~~~~~~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:972:41: warning: implicit conversion loses integer precision: 'int32_t' (aka 'int') to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 972 | ((int8_t *)(data))[0] = value; | ~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:976:42: warning: implicit conversion loses integer precision: 'int32_t' (aka 'int') to 'int16_t' (aka 'short') [-Wimplicit-int-conversion] 976 | ((int16_t *)(data))[0] = value; | ~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1005:61: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1005 | return ggml_get_f32_nd(tensor, id[0], id[1], id[2], id[3]); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1005:54: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1005 | return ggml_get_f32_nd(tensor, id[0], id[1], id[2], id[3]); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1005:47: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1005 | return ggml_get_f32_nd(tensor, id[0], id[1], id[2], id[3]); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1005:40: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1005 | return ggml_get_f32_nd(tensor, id[0], id[1], id[2], id[3]); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1049:49: warning: implicit conversion turns floating-point number into integer: 'float' to 'int8_t' (aka 'signed char') [-Wfloat-conversion] 1049 | ((int8_t *)(tensor->data))[i] = value; | ~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1053:50: warning: implicit conversion turns floating-point number into integer: 'float' to 'int16_t' (aka 'short') [-Wfloat-conversion] 1053 | ((int16_t *)(tensor->data))[i] = value; | ~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1057:50: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 1057 | ((int32_t *)(tensor->data))[i] = value; | ~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1043:54: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1043 | ggml_set_f32_nd(tensor, id[0], id[1], id[2], id[3], value); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1043:47: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1043 | ggml_set_f32_nd(tensor, id[0], id[1], id[2], id[3], value); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1043:40: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1043 | ggml_set_f32_nd(tensor, id[0], id[1], id[2], id[3], value); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1043:33: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1043 | ggml_set_f32_nd(tensor, id[0], id[1], id[2], id[3], value); | ~~~~~~~~~~~~~~~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1103:41: warning: implicit conversion turns floating-point number into integer: 'float' to 'int8_t' (aka 'signed char') [-Wfloat-conversion] 1103 | ((int8_t *)(data))[0] = value; | ~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1107:42: warning: implicit conversion turns floating-point number into integer: 'float' to 'int16_t' (aka 'short') [-Wfloat-conversion] 1107 | ((int16_t *)(data))[0] = value; | ~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1111:42: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 1111 | ((int32_t *)(data))[0] = value; | ~ ^~~~~ ggml-cpu/ggml-cpu-backend.c:1215:212: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1215 | vec_dot(ne00, &tmp[ir0 - iir0], (num_rows_per_vec_dot > 1 ? 16 : 0), src0_row + ir0 * nb01, (num_rows_per_vec_dot > 1 ? nb01 : 0), src1_col, (num_rows_per_vec_dot > 1 ? src1_col_stride : 0), num_rows_per_vec_dot); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:1215:29: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1215 | vec_dot(ne00, &tmp[ir0 - iir0], (num_rows_per_vec_dot > 1 ? 16 : 0), src0_row + ir0 * nb01, (num_rows_per_vec_dot > 1 ? nb01 : 0), src1_col, (num_rows_per_vec_dot > 1 ? src1_col_stride : 0), num_rows_per_vec_dot); | ~~~~~~~ ^~~~ ggml-cpu/ggml-cpu-backend.c:1483:29: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1483 | vec_dot(ne00, &tmp[ir0 - iir0], 0, src0_cur + ir0*nb01, 0, src1_col, 0, 1); | ~~~~~~~ ^~~~ ggml-cpu/ggml-cpu-backend.c:1531:23: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1531 | const int n_ids = ids->ne[0]; // n_expert_used | ~~~~~ ^~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:1532:23: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1532 | const int n_as = ne02; // n_expert | ~~~~ ^~~~ ggml-cpu/ggml-cpu-backend.c:1599:95: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 1599 | MMID_MATRIX_ROW(i02, matrix_row_counts[i02]) = (struct mmid_row_mapping) {id, iid1}; | ~ ^~~~ ggml-cpu/ggml-cpu-backend.c:2308:42: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2308 | n_tasks = MIN(n_threads, ggml_nrows(node->src[0])); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ggml-cpu/ggml-cpu-backend.c:2822:42: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2822 | const int n_as = src0->ne[2]; | ~~~~ ^~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:2904:54: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2904 | const int64_t ne11 = ggml_up(node->src[1]->ne[1], GGML_SOFT_MAX_UNROLL); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:3394:16: warning: implicit conversion turns floating-point number into integer: 'const float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 3394 | y[i] = x[i]; | ~ ^~~~ ggml-cpu/ggml-cpu-backend.c:3689:24: warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 3689 | } u = {i}; | ~^ In file included from ggml-cpu/ggml-cpu-backend.c:6: In file included from ggml-cpu/traits.h:3: In file included from ggml-cpu/ggml-cpu-impl.h:6: ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:603:17: warning: unused function 'ggml_get_numa_affinity' [-Wunused-function] 603 | static uint32_t ggml_get_numa_affinity(void) { | ^~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ggml-cpu-backend.c:717:13: warning: unused function 'ggml_init_riscv_arch_features' [-Wunused-function] 717 | static void ggml_init_riscv_arch_features(void) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 64 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-cpu/ggml-cpu.cpp -o ggml-cpu/ggml-cpu.o In file included from ggml-cpu/ggml-cpu.cpp:4: In file included from ggml-cpu/repack.h:6: In file included from ggml-cpu/traits.h:3: In file included from ggml-cpu/ggml-cpu-impl.h:6: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:694:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./ggml-impl.h:694:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~ ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 13 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-cpu/ops.cpp -o ggml-cpu/ops.o In file included from ggml-cpu/ops.cpp:4: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:694:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./ggml-impl.h:694:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~ In file included from ggml-cpu/ops.cpp:5: In file included from ggml-cpu/binary-ops.h:3: In file included from ggml-cpu/common.h:7: ggml-cpu/simd-mappings.h:52:22: warning: implicit conversion loses floating-point precision: 'float' to '__fp16' [-Wimplicit-float-conversion] 52 | __fp16 tmp = f; | ~~~ ^ In file included from ggml-cpu/ops.cpp:5: In file included from ggml-cpu/binary-ops.h:3: ggml-cpu/common.h:36:12: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 36 | return x; | ~~~~~~ ^ ggml-cpu/ops.cpp:33:40: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 33 | const int nk = ggml_nelements(src0)/ggml_blck_size(src0->type); | ~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:62:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 62 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:285:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 285 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:347:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 347 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:498:34: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 498 | const int dr = (nr + nth - 1)/nth; | ~~ ~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:502:35: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 502 | const int ir1 = MIN(ir0 + dr, nr); | ~~~ ^~ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ggml-cpu/ops.cpp:506:25: warning: implicit conversion loses integer precision: 'unsigned long long' to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32] 506 | uint32_t i = ir * qk; | ~ ~~~^~~~ ggml-cpu/ops.cpp:587:21: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 587 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:623:45: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 623 | const int i02 = (ir - i03*ne02*ne01)/ne01; | ~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:624:45: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 624 | const int i01 = (ir - i03*ne02*ne01 - i02*ne01); | ~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ggml-cpu/ops.cpp:644:26: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 644 | ggml_vec_acc_f32(ne00, wdata, src1_row); | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:720:21: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 720 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:737:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 737 | const int i2 = (ir - i3*ne2*ne1)/ne1; | ~~ ~~~~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:738:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 738 | const int i1 = (ir - i3*ne2*ne1 - i2*ne1); | ~~ ~~~~~~~~~~~~~~~~^~~~~~~~ ggml-cpu/ops.cpp:745:26: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 745 | ggml_vec_add_f32(ne0, | ~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:785:21: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 785 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:802:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 802 | const int i2 = (ir - i3*ne2*ne1)/ne1; | ~~ ~~~~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:803:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 803 | const int i1 = (ir - i3*ne2*ne1 - i2*ne1); | ~~ ~~~~~~~~~~~~~~~~^~~~~~~~ ggml-cpu/ops.cpp:814:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 814 | ggml_vec_add1_f32(ne0, | ~~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:838:21: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 838 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:859:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 859 | const int i2 = (ir - i3*ne2*ne1)/ne1; | ~~ ~~~~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:860:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 860 | const int i1 = (ir - i3*ne2*ne1 - i2*ne1); | ~~ ~~~~~~~~~~~~~~~~^~~~~~~~ ggml-cpu/ops.cpp:886:21: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 886 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:907:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 907 | const int i2 = (ir - i3*ne2*ne1)/ne1; | ~~ ~~~~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:908:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 908 | const int i1 = (ir - i3*ne2*ne1 - i2*ne1); | ~~ ~~~~~~~~~~~~~~~~^~~~~~~~ ggml-cpu/ops.cpp:934:21: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 934 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:966:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 966 | const int i2 = (ir - i3*ne2*ne1)/ne1; | ~~ ~~~~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:967:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 967 | const int i1 = (ir - i3*ne2*ne1 - i2*ne1); | ~~ ~~~~~~~~~~~~~~~~^~~~~~~~ ggml-cpu/ops.cpp:977:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 977 | ggml_vec_acc1_f32(ne0, wdata, v); | ~~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:999:21: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 999 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:1020:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 1020 | const int i2 = (ir - i3*ne2*ne1)/ne1; | ~~ ~~~~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:1021:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 1021 | const int i1 = (ir - i3*ne2*ne1 - i2*ne1); | ~~ ~~~~~~~~~~~~~~~~^~~~~~~~ ggml-cpu/ops.cpp:1047:21: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 1047 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:1068:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 1068 | const int i2 = (ir - i3*ne2*ne1)/ne1; | ~~ ~~~~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:1069:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 1069 | const int i1 = (ir - i3*ne2*ne1 - i2*ne1); | ~~ ~~~~~~~~~~~~~~~~^~~~~~~~ ggml-cpu/ops.cpp:1183:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 1183 | const int nr = ggml_nrows(src1); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:1184:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 1184 | const int nc = src1->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:1213:43: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 1213 | const int i2 = (ir - i3*ne12*ne11)/ne11; | ~~ ~~~~~~~~~~~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:1214:43: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 1214 | const int i1 = (ir - i3*ne12*ne11 - i2*ne11); | ~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~ ggml-cpu/ops.cpp:1304:32: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 1304 | ((float *) dst->data)[0] = sum; | ~ ^~~ ggml-cpu/ops.cpp:1297:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1297 | ggml_vec_sum_f32_ggf(ne00, | ~~~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:1330:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1330 | ggml_vec_sum_f16_ggf(ne00, | ~~~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:1363:39: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1363 | ggml_vec_sum_bf16_ggf(ne00, | ~~~~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:1427:29: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1427 | ggml_vec_cumsum_f32(ne00, dst_row, src_row); | ~~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:1477:34: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1477 | ggml_vec_sum_f32(ne00, &row_sum, src_row); | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:1531:34: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1531 | ggml_vec_sum_f32(ne00, | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:1584:29: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1584 | ggml_vec_argmax_f32(ne00, &v, src); | ~~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:1721:50: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1721 | ggml_vec_cpy_f32(ne00, | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:1838:37: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1838 | ggml_vec_set_f32(ne0*ne1*ne2*ne3, (float *)dst->data, 0); | ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:1843:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1843 | ggml_vec_set_f32(ne0, | ~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:1859:50: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 1859 | ggml_vec_acc_f32(ne0, | ~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:2107:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2107 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2108:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2108 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2146:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2146 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2147:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2147 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2212:26: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2212 | ggml_vec_set_f32(ne0, dst_ptr, c); | ~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:2252:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2252 | dst_ptr[i0] = bipred(i0, i01) ? src_ptr[i0] : 0.0f; | ~~~~~~ ^~~ ggml-cpu/ops.cpp:2287:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2287 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2288:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2288 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2326:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2326 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2327:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2327 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2390:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2390 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2391:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2391 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2429:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2429 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2430:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2430 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2493:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2493 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2494:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2494 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2532:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2532 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2533:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2533 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2596:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2596 | const int n = ggml_nrows(src0); | ~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2597:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2597 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2626:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2626 | const int n = ggml_nrows(src0); | ~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2627:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2627 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2682:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2682 | const int nc = src1->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2683:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2683 | const int nr = ggml_nrows(src1); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2725:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2725 | const int nc = src1->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2726:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2726 | const int nr = ggml_nrows(src1); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2799:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2799 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2799:53: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2799 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ~~~~~~~~~~~~^~~ ggml-cpu/ops.cpp:2800:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2800 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2858:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2858 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2858:53: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2858 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ~~~~~~~~~~~~^~~ ggml-cpu/ops.cpp:2859:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2859 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:2942:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2942 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:2942:53: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2942 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ~~~~~~~~~~~~^~~ ggml-cpu/ops.cpp:2943:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 2943 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:3001:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 3001 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:3001:53: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3001 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ~~~~~~~~~~~~^~~ ggml-cpu/ops.cpp:3002:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3002 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:3085:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 3085 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:3085:53: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3085 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ~~~~~~~~~~~~^~~ ggml-cpu/ops.cpp:3086:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3086 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:3144:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 3144 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:3144:53: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3144 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ~~~~~~~~~~~~^~~ ggml-cpu/ops.cpp:3145:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3145 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:3228:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 3228 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:3228:53: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3228 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ~~~~~~~~~~~~^~~ ggml-cpu/ops.cpp:3229:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3229 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:3315:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 3315 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:3315:53: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3315 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ~~~~~~~~~~~~^~~ ggml-cpu/ops.cpp:3316:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3316 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:3374:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 3374 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:3374:53: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3374 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ~~~~~~~~~~~~^~~ ggml-cpu/ops.cpp:3375:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3375 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:3458:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 3458 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:3458:53: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3458 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ~~~~~~~~~~~~^~~ ggml-cpu/ops.cpp:3459:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3459 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:3517:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 3517 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:3517:53: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3517 | const int nc = src1 ? src0->ne[0] : src0->ne[0] / 2; | ~~ ~~~~~~~~~~~~^~~ ggml-cpu/ops.cpp:3518:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 3518 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:3616:28: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 3616 | variance = ggml_vec_cvar_f32(ne00, y, x, mean); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:3605:34: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 3605 | ggml_vec_sum_f32(ne00, &sum, x); | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:3616:46: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 3616 | variance = ggml_vec_cvar_f32(ne00, y, x, mean); | ~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:3620:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 3620 | ggml_vec_scale_f32(ne00, y, scale); | ~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:3677:39: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'const float' [-Wimplicit-float-conversion] 3677 | const float mean = sum/ne00; | ~~~~ ~~~^~~~~ ggml-cpu/ops.cpp:3691:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 3691 | ggml_vec_scale_f32(ne00, y, scale); | ~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:3862:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 3862 | ggml_vec_cpy_f32 (ne00, dx, x); | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:3864:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 3864 | ggml_vec_scale_f32(ne00, dx, (float)(-sum_xdz)/sum_eps); | ~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:3865:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 3865 | ggml_vec_acc_f32 (ne00, dx, dz); | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:3866:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 3866 | ggml_vec_scale_f32(ne00, dx, rrms); | ~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:3936:36: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'const float' [-Wimplicit-float-conversion] 3936 | const float mean = sum / (ne00 * ne01 * step); | ~~~~ ~~~~^~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:3954:41: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'const float' [-Wimplicit-float-conversion] 3954 | const float variance = sum2 / (ne00 * ne01 * step); | ~~~~~~~~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:3912:22: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 3912 | int n_channels = src0->ne[2]; | ~~~~~~~~~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:3960:40: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 3960 | ggml_vec_scale_f32(ne00, y, scale); | ~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:4022:54: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 4022 | const float scale = 1.0f/fmaxf(sqrtf(sum), eps); | ~~~~~ ^~~ ggml-cpu/ops.cpp:4024:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 4024 | ggml_vec_scale_f32(ne00, y, scale); | ~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:4087:37: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 4087 | ggml_vec_set_f32(ne0*ne1*ne2*ne3, (float *)dst->data, 0); | ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:4144:56: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 4144 | ggml_vec_mad_f32_unroll(ne0, nb01, nb11, d, s0, s1); | ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:4144:50: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 4144 | ggml_vec_mad_f32_unroll(ne0, nb01, nb11, d, s0, s1); | ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:4144:45: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 4144 | ggml_vec_mad_f32_unroll(ne0, nb01, nb11, d, s0, s1); | ~~~~~~~~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:4153:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 4153 | ggml_vec_mad_f32(ne0, d, s0, *s1); | ~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:4209:37: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 4209 | ggml_vec_set_f32(ne0*ne1*ne2*ne3, (float *)dst->data, 0); | ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:4255:30: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 4255 | ggml_vec_mad_f32(ne0, d, wdata, *s1); | ~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:4329:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 4329 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:4330:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4330 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:4415:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4415 | const int nr = ggml_nrows(src1); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:4416:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 4416 | const int nc = src1->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:4424:42: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4424 | const int im0 = (ne10 == 0 ? 0 : ne10-1); | ~~~ ~~~~^~ ggml-cpu/ops.cpp:4425:42: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4425 | const int im1 = (ne11 == 0 ? 0 : ne11-1); | ~~~ ~~~~^~ ggml-cpu/ops.cpp:4426:42: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4426 | const int im2 = (ne12 == 0 ? 0 : ne12-1); | ~~~ ~~~~^~ ggml-cpu/ops.cpp:4427:42: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4427 | const int im3 = (ne13 == 0 ? 0 : ne13-1); | ~~~ ~~~~^~ ggml-cpu/ops.cpp:4444:43: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4444 | const int i2 = (ir - i3*ne12*ne11)/ne11; | ~~ ~~~~~~~~~~~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:4445:43: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4445 | const int i1 = (ir - i3*ne12*ne11 - i2*ne11); | ~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~ ggml-cpu/ops.cpp:4486:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4486 | const int nr = ggml_nrows(src1); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:4487:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 4487 | const int nc = src1->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:4495:42: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4495 | const int im0 = (ne10 == 0 ? 0 : ne10-1); | ~~~ ~~~~^~ ggml-cpu/ops.cpp:4496:42: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4496 | const int im1 = (ne11 == 0 ? 0 : ne11-1); | ~~~ ~~~~^~ ggml-cpu/ops.cpp:4497:42: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4497 | const int im2 = (ne12 == 0 ? 0 : ne12-1); | ~~~ ~~~~^~ ggml-cpu/ops.cpp:4498:42: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4498 | const int im3 = (ne13 == 0 ? 0 : ne13-1); | ~~~ ~~~~^~ ggml-cpu/ops.cpp:4515:43: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4515 | const int i2 = (ir - i3*ne12*ne11)/ne11; | ~~ ~~~~~~~~~~~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:4516:43: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4516 | const int i1 = (ir - i3*ne12*ne11 - i2*ne11); | ~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~ ggml-cpu/ops.cpp:4613:34: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4613 | const int dr = (nr + nth - 1)/nth; | ~~ ~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:4617:35: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 4617 | const int ir1 = MIN(ir0 + dr, nr); | ~~~ ^~ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ggml-cpu/ops.cpp:4654:34: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4654 | const int dr = (nr + nth - 1)/nth; | ~~ ~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:4658:35: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 4658 | const int ir1 = MIN(ir0 + dr, nr); | ~~~ ^~ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ggml-cpu/ops.cpp:4695:34: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4695 | const int dr = (nr + nth - 1)/nth; | ~~ ~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:4699:35: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 4699 | const int ir1 = MIN(ir0 + dr, nr); | ~~~ ^~ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ggml-cpu/ops.cpp:4736:34: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4736 | const int dr = (nr + nth - 1)/nth; | ~~ ~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:4740:35: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 4740 | const int ir1 = MIN(ir0 + dr, nr); | ~~~ ^~ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ggml-cpu/ops.cpp:4750:26: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 4750 | ggml_vec_cpy_f32(nc, | ~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:4922:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 4922 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:4923:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4923 | const int nr = ggml_nelements(src1); | ~~ ^~~~~~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:4955:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 4955 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:4956:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 4956 | const int nr = ggml_nelements(src1); | ~~ ^~~~~~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:5104:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 5104 | const int n = ggml_nrows(src0); | ~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:5105:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 5105 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:5106:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 5106 | const int nr = src0->ne[1]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:5260:46: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 5260 | ggml_vec_scale_f32(ne00, dp, sum); | ~~~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:5192:34: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const uint32_t' (aka 'const unsigned int') [-Wshorten-64-to-32] 5192 | const uint32_t n_head = ne02; | ~~~~~~ ^~~~ ggml-cpu/ops.cpp:5213:36: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const uint32_t' (aka 'const unsigned int') [-Wshorten-64-to-32] 5213 | const uint32_t h = i02; // head | ~ ^~~ ggml-cpu/ops.cpp:5223:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 5223 | ggml_vec_cpy_f32 (ne00, wp, sp); | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:5224:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 5224 | ggml_vec_scale_f32(ne00, wp, scale); | ~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:5245:34: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 5245 | ggml_vec_max_f32(ne00, &max, wp); | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:5252:56: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 5252 | ggml_float sum = ggml_vec_soft_max_f32(ne00, dp, wp, max); | ~~~~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:5260:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 5260 | ggml_vec_scale_f32(ne00, dp, sum); | ~~~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:5320:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 5320 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:5321:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 5321 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:5412:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 5412 | const int n = ggml_nrows(src0); | ~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:5413:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 5413 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:5448:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 5448 | const int n = ggml_nrows(src0); | ~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:5449:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 5449 | const int nc = src0->ne[0]; | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:5539:69: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 5539 | float ramp_mix = rope_yarn_ramp(corr_dims[0], corr_dims[1], i0) * ext_factor; | ~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:5696:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 5696 | const int nr = ggml_nrows(dst); | ~~ ^~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:5862:29: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 5862 | const int nk = ne00*ne01*ne02; | ~~ ~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:5906:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 5906 | const int nr = ne1; | ~~ ^~~ ggml-cpu/ops.cpp:5922:32: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 5922 | const int i1n = i10*ne11; | ~~~ ~~~^~~~~ ggml-cpu/ops.cpp:5925:34: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 5925 | ggml_vec_dot_f16(ne02, &v, 0, | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:5950:29: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 5950 | const int nk = ne00*ne01*ne02; | ~~ ~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:5994:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 5994 | const int nr = ne1; | ~~ ^~~ ggml-cpu/ops.cpp:6010:32: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 6010 | const int i1n = i10*ne11; | ~~~ ~~~^~~~~ ggml-cpu/ops.cpp:6013:34: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 6013 | ggml_vec_dot_f32(ne02, &v, 0, | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:6082:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 6082 | int ofs0 = is_2D ? nb13 : nb12; | ~~~~ ^~~~ ggml-cpu/ops.cpp:6082:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 6082 | int ofs0 = is_2D ? nb13 : nb12; | ~~~~ ^~~~ ggml-cpu/ops.cpp:6083:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 6083 | int ofs1 = is_2D ? nb12 : nb11; | ~~~~ ^~~~ ggml-cpu/ops.cpp:6083:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 6083 | int ofs1 = is_2D ? nb12 : nb11; | ~~~~ ^~~~ ggml-cpu/ops.cpp:6159:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 6159 | int ofs0 = is_2D ? nb13 : nb12; | ~~~~ ^~~~ ggml-cpu/ops.cpp:6159:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 6159 | int ofs0 = is_2D ? nb13 : nb12; | ~~~~ ^~~~ ggml-cpu/ops.cpp:6160:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 6160 | int ofs1 = is_2D ? nb12 : nb11; | ~~~~ ^~~~ ggml-cpu/ops.cpp:6160:31: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 6160 | int ofs1 = is_2D ? nb12 : nb11; | ~~~~ ^~~~ ggml-cpu/ops.cpp:6253:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 6253 | int ofs0 = is_2D ? nb3 : nb2; | ~~~~ ^~~ ggml-cpu/ops.cpp:6253:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 6253 | int ofs0 = is_2D ? nb3 : nb2; | ~~~~ ^~~ ggml-cpu/ops.cpp:6254:24: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 6254 | int ofs1 = is_2D ? nb2 : nb1; | ~~~~ ^~~ ggml-cpu/ops.cpp:6254:30: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 6254 | int ofs1 = is_2D ? nb2 : nb1; | ~~~~ ^~~ ggml-cpu/ops.cpp:6859:34: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 6859 | const int nk = ne00*ne01*ne02*ne03; | ~~ ~~~~~~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:6905:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 6905 | const int np = ne2; | ~~ ^~~ ggml-cpu/ops.cpp:6922:47: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 6922 | const int i1n = i11*ne10*ne12 + i10*ne12; | ~~~ ~~~~~~~~~~~~~~^~~~~~~~~~ ggml-cpu/ops.cpp:6926:42: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 6926 | ggml_vec_dot_f16(ne03, &v, 0, | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:7412:36: warning: implicit conversion turns floating-point number into integer: 'float' to 'const int64_t' (aka 'const long long') [-Wfloat-conversion] 7412 | const int64_t i03 = i3 / sf3; | ~~~ ~~~^~~~~ ggml-cpu/ops.cpp:7414:40: warning: implicit conversion turns floating-point number into integer: 'float' to 'const int64_t' (aka 'const long long') [-Wfloat-conversion] 7414 | const int64_t i02 = i2 / sf2; | ~~~ ~~~^~~~~ ggml-cpu/ops.cpp:7416:44: warning: implicit conversion turns floating-point number into integer: 'float' to 'const int64_t' (aka 'const long long') [-Wfloat-conversion] 7416 | const int64_t i01 = i1 / sf1; | ~~~ ~~~^~~~~ ggml-cpu/ops.cpp:7418:48: warning: implicit conversion turns floating-point number into integer: 'float' to 'const int64_t' (aka 'const long long') [-Wfloat-conversion] 7418 | const int64_t i00 = i0 / sf0; | ~~~ ~~~^~~~~ ggml-cpu/ops.cpp:7442:36: warning: implicit conversion turns floating-point number into integer: 'float' to 'const int64_t' (aka 'const long long') [-Wfloat-conversion] 7442 | const int64_t i03 = i3 / sf3; | ~~~ ~~~^~~~~ ggml-cpu/ops.cpp:7444:40: warning: implicit conversion turns floating-point number into integer: 'float' to 'const int64_t' (aka 'const long long') [-Wfloat-conversion] 7444 | const int64_t i02 = i2 / sf2; | ~~~ ~~~^~~~~ ggml-cpu/ops.cpp:7451:78: warning: implicit conversion turns floating-point number into integer: 'float' to 'const long long' [-Wfloat-conversion] 7451 | const int64_t x_min = std::max(x - support0 + pixel_offset, 0); | ~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~ ggml-cpu/ops.cpp:7452:78: warning: implicit conversion turns floating-point number into integer: 'float' to 'const long long' [-Wfloat-conversion] 7452 | const int64_t x_max = std::min(x + support0 + pixel_offset, ne00); | ~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~ ggml-cpu/ops.cpp:7453:78: warning: implicit conversion turns floating-point number into integer: 'float' to 'const long long' [-Wfloat-conversion] 7453 | const int64_t y_min = std::max(y - support1 + pixel_offset, 0); | ~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~ ggml-cpu/ops.cpp:7454:78: warning: implicit conversion turns floating-point number into integer: 'float' to 'const long long' [-Wfloat-conversion] 7454 | const int64_t y_max = std::min(y + support1 + pixel_offset, ne01); | ~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~ ggml-cpu/ops.cpp:7489:36: warning: implicit conversion turns floating-point number into integer: 'float' to 'const int64_t' (aka 'const long long') [-Wfloat-conversion] 7489 | const int64_t i03 = i3 / sf3; | ~~~ ~~~^~~~~ ggml-cpu/ops.cpp:7491:40: warning: implicit conversion turns floating-point number into integer: 'float' to 'const int64_t' (aka 'const long long') [-Wfloat-conversion] 7491 | const int64_t i02 = i2 / sf2; | ~~~ ~~~^~~~~ ggml-cpu/ops.cpp:7542:36: warning: implicit conversion turns floating-point number into integer: 'float' to 'const int64_t' (aka 'const long long') [-Wfloat-conversion] 7542 | const int64_t i03 = i3 / sf3; | ~~~ ~~~^~~~~ ggml-cpu/ops.cpp:7544:40: warning: implicit conversion turns floating-point number into integer: 'float' to 'const int64_t' (aka 'const long long') [-Wfloat-conversion] 7544 | const int64_t i02 = i2 / sf2; | ~~~ ~~~^~~~~ ggml-cpu/ops.cpp:7713:34: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 7713 | ggml_vec_cpy_f32(ne00, left, (float *) ((char *) src0->data + i3*nb03 + i2*nb02 + i1*nb01)); | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:7766:26: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 7766 | ggml_vec_cpy_f32(n, dst_row, src_row + s); | ~~~~~~~~~~~~~~~~ ^ ggml-cpu/ops.cpp:7767:26: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 7767 | ggml_vec_cpy_f32(s, dst_row + n, src_row); | ~~~~~~~~~~~~~~~~ ^ ggml-cpu/ops.cpp:7917:27: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 7917 | dst_data[j] = j; | ~ ^ ggml-cpu/ops.cpp:7977:23: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 7977 | const int top_k = ne0; | ~~~~~ ^~~ ggml-cpu/ops.cpp:7985:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] 7985 | tmp[j] = j; | ~ ^ ggml-cpu/ops.cpp:8085:34: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const uint32_t' (aka 'const unsigned int') [-Wshorten-64-to-32] 8085 | const uint32_t n_head = neq2; | ~~~~~~ ^~~~ ggml-cpu/ops.cpp:8105:45: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8105 | const int iq2 = (ir - iq3*neq2*neq1)/neq1; | ~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:8106:45: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8106 | const int iq1 = (ir - iq3*neq2*neq1 - iq2*neq1); | ~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ggml-cpu/ops.cpp:8150:24: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8150 | kq_vec_dot(DK, &s, 0, k_data, 0, Q_q, 0, 1); | ~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:8174:40: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8174 | ggml_vec_scale_f16(DV, VKQ16, ms); | ~~~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:8181:34: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8181 | ggml_vec_mad_f16(DV, VKQ16, (const ggml_fp16_t *) v_data, vs); | ~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:8189:40: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8189 | ggml_vec_scale_f32(DV, VKQ32, ms); | ~~~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:8198:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8198 | ggml_vec_mad_f32(DV, VKQ32, V32, vs); | ~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:8201:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8201 | ggml_vec_mad_f32(DV, VKQ32, (const float *) v_data, vs); | ~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:8223:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8223 | ggml_vec_scale_f32(DV, VKQ32, ms); | ~~~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:8233:28: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8233 | ggml_vec_scale_f32(DV, VKQ32, S_inv); | ~~~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:8327:77: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8327 | ggml_compute_forward_flash_attn_ext_f16_one_chunk(params, dst, ir0, ir1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:8327:72: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8327 | ggml_compute_forward_flash_attn_ext_f16_one_chunk(params, dst, ir0, ir1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:8529:58: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 8529 | ggml_vec_scale_f32(masked_begin, SM, sum); | ~~~~~~~~~~~~~~~~~~ ^~~ ggml-cpu/ops.cpp:8381:30: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8381 | const int Mup = ggml_up(M, GGML_SOFT_MAX_UNROLL); | ~~~~~~~ ^ ggml-cpu/ops.cpp:8382:26: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 8382 | const int mxDM = MAX(D, Mup); | ~~~~ ^ ./ggml-impl.h:38:37: note: expanded from macro 'MAX' 38 | # define MAX(a, b) ((a) > (b) ? (a) : (b)) | ^ ggml-cpu/ops.cpp:8443:24: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8443 | const int nr = nek2*nek3; | ~~ ~~~~^~~~~ ggml-cpu/ops.cpp:8457:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 8457 | int nrep = neq2/nek2; | ~~~~ ~~~~^~~~~ ggml-cpu/ops.cpp:8462:28: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8462 | const int ik2 = ir - ik3*nek2; | ~~~ ~~~^~~~~~~~~~ ggml-cpu/ops.cpp:8470:33: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8470 | const int iq2 = ik2 + irep*nek2; | ~~~ ~~~~^~~~~~~~~~~ ggml-cpu/ops.cpp:8482:30: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8482 | for (int i = M; i < Mup; ++i) { | ~ ^ ggml-cpu/ops.cpp:8489:37: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8489 | const int ik1 = ic; | ~~~ ^~ ggml-cpu/ops.cpp:8494:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8494 | ggml_vec_dot_f32(neq0, | ~~~~~~~~~~~~~~~~ ^~~~ ggml-cpu/ops.cpp:8501:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8501 | ggml_vec_scale_f32(masked_begin, S, scale); | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~ ggml-cpu/ops.cpp:8512:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8512 | ggml_vec_max_f32(masked_begin, &max, S); | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~ ggml-cpu/ops.cpp:8529:40: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8529 | ggml_vec_scale_f32(masked_begin, SM, sum); | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~ ggml-cpu/ops.cpp:8601:34: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8601 | ggml_vec_set_f32(masked_begin, S, 0); | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~ ggml-cpu/ops.cpp:8603:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8603 | ggml_vec_mad_f32(masked_begin, | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~ ggml-cpu/ops.cpp:8611:35: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8611 | ggml_vec_dot_f32 (masked_begin, &dot_SM_gradSM, 0, SM, 0, S, 0, 1); | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~ ggml-cpu/ops.cpp:8612:35: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8612 | ggml_vec_acc1_f32(M, S, -dot_SM_gradSM); | ~~~~~~~~~~~~~~~~~ ^ ggml-cpu/ops.cpp:8613:35: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8613 | ggml_vec_mul_f32 (masked_begin, S, S, SM); | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~ ggml-cpu/ops.cpp:8619:36: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8619 | ggml_vec_scale_f32(masked_begin, S, scale); | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~ ggml-cpu/ops.cpp:8633:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8633 | ggml_vec_mad_f32(D, | ~~~~~~~~~~~~~~~~ ^ ggml-cpu/ops.cpp:8645:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8645 | ggml_vec_mad_f32(D, | ~~~~~~~~~~~~~~~~ ^ ggml-cpu/ops.cpp:8657:38: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 8657 | ggml_vec_mad_f32(masked_begin, | ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~ ggml-cpu/ops.cpp:8697:21: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 8697 | const int nc = src1->ne[0]; // d_conv | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:8698:21: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 8698 | const int ncs = src0->ne[0]; // d_conv - 1 + n_t | ~~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:8699:21: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 8699 | const int nr = src0->ne[1]; // d_inner | ~~ ^~~~~~~~~~~ ggml-cpu/ops.cpp:8700:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8700 | const int n_t = dst->ne[1]; // tokens per sequence | ~~~ ^~~~~~~~~~ ggml-cpu/ops.cpp:8701:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8701 | const int n_s = dst->ne[2]; // number of sequences in the batch | ~~~ ^~~~~~~~~~ ggml-cpu/ops.cpp:8892:25: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 8892 | GGML_F32_VEC_REDUCE(sumf, sum); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/simd-mappings.h:350:29: note: expanded from macro 'GGML_F32_VEC_REDUCE' 350 | #define GGML_F32_VEC_REDUCE GGML_F32x4_REDUCE | ^ ggml-cpu/simd-mappings.h:339:13: note: expanded from macro 'GGML_F32x4_REDUCE' 339 | (res) = (ggml_float) GGML_F32x4_REDUCE_ONE((x)[0]); \ | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:8793:34: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8793 | const int dh = (nh + nth - 1)/nth; | ~~ ~~~~~~~~~~~~~~^~~~ ggml-cpu/ops.cpp:8797:35: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 8797 | const int ih1 = MIN(ih0 + dh, nh); | ~~~ ^~ ./ggml-impl.h:34:43: note: expanded from macro 'MIN' 34 | # define MIN(a, b) ((a) < (b) ? (a) : (b)) | ^ ggml-cpu/ops.cpp:8825:43: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8825 | const int ii = i1 + h*nr; | ~~ ~~~^~~~~~ ggml-cpu/ops.cpp:8863:44: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8863 | const int np = (nc & ~(GGML_F32_STEP - 1)); | ~~ ~~~^~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:8899:46: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8899 | const int i = i0 + ii*nc; | ~ ~~~^~~~~~~ ggml-cpu/ops.cpp:8900:47: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8900 | const int ig = i0 + g*nc; | ~~ ~~~^~~~~~ ggml-cpu/ops.cpp:8921:43: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8921 | const int ii = i1 + h*nr; | ~~ ~~~^~~~~~ ggml-cpu/ops.cpp:8952:46: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8952 | const int i = i0 + ii*nc; | ~ ~~~^~~~~~~ ggml-cpu/ops.cpp:8953:47: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 8953 | const int ig = i0 + g*nc; | ~~ ~~~^~~~~~ ggml-cpu/ops.cpp:9067:31: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 9067 | const int npx = (px + ne1)/w; | ~~~ ~~~~~~~~~~^~ ggml-cpu/ops.cpp:9076:35: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 9076 | const int ip2 = i2/w; | ~~~ ~~^~ ggml-cpu/ops.cpp:9077:35: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 9077 | const int ip1 = i1/w; | ~~~ ~~^~ ggml-cpu/ops.cpp:9333:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 9333 | const int np = ne13; | ~~ ^~~~ ggml-cpu/ops.cpp:9403:39: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 9403 | const int h_start = (HEADS * ith) / nth; | ~~~~~~~ ~~~~~~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:9405:37: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 9404 | const int h_end = ((HEADS * (ith + 1)) / nth < HEADS) ? | ~~~~~ 9405 | (HEADS * (ith + 1)) / nth : HEADS; | ~~~~~~~~~~~~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:9405:45: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 9404 | const int h_end = ((HEADS * (ith + 1)) / nth < HEADS) ? | ~~~~~ 9405 | (HEADS * (ith + 1)) / nth : HEADS; | ^~~~~ ggml-cpu/ops.cpp:9620:39: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 9620 | const int h_start = (HEADS * ith) / nth; | ~~~~~~~ ~~~~~~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:9622:37: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 9621 | const int h_end = ((HEADS * (ith + 1)) / nth < HEADS) ? | ~~~~~ 9622 | (HEADS * (ith + 1)) / nth : HEADS; | ~~~~~~~~~~~~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:9622:45: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 9621 | const int h_end = ((HEADS * (ith + 1)) / nth < HEADS) ? | ~~~~~ 9622 | (HEADS * (ith + 1)) / nth : HEADS; | ^~~~~ ggml-cpu/ops.cpp:9983:29: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 9983 | GGML_F32_VEC_REDUCE(sa, sum); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/simd-mappings.h:350:29: note: expanded from macro 'GGML_F32_VEC_REDUCE' 350 | #define GGML_F32_VEC_REDUCE GGML_F32x4_REDUCE | ^ ggml-cpu/simd-mappings.h:339:13: note: expanded from macro 'GGML_F32x4_REDUCE' 339 | (res) = (ggml_float) GGML_F32x4_REDUCE_ONE((x)[0]); \ | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:10011:25: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 10011 | GGML_F32_VEC_REDUCE(dst_data[t_h_i_offset], result_vec); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/simd-mappings.h:350:29: note: expanded from macro 'GGML_F32_VEC_REDUCE' 350 | #define GGML_F32_VEC_REDUCE GGML_F32x4_REDUCE | ^ ggml-cpu/simd-mappings.h:339:13: note: expanded from macro 'GGML_F32x4_REDUCE' 339 | (res) = (ggml_float) GGML_F32x4_REDUCE_ONE((x)[0]); \ | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:9894:39: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 9894 | const int h_start = (HEADS * ith) / nth; | ~~~~~~~ ~~~~~~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:9896:37: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 9895 | const int h_end = ((HEADS * (ith + 1)) / nth < HEADS) ? | ~~~~~ 9896 | (HEADS * (ith + 1)) / nth : HEADS; | ~~~~~~~~~~~~~~~~~~~~^~~~~ ggml-cpu/ops.cpp:9896:45: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 9895 | const int h_end = ((HEADS * (ith + 1)) / nth < HEADS) ? | ~~~~~ 9896 | (HEADS * (ith + 1)) / nth : HEADS; | ^~~~~ ggml-cpu/ops.cpp:10205:39: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 10205 | ggml_vec_add1_f32(nc, st, st, -sum_softmax); | ~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~ ggml-cpu/ops.cpp:10201:26: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 10201 | ggml_vec_max_f32(nc, &max, s0); | ~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:10202:66: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 10202 | const ggml_float sum_softmax = ggml_vec_log_soft_max_f32(nc, st, s0, max); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:10205:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 10205 | ggml_vec_add1_f32(nc, st, st, -sum_softmax); | ~~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:10206:26: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 10206 | ggml_vec_mul_f32(nc, st, st, s1); | ~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:10209:26: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 10209 | ggml_vec_sum_f32(nc, &sum_st, st); | ~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:10297:40: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 10297 | ggml_vec_scale_f32(nc, ds0, 1.0/sum); | ~~~~~~~~~~~~~~~~~~ ~~~^~~~ ggml-cpu/ops.cpp:10294:26: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 10294 | ggml_vec_max_f32(nc, &max, s0); | ~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:10295:54: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 10295 | const ggml_float sum = ggml_vec_soft_max_f32(nc, ds0, s0, max); | ~~~~~~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:10297:28: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 10297 | ggml_vec_scale_f32(nc, ds0, 1.0/sum); | ~~~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:10300:26: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 10300 | ggml_vec_sub_f32(nc, ds0, ds0, s1); | ~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:10301:28: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 10301 | ggml_vec_scale_f32(nc, ds0, d_by_nr); | ~~~~~~~~~~~~~~~~~~ ^~ ggml-cpu/ops.cpp:10348:21: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 10348 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:10426:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 10426 | const int nr = ggml_nrows(src0); | ~~ ^~~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:62:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 62 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:540:55: note: in instantiation of function template specialization 'ggml_compute_forward_dup_flt' requested here 540 | /**/ if (dst->type == GGML_TYPE_F16) ggml_compute_forward_dup_flt(params, dst); | ^ ggml-cpu/ops.cpp:62:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 62 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:541:55: note: in instantiation of function template specialization 'ggml_compute_forward_dup_flt' requested here 541 | else if (dst->type == GGML_TYPE_BF16) ggml_compute_forward_dup_flt(params, dst); | ^ ggml-cpu/ops.cpp:62:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 62 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:542:55: note: in instantiation of function template specialization 'ggml_compute_forward_dup_flt' requested here 542 | else if (dst->type == GGML_TYPE_F32) ggml_compute_forward_dup_flt(params, dst); | ^ ggml-cpu/ops.cpp:285:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 285 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:543:22: note: in instantiation of function template specialization 'ggml_compute_forward_dup_to_q' requested here 543 | else ggml_compute_forward_dup_to_q(params, dst); | ^ ggml-cpu/ops.cpp:62:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 62 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:547:55: note: in instantiation of function template specialization 'ggml_compute_forward_dup_flt' requested here 547 | /**/ if (dst->type == GGML_TYPE_F16) ggml_compute_forward_dup_flt(params, dst); | ^ ggml-cpu/ops.cpp:62:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 62 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:548:55: note: in instantiation of function template specialization 'ggml_compute_forward_dup_flt' requested here 548 | else if (dst->type == GGML_TYPE_BF16) ggml_compute_forward_dup_flt(params, dst); | ^ ggml-cpu/ops.cpp:62:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 62 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:549:55: note: in instantiation of function template specialization 'ggml_compute_forward_dup_flt' requested here 549 | else if (dst->type == GGML_TYPE_F32) ggml_compute_forward_dup_flt(params, dst); | ^ ggml-cpu/ops.cpp:285:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 285 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:550:22: note: in instantiation of function template specialization 'ggml_compute_forward_dup_to_q' requested here 550 | else ggml_compute_forward_dup_to_q(params, dst); | ^ ggml-cpu/ops.cpp:62:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 62 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:554:55: note: in instantiation of function template specialization 'ggml_compute_forward_dup_flt' requested here 554 | /**/ if (dst->type == GGML_TYPE_F16) ggml_compute_forward_dup_flt(params, dst); | ^ ggml-cpu/ops.cpp:62:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 62 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:555:55: note: in instantiation of function template specialization 'ggml_compute_forward_dup_flt' requested here 555 | else if (dst->type == GGML_TYPE_BF16) ggml_compute_forward_dup_flt(params, dst); | ^ ggml-cpu/ops.cpp:62:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 62 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:556:55: note: in instantiation of function template specialization 'ggml_compute_forward_dup_flt' requested here 556 | else if (dst->type == GGML_TYPE_F32) ggml_compute_forward_dup_flt(params, dst); | ^ ggml-cpu/ops.cpp:62:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 62 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:557:55: note: in instantiation of function template specialization 'ggml_compute_forward_dup_flt' requested here 557 | else if (dst->type == GGML_TYPE_I32) ggml_compute_forward_dup_flt(params, dst); | ^ ggml-cpu/ops.cpp:285:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 285 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:558:22: note: in instantiation of function template specialization 'ggml_compute_forward_dup_to_q' requested here 558 | else ggml_compute_forward_dup_to_q(params, dst); | ^ ggml-cpu/ops.cpp:62:20: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 62 | const int nr = ne01; | ~~ ^~~~ ggml-cpu/ops.cpp:562:49: note: in instantiation of function template specialization 'ggml_compute_forward_dup_flt' requested here 562 | if (dst->type == GGML_TYPE_F32) ggml_compute_forward_dup_flt(params, dst); | ^ ggml-cpu/ops.cpp:5696:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 5696 | const int nr = ggml_nrows(dst); | ~~ ^~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:5807:17: note: in instantiation of function template specialization 'ggml_compute_forward_rope_flt' requested here 5807 | ggml_compute_forward_rope_flt(params, dst, true); | ^ ggml-cpu/ops.cpp:5696:20: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 5696 | const int nr = ggml_nrows(dst); | ~~ ^~~~~~~~~~~~~~~ ggml-cpu/ops.cpp:5811:17: note: in instantiation of function template specialization 'ggml_compute_forward_rope_flt' requested here 5811 | ggml_compute_forward_rope_flt(params, dst, true); | ^ In file included from ggml-cpu/ops.cpp:4: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 335 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-cpu/vec.cpp -o ggml-cpu/vec.o In file included from ggml-cpu/vec.cpp:1: In file included from ggml-cpu/vec.h:5: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:694:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./ggml-impl.h:694:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~ In file included from ggml-cpu/vec.cpp:1: In file included from ggml-cpu/vec.h:6: ggml-cpu/simd-mappings.h:52:22: warning: implicit conversion loses floating-point precision: 'float' to '__fp16' [-Wimplicit-float-conversion] 52 | __fp16 tmp = f; | ~~~ ^ ggml-cpu/vec.cpp:121:9: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 121 | GGML_F32_VEC_REDUCE(sumf, sum); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/simd-mappings.h:350:29: note: expanded from macro 'GGML_F32_VEC_REDUCE' 350 | #define GGML_F32_VEC_REDUCE GGML_F32x4_REDUCE | ^ ggml-cpu/simd-mappings.h:339:13: note: expanded from macro 'GGML_F32x4_REDUCE' 339 | (res) = (ggml_float) GGML_F32x4_REDUCE_ONE((x)[0]); \ | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/vec.cpp:244:10: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 244 | *s = sumf; | ~ ^~~~ ggml-cpu/vec.cpp:376:10: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 376 | *s = sumf; | ~ ^~~~ ggml-cpu/vec.cpp:611:35: warning: implicit conversion loses floating-point precision: 'ggml_float' (aka 'double') to 'float' [-Wimplicit-float-conversion] 611 | return sum = (ggml_float)logf(sum); | ~~~~ ^~~ In file included from ggml-cpu/vec.cpp:1: In file included from ggml-cpu/vec.h:5: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 18 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-cpu/binary-ops.cpp -o ggml-cpu/binary-ops.o In file included from ggml-cpu/binary-ops.cpp:1: In file included from ggml-cpu/binary-ops.h:3: In file included from ggml-cpu/common.h:4: In file included from ggml-cpu/traits.h:3: In file included from ggml-cpu/ggml-cpu-impl.h:6: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:694:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./ggml-impl.h:694:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~ In file included from ggml-cpu/binary-ops.cpp:1: In file included from ggml-cpu/binary-ops.h:3: In file included from ggml-cpu/common.h:7: ggml-cpu/simd-mappings.h:52:22: warning: implicit conversion loses floating-point precision: 'float' to '__fp16' [-Wimplicit-float-conversion] 52 | __fp16 tmp = f; | ~~~ ^ In file included from ggml-cpu/binary-ops.cpp:1: In file included from ggml-cpu/binary-ops.h:3: ggml-cpu/common.h:36:12: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 36 | return x; | ~~~~~~ ^ In file included from ggml-cpu/binary-ops.cpp:1: In file included from ggml-cpu/binary-ops.h:3: In file included from ggml-cpu/common.h:4: In file included from ggml-cpu/traits.h:3: In file included from ggml-cpu/ggml-cpu-impl.h:6: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 15 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-cpu/unary-ops.cpp -o ggml-cpu/unary-ops.o In file included from ggml-cpu/unary-ops.cpp:1: In file included from ggml-cpu/unary-ops.h:3: In file included from ggml-cpu/common.h:4: In file included from ggml-cpu/traits.h:3: In file included from ggml-cpu/ggml-cpu-impl.h:6: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:694:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./ggml-impl.h:694:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~ In file included from ggml-cpu/unary-ops.cpp:1: In file included from ggml-cpu/unary-ops.h:3: In file included from ggml-cpu/common.h:7: ggml-cpu/simd-mappings.h:52:22: warning: implicit conversion loses floating-point precision: 'float' to '__fp16' [-Wimplicit-float-conversion] 52 | __fp16 tmp = f; | ~~~ ^ In file included from ggml-cpu/unary-ops.cpp:1: In file included from ggml-cpu/unary-ops.h:3: ggml-cpu/common.h:36:12: warning: implicit conversion turns floating-point number into integer: 'float' to 'int32_t' (aka 'int') [-Wfloat-conversion] 36 | return x; | ~~~~~~ ^ In file included from ggml-cpu/unary-ops.cpp:1: In file included from ggml-cpu/unary-ops.h:3: In file included from ggml-cpu/common.h:4: In file included from ggml-cpu/traits.h:3: In file included from ggml-cpu/ggml-cpu-impl.h:6: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 14 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-cpu/repack.cpp -o ggml-cpu/repack.o In file included from ggml-cpu/repack.cpp:6: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:694:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./ggml-impl.h:694:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~ In file included from ggml-cpu/repack.cpp:9: ggml-cpu/simd-mappings.h:52:22: warning: implicit conversion loses floating-point precision: 'float' to '__fp16' [-Wimplicit-float-conversion] 52 | __fp16 tmp = f; | ~~~ ^ ggml-cpu/repack.cpp:70:28: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 70 | id[row_iter] = d ? 1.0f / d : 0.0f; | ^ ~ ggml-cpu/repack.cpp:81:26: warning: implicit conversion turns floating-point number into integer: 'float' to 'int8_t' (aka 'signed char') [-Wfloat-conversion] 81 | y[i].qs[j] = roundf(x0); | ~ ^~~~~~~~~~ ggml-cpu/repack.cpp:51:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 51 | const int nb = k / QK8_0; | ~~ ~~^~~~~~~ ggml-cpu/repack.cpp:108:28: warning: implicit conversion turns floating-point number into integer: 'const float' to 'bool' [-Wfloat-conversion] 108 | id[row_iter] = d ? 1.0f / d : 0.0f; | ^ ~ ggml-cpu/repack.cpp:119:26: warning: implicit conversion turns floating-point number into integer: 'float' to 'int8_t' (aka 'signed char') [-Wfloat-conversion] 119 | y[i].qs[j] = roundf(x0); | ~ ^~~~~~~~~~ ggml-cpu/repack.cpp:89:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 89 | const int nb = k / QK8_0; | ~~ ~~^~~~~~~ ggml-cpu/repack.cpp:151:32: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 151 | iscale[row_iter] = amax ? -127.f/max : 0; | ^~~~ ~ ggml-cpu/repack.cpp:153:32: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 153 | y[i].d[row_iter] = amax ? 1/iscale[row_iter] : 0; | ^~~~ ~ ggml-cpu/repack.cpp:170:26: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 170 | y[i].qs[j] = nearest_int(x0); | ~ ^~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:128:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 128 | const int nb = k / QK_K; | ~~ ~~^~~~~~ ggml-cpu/repack.cpp:202:32: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 202 | iscale[row_iter] = amax ? -127.f/max : 0; | ^~~~ ~ ggml-cpu/repack.cpp:204:32: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 204 | y[i].d[row_iter] = amax ? 1/iscale[row_iter] : 0; | ^~~~ ~ ggml-cpu/repack.cpp:221:26: warning: implicit conversion loses integer precision: 'int' to 'int8_t' (aka 'signed char') [-Wimplicit-int-conversion] 221 | y[i].qs[j] = nearest_int(x0); | ~ ^~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:179:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 179 | const int nb = k / QK_K; | ~~ ~~^~~~~~ ggml-cpu/repack.cpp:1542:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1542 | out.scales[i * 12] = (s[0] & 63) + ((s[4] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1543:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1543 | out.scales[i * 12 + 1] = (s[1] & 63) + ((s[5] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1544:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1544 | out.scales[i * 12 + 2] = (s[2] & 63) + ((s[6] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1545:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1545 | out.scales[i * 12 + 3] = (s[3] & 63) + ((s[7] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1546:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1546 | out.scales[i * 12 + 4] = (m[0] & 63) + ((m[4] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1547:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1547 | out.scales[i * 12 + 5] = (m[1] & 63) + ((m[5] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1548:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1548 | out.scales[i * 12 + 6] = (m[2] & 63) + ((m[6] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1549:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1549 | out.scales[i * 12 + 7] = (m[3] & 63) + ((m[7] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1550:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1550 | out.scales[i * 12 + 8] = (s[4] & 15) + ((m[4] & 15) << 4); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1551:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1551 | out.scales[i * 12 + 9] = (s[5] & 15) + ((m[5] & 15) << 4); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1552:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1552 | out.scales[i * 12 + 10] = (s[6] & 15) + ((m[6] & 15) << 4); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1553:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1553 | out.scales[i * 12 + 11] = (s[7] & 15) + ((m[7] & 15) << 4); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1563:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1563 | out.scales[i * 12 + 48] = (s[0] & 63) + ((s[4] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1564:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1564 | out.scales[i * 12 + 49] = (s[1] & 63) + ((s[5] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1565:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1565 | out.scales[i * 12 + 50] = (s[2] & 63) + ((s[6] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1566:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1566 | out.scales[i * 12 + 51] = (s[3] & 63) + ((s[7] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1567:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1567 | out.scales[i * 12 + 52] = (m[0] & 63) + ((m[4] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1568:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1568 | out.scales[i * 12 + 53] = (m[1] & 63) + ((m[5] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1569:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1569 | out.scales[i * 12 + 54] = (m[2] & 63) + ((m[6] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1570:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1570 | out.scales[i * 12 + 55] = (m[3] & 63) + ((m[7] & 48) << 2); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1571:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1571 | out.scales[i * 12 + 56] = (s[4] & 15) + ((m[4] & 15) << 4); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1572:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1572 | out.scales[i * 12 + 57] = (s[5] & 15) + ((m[5] & 15) << 4); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1573:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1573 | out.scales[i * 12 + 58] = (s[6] & 15) + ((m[6] & 15) << 4); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1574:47: warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 1574 | out.scales[i * 12 + 59] = (s[7] & 15) + ((m[7] & 15) << 4); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:1633:16: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1633 | int nrow = ggml_nrows(t); | ~~~~ ^~~~~~~~~~~~~ ggml-cpu/repack.cpp:1634:28: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1634 | int nblocks = t->ne[0] / QK4_0; | ~~~~~~~ ~~~~~~~~~^~~~~~~ ggml-cpu/repack.cpp:1664:16: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1664 | int nrow = ggml_nrows(t); | ~~~~ ^~~~~~~~~~~~~ ggml-cpu/repack.cpp:1665:28: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1665 | int nblocks = t->ne[0] / QK_K; | ~~~~~~~ ~~~~~~~~~^~~~~~ ggml-cpu/repack.cpp:1695:16: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1695 | int nrow = ggml_nrows(t); | ~~~~ ^~~~~~~~~~~~~ ggml-cpu/repack.cpp:1696:28: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1696 | int nblocks = t->ne[0] / QK_K; | ~~~~~~~ ~~~~~~~~~^~~~~~ ggml-cpu/repack.cpp:1726:16: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1726 | int nrow = ggml_nrows(t); | ~~~~ ^~~~~~~~~~~~~ ggml-cpu/repack.cpp:1727:28: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1727 | int nblocks = t->ne[0] / QK4_0; | ~~~~~~~ ~~~~~~~~~^~~~~~~ ggml-cpu/repack.cpp:1760:34: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1760 | int nrow = ggml_nrows(t); | ~~~~ ^~~~~~~~~~~~~ ggml-cpu/repack.cpp:1761:43: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1761 | int nblocks = t->ne[0] / QK8_0; | ~~~~~~~ ~~~~~~~~~^~~~~~~ ggml-cpu/repack.cpp:1825:16: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1825 | int nrow = ggml_nrows(t); | ~~~~ ^~~~~~~~~~~~~ ggml-cpu/repack.cpp:1827:28: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1827 | int nblocks = t->ne[0] / QK4_NL; | ~~~~~~~ ~~~~~~~~~^~~~~~~~ ggml-cpu/repack.cpp:1882:16: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1882 | int nrow = ggml_nrows(t); | ~~~~ ^~~~~~~~~~~~~ ggml-cpu/repack.cpp:1884:28: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 1884 | int nblocks = t->ne[0] / QK4_NL; | ~~~~~~~ ~~~~~~~~~^~~~~~~~ ggml-cpu/repack.cpp:2136:83: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ^~~~~ ggml-cpu/repack.cpp:2272:13: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_one_chunk' requested here 2272 | forward_mul_mat_one_chunk(params, dst, src0_start, src0_end, src1_start, src1_end); | ^ ggml-cpu/repack.cpp:2084:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat' requested here 2084 | forward_mul_mat(params, op); | ^ ggml-cpu/repack.cpp:2424:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2424 | static const ggml::cpu::repack::tensor_traits q4_0_4x4_q8_0; | ^ ggml-cpu/repack.cpp:2136:68: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2134:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2138:31: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2138 | for (int iter = nrows - (nrows % 4); iter < nrows; iter++) { | ~~~~ ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2141:114: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ 2140 | ne01, src0_ptr + src0_start * nb01, 2141 | src1_ptr + (src1_col_stride * iter), 1 /* nrows */, ncols); | ^~~~~ ggml-cpu/repack.cpp:2139:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2308:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2308 | const int n_ids = ids->ne[0]; // n_expert_used | ~~~~~ ^~~~~~~~~~ ggml-cpu/repack.cpp:2087:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_id' requested here 2087 | forward_mul_mat_id(params, op); | ^ ggml-cpu/repack.cpp:2424:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2424 | static const ggml::cpu::repack::tensor_traits q4_0_4x4_q8_0; | ^ ggml-cpu/repack.cpp:2309:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2309 | const int n_as = ne02; // n_expert | ~~~~ ^~~~ ggml-cpu/repack.cpp:2406:51: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ 2404 | (float *)((char *) dst->data + (i1 * nb1 + i2 * nb2)) + src0_cur_start, ne01, 2405 | src0_cur + src0_cur_start * nb01, 2406 | src1_col, 1, src0_cur_end - src0_cur_start); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:2403:66: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2136:83: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ^~~~~ ggml-cpu/repack.cpp:2272:13: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_one_chunk' requested here 2272 | forward_mul_mat_one_chunk(params, dst, src0_start, src0_end, src1_start, src1_end); | ^ ggml-cpu/repack.cpp:2084:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat' requested here 2084 | forward_mul_mat(params, op); | ^ ggml-cpu/repack.cpp:2425:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2425 | static const ggml::cpu::repack::tensor_traits q4_0_4x8_q8_0; | ^ ggml-cpu/repack.cpp:2136:68: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2134:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2138:31: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2138 | for (int iter = nrows - (nrows % 4); iter < nrows; iter++) { | ~~~~ ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2141:114: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ 2140 | ne01, src0_ptr + src0_start * nb01, 2141 | src1_ptr + (src1_col_stride * iter), 1 /* nrows */, ncols); | ^~~~~ ggml-cpu/repack.cpp:2139:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2308:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2308 | const int n_ids = ids->ne[0]; // n_expert_used | ~~~~~ ^~~~~~~~~~ ggml-cpu/repack.cpp:2087:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_id' requested here 2087 | forward_mul_mat_id(params, op); | ^ ggml-cpu/repack.cpp:2425:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2425 | static const ggml::cpu::repack::tensor_traits q4_0_4x8_q8_0; | ^ ggml-cpu/repack.cpp:2309:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2309 | const int n_as = ne02; // n_expert | ~~~~ ^~~~ ggml-cpu/repack.cpp:2406:51: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ 2404 | (float *)((char *) dst->data + (i1 * nb1 + i2 * nb2)) + src0_cur_start, ne01, 2405 | src0_cur + src0_cur_start * nb01, 2406 | src1_col, 1, src0_cur_end - src0_cur_start); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:2403:66: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2136:83: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ^~~~~ ggml-cpu/repack.cpp:2272:13: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_one_chunk' requested here 2272 | forward_mul_mat_one_chunk(params, dst, src0_start, src0_end, src1_start, src1_end); | ^ ggml-cpu/repack.cpp:2084:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat' requested here 2084 | forward_mul_mat(params, op); | ^ ggml-cpu/repack.cpp:2426:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2426 | static const ggml::cpu::repack::tensor_traits q4_0_8x8_q8_0; | ^ ggml-cpu/repack.cpp:2136:68: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2134:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2138:31: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2138 | for (int iter = nrows - (nrows % 4); iter < nrows; iter++) { | ~~~~ ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2141:114: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ 2140 | ne01, src0_ptr + src0_start * nb01, 2141 | src1_ptr + (src1_col_stride * iter), 1 /* nrows */, ncols); | ^~~~~ ggml-cpu/repack.cpp:2139:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2308:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2308 | const int n_ids = ids->ne[0]; // n_expert_used | ~~~~~ ^~~~~~~~~~ ggml-cpu/repack.cpp:2087:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_id' requested here 2087 | forward_mul_mat_id(params, op); | ^ ggml-cpu/repack.cpp:2426:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2426 | static const ggml::cpu::repack::tensor_traits q4_0_8x8_q8_0; | ^ ggml-cpu/repack.cpp:2309:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2309 | const int n_as = ne02; // n_expert | ~~~~ ^~~~ ggml-cpu/repack.cpp:2406:51: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ 2404 | (float *)((char *) dst->data + (i1 * nb1 + i2 * nb2)) + src0_cur_start, ne01, 2405 | src0_cur + src0_cur_start * nb01, 2406 | src1_col, 1, src0_cur_end - src0_cur_start); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:2403:66: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2136:83: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ^~~~~ ggml-cpu/repack.cpp:2272:13: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_one_chunk' requested here 2272 | forward_mul_mat_one_chunk(params, dst, src0_start, src0_end, src1_start, src1_end); | ^ ggml-cpu/repack.cpp:2084:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat' requested here 2084 | forward_mul_mat(params, op); | ^ ggml-cpu/repack.cpp:2429:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2429 | static const ggml::cpu::repack::tensor_traits q4_K_8x4_q8_K; | ^ ggml-cpu/repack.cpp:2136:68: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2134:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2138:31: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2138 | for (int iter = nrows - (nrows % 4); iter < nrows; iter++) { | ~~~~ ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2141:114: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ 2140 | ne01, src0_ptr + src0_start * nb01, 2141 | src1_ptr + (src1_col_stride * iter), 1 /* nrows */, ncols); | ^~~~~ ggml-cpu/repack.cpp:2139:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2308:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2308 | const int n_ids = ids->ne[0]; // n_expert_used | ~~~~~ ^~~~~~~~~~ ggml-cpu/repack.cpp:2087:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_id' requested here 2087 | forward_mul_mat_id(params, op); | ^ ggml-cpu/repack.cpp:2429:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2429 | static const ggml::cpu::repack::tensor_traits q4_K_8x4_q8_K; | ^ ggml-cpu/repack.cpp:2309:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2309 | const int n_as = ne02; // n_expert | ~~~~ ^~~~ ggml-cpu/repack.cpp:2406:51: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ 2404 | (float *)((char *) dst->data + (i1 * nb1 + i2 * nb2)) + src0_cur_start, ne01, 2405 | src0_cur + src0_cur_start * nb01, 2406 | src1_col, 1, src0_cur_end - src0_cur_start); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:2403:66: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2136:83: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ^~~~~ ggml-cpu/repack.cpp:2272:13: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_one_chunk' requested here 2272 | forward_mul_mat_one_chunk(params, dst, src0_start, src0_end, src1_start, src1_end); | ^ ggml-cpu/repack.cpp:2084:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat' requested here 2084 | forward_mul_mat(params, op); | ^ ggml-cpu/repack.cpp:2430:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2430 | static const ggml::cpu::repack::tensor_traits q4_K_8x8_q8_K; | ^ ggml-cpu/repack.cpp:2136:68: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2134:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2138:31: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2138 | for (int iter = nrows - (nrows % 4); iter < nrows; iter++) { | ~~~~ ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2141:114: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ 2140 | ne01, src0_ptr + src0_start * nb01, 2141 | src1_ptr + (src1_col_stride * iter), 1 /* nrows */, ncols); | ^~~~~ ggml-cpu/repack.cpp:2139:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2308:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2308 | const int n_ids = ids->ne[0]; // n_expert_used | ~~~~~ ^~~~~~~~~~ ggml-cpu/repack.cpp:2087:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_id' requested here 2087 | forward_mul_mat_id(params, op); | ^ ggml-cpu/repack.cpp:2430:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2430 | static const ggml::cpu::repack::tensor_traits q4_K_8x8_q8_K; | ^ ggml-cpu/repack.cpp:2309:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2309 | const int n_as = ne02; // n_expert | ~~~~ ^~~~ ggml-cpu/repack.cpp:2406:51: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ 2404 | (float *)((char *) dst->data + (i1 * nb1 + i2 * nb2)) + src0_cur_start, ne01, 2405 | src0_cur + src0_cur_start * nb01, 2406 | src1_col, 1, src0_cur_end - src0_cur_start); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:2403:66: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2136:83: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ^~~~~ ggml-cpu/repack.cpp:2272:13: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_one_chunk' requested here 2272 | forward_mul_mat_one_chunk(params, dst, src0_start, src0_end, src1_start, src1_end); | ^ ggml-cpu/repack.cpp:2084:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat' requested here 2084 | forward_mul_mat(params, op); | ^ ggml-cpu/repack.cpp:2433:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2433 | static const ggml::cpu::repack::tensor_traits q2_K_8x8_q8_K; | ^ ggml-cpu/repack.cpp:2136:68: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2134:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2138:31: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2138 | for (int iter = nrows - (nrows % 4); iter < nrows; iter++) { | ~~~~ ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2141:114: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ 2140 | ne01, src0_ptr + src0_start * nb01, 2141 | src1_ptr + (src1_col_stride * iter), 1 /* nrows */, ncols); | ^~~~~ ggml-cpu/repack.cpp:2139:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2308:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2308 | const int n_ids = ids->ne[0]; // n_expert_used | ~~~~~ ^~~~~~~~~~ ggml-cpu/repack.cpp:2087:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_id' requested here 2087 | forward_mul_mat_id(params, op); | ^ ggml-cpu/repack.cpp:2433:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2433 | static const ggml::cpu::repack::tensor_traits q2_K_8x8_q8_K; | ^ ggml-cpu/repack.cpp:2309:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2309 | const int n_as = ne02; // n_expert | ~~~~ ^~~~ ggml-cpu/repack.cpp:2406:51: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ 2404 | (float *)((char *) dst->data + (i1 * nb1 + i2 * nb2)) + src0_cur_start, ne01, 2405 | src0_cur + src0_cur_start * nb01, 2406 | src1_col, 1, src0_cur_end - src0_cur_start); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:2403:66: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2136:83: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ^~~~~ ggml-cpu/repack.cpp:2272:13: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_one_chunk' requested here 2272 | forward_mul_mat_one_chunk(params, dst, src0_start, src0_end, src1_start, src1_end); | ^ ggml-cpu/repack.cpp:2084:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat' requested here 2084 | forward_mul_mat(params, op); | ^ ggml-cpu/repack.cpp:2436:87: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2436 | static const ggml::cpu::repack::tensor_traits iq4_nl_4x4_q8_0; | ^ ggml-cpu/repack.cpp:2136:68: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2134:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2138:31: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2138 | for (int iter = nrows - (nrows % 4); iter < nrows; iter++) { | ~~~~ ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2141:114: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ 2140 | ne01, src0_ptr + src0_start * nb01, 2141 | src1_ptr + (src1_col_stride * iter), 1 /* nrows */, ncols); | ^~~~~ ggml-cpu/repack.cpp:2139:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2308:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2308 | const int n_ids = ids->ne[0]; // n_expert_used | ~~~~~ ^~~~~~~~~~ ggml-cpu/repack.cpp:2087:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_id' requested here 2087 | forward_mul_mat_id(params, op); | ^ ggml-cpu/repack.cpp:2436:87: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2436 | static const ggml::cpu::repack::tensor_traits iq4_nl_4x4_q8_0; | ^ ggml-cpu/repack.cpp:2309:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2309 | const int n_as = ne02; // n_expert | ~~~~ ^~~~ ggml-cpu/repack.cpp:2406:51: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ 2404 | (float *)((char *) dst->data + (i1 * nb1 + i2 * nb2)) + src0_cur_start, ne01, 2405 | src0_cur + src0_cur_start * nb01, 2406 | src1_col, 1, src0_cur_end - src0_cur_start); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:2403:66: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2136:83: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ^~~~~ ggml-cpu/repack.cpp:2272:13: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_one_chunk' requested here 2272 | forward_mul_mat_one_chunk(params, dst, src0_start, src0_end, src1_start, src1_end); | ^ ggml-cpu/repack.cpp:2084:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat' requested here 2084 | forward_mul_mat(params, op); | ^ ggml-cpu/repack.cpp:2437:87: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2437 | static const ggml::cpu::repack::tensor_traits iq4_nl_8x8_q8_0; | ^ ggml-cpu/repack.cpp:2136:68: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2134:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2138:31: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2138 | for (int iter = nrows - (nrows % 4); iter < nrows; iter++) { | ~~~~ ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2141:114: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ 2140 | ne01, src0_ptr + src0_start * nb01, 2141 | src1_ptr + (src1_col_stride * iter), 1 /* nrows */, ncols); | ^~~~~ ggml-cpu/repack.cpp:2139:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2308:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2308 | const int n_ids = ids->ne[0]; // n_expert_used | ~~~~~ ^~~~~~~~~~ ggml-cpu/repack.cpp:2087:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_id' requested here 2087 | forward_mul_mat_id(params, op); | ^ ggml-cpu/repack.cpp:2437:87: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2437 | static const ggml::cpu::repack::tensor_traits iq4_nl_8x8_q8_0; | ^ ggml-cpu/repack.cpp:2309:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2309 | const int n_as = ne02; // n_expert | ~~~~ ^~~~ ggml-cpu/repack.cpp:2406:51: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ 2404 | (float *)((char *) dst->data + (i1 * nb1 + i2 * nb2)) + src0_cur_start, ne01, 2405 | src0_cur + src0_cur_start * nb01, 2406 | src1_col, 1, src0_cur_end - src0_cur_start); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:2403:66: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2136:83: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ^~~~~ ggml-cpu/repack.cpp:2272:13: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_one_chunk' requested here 2272 | forward_mul_mat_one_chunk(params, dst, src0_start, src0_end, src1_start, src1_end); | ^ ggml-cpu/repack.cpp:2084:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat' requested here 2084 | forward_mul_mat(params, op); | ^ ggml-cpu/repack.cpp:2440:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2440 | static const ggml::cpu::repack::tensor_traits q8_0_4x4_q8_0; | ^ ggml-cpu/repack.cpp:2136:68: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2134:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2138:31: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2138 | for (int iter = nrows - (nrows % 4); iter < nrows; iter++) { | ~~~~ ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2141:114: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ 2140 | ne01, src0_ptr + src0_start * nb01, 2141 | src1_ptr + (src1_col_stride * iter), 1 /* nrows */, ncols); | ^~~~~ ggml-cpu/repack.cpp:2139:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2308:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2308 | const int n_ids = ids->ne[0]; // n_expert_used | ~~~~~ ^~~~~~~~~~ ggml-cpu/repack.cpp:2087:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_id' requested here 2087 | forward_mul_mat_id(params, op); | ^ ggml-cpu/repack.cpp:2440:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2440 | static const ggml::cpu::repack::tensor_traits q8_0_4x4_q8_0; | ^ ggml-cpu/repack.cpp:2309:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2309 | const int n_as = ne02; // n_expert | ~~~~ ^~~~ ggml-cpu/repack.cpp:2406:51: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ 2404 | (float *)((char *) dst->data + (i1 * nb1 + i2 * nb2)) + src0_cur_start, ne01, 2405 | src0_cur + src0_cur_start * nb01, 2406 | src1_col, 1, src0_cur_end - src0_cur_start); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:2403:66: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2136:83: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ^~~~~ ggml-cpu/repack.cpp:2272:13: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_one_chunk' requested here 2272 | forward_mul_mat_one_chunk(params, dst, src0_start, src0_end, src1_start, src1_end); | ^ ggml-cpu/repack.cpp:2084:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat' requested here 2084 | forward_mul_mat(params, op); | ^ ggml-cpu/repack.cpp:2441:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2441 | static const ggml::cpu::repack::tensor_traits q8_0_4x8_q8_0; | ^ ggml-cpu/repack.cpp:2136:68: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ 2135 | src0_ptr + src0_start * nb01, src1_ptr, 2136 | nrows - (nrows % 4), ncols); | ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2134:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2134 | gemm(ne00, (float *) (dst_ptr) + src0_start, nb1 / nb0, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2138:31: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2138 | for (int iter = nrows - (nrows % 4); iter < nrows; iter++) { | ~~~~ ~~~~~~^~~~~~~~~~~~~ ggml-cpu/repack.cpp:2141:114: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ 2140 | ne01, src0_ptr + src0_start * nb01, 2141 | src1_ptr + (src1_col_stride * iter), 1 /* nrows */, ncols); | ^~~~~ ggml-cpu/repack.cpp:2139:62: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2139 | gemv(ne00, (float *) (dst_ptr + (iter * nb1)) + src0_start, | ~~~~ ^~~~ ggml-cpu/repack.cpp:2308:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2308 | const int n_ids = ids->ne[0]; // n_expert_used | ~~~~~ ^~~~~~~~~~ ggml-cpu/repack.cpp:2087:17: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::forward_mul_mat_id' requested here 2087 | forward_mul_mat_id(params, op); | ^ ggml-cpu/repack.cpp:2441:85: note: in instantiation of member function 'ggml::cpu::repack::tensor_traits::compute_forward' requested here 2441 | static const ggml::cpu::repack::tensor_traits q8_0_4x8_q8_0; | ^ ggml-cpu/repack.cpp:2309:27: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'const int' [-Wshorten-64-to-32] 2309 | const int n_as = ne02; // n_expert | ~~~~ ^~~~ ggml-cpu/repack.cpp:2406:51: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ 2404 | (float *)((char *) dst->data + (i1 * nb1 + i2 * nb2)) + src0_cur_start, ne01, 2405 | src0_cur + src0_cur_start * nb01, 2406 | src1_col, 1, src0_cur_end - src0_cur_start); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ggml-cpu/repack.cpp:2403:66: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'int' [-Wshorten-64-to-32] 2403 | gemv(ne00, | ~~~~ ^~~~ In file included from ggml-cpu/repack.cpp:6: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 166 warnings generated. clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c ggml-cpu/quants.c -o ggml-cpu/quants.o In file included from ggml-cpu/quants.c:4: In file included from ggml-cpu/ggml-cpu-impl.h:6: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ggml-cpu/quants.c:5: ggml-cpu/simd-mappings.h:52:22: warning: implicit conversion loses floating-point precision: 'float' to '__fp16' [-Wimplicit-float-conversion] 52 | __fp16 tmp = f; | ~~~ ^ ggml-cpu/quants.c:245:72: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 245 | const uint8_t xh_0 = ((qh & (1u << (j + 0 ))) >> (j + 0 )) << 4; | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ggml-cpu/quants.c:246:59: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] 246 | const uint8_t xh_1 = ((qh & (1u << (j + 16))) >> (j + 12)); | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from ggml-cpu/quants.c:4: In file included from ggml-cpu/ggml-cpu-impl.h:6: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 14 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-cpu/hbm.cpp -o ggml-cpu/hbm.o clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-cpu/arch/x86/cpu-feats.cpp -o ggml-cpu/arch/x86/cpu-feats.o clang -mmacos-version-min=26 -std=gnu23 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -Wstrict-prototypes -c ggml-cpu/arch/x86/quants.c -o ggml-cpu/arch/x86/quants.o In file included from ggml-cpu/arch/x86/quants.c:4: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ggml-cpu/arch/x86/quants.c:6: ggml-cpu/simd-mappings.h:52:22: warning: implicit conversion loses floating-point precision: 'float' to '__fp16' [-Wimplicit-float-conversion] 52 | __fp16 tmp = f; | ~~~ ^ ggml-cpu/arch/x86/quants.c:293:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 293 | const int nb = k / QK8_0; | ~~ ~~^~~~~~~ ggml-cpu/arch/x86/quants.c:390:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 390 | const int nb = k / QK8_1; | ~~ ~~^~~~~~~ In file included from ggml-cpu/arch/x86/quants.c:4: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ 14 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Iggml-cpu -Iggml-cpu/arch/x86 -DGGML_VERSION='"0.9.5"' -DGGML_COMMIT='"ggmlR"' -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_R_PACKAGE -include r_ggml_compat.h -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ggml-cpu/arch/x86/repack.cpp -o ggml-cpu/arch/x86/repack.o In file included from ggml-cpu/arch/x86/repack.cpp:6: ./ggml-impl.h:420:25: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'ggml_fp16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 420 | return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:694:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./ggml-impl.h:694:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 694 | return ggml_can_fuse_subgraph(cgraph, start_idx, ops.size(), ops.begin(), outputs.begin(), outputs.size()); | ~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~ In file included from ggml-cpu/arch/x86/repack.cpp:9: ggml-cpu/simd-mappings.h:52:22: warning: implicit conversion loses floating-point precision: 'float' to '__fp16' [-Wimplicit-float-conversion] 52 | __fp16 tmp = f; | ~~~ ^ ggml-cpu/arch/x86/repack.cpp:178:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 178 | const int nb = k / QK8_0; | ~~ ~~^~~~~~~ ggml-cpu/arch/x86/repack.cpp:290:22: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 290 | const int nb = k / QK_K; | ~~ ~~^~~~~~ In file included from ggml-cpu/arch/x86/repack.cpp:6: ./ggml-impl.h:88:13: warning: unused function 'ggml_op_is_empty' [-Wunused-function] 88 | static bool ggml_op_is_empty(enum ggml_op op) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:141:13: warning: unused function 'ggml_set_op_params' [-Wunused-function] 141 | static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:147:16: warning: unused function 'ggml_get_op_params_i32' [-Wunused-function] 147 | static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:152:14: warning: unused function 'ggml_get_op_params_f32' [-Wunused-function] 152 | static float ggml_get_op_params_f32(const struct ggml_tensor * tensor, uint32_t i) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:157:13: warning: unused function 'ggml_set_op_params_i32' [-Wunused-function] 157 | static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:162:13: warning: unused function 'ggml_set_op_params_f32' [-Wunused-function] 162 | static void ggml_set_op_params_f32(struct ggml_tensor * tensor, uint32_t i, float value) { | ^~~~~~~~~~~~~~~~~~~~~~ ./ggml-impl.h:199:15: warning: unused function 'ggml_bitset_size' [-Wunused-function] 199 | static size_t ggml_bitset_size(size_t n) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:268:13: warning: unused function 'ggml_hash_contains' [-Wunused-function] 268 | static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~ ./ggml-impl.h:273:15: warning: unused function 'ggml_hash_insert' [-Wunused-function] 273 | static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~ ./ggml-impl.h:294:15: warning: unused function 'ggml_hash_find_or_insert' [-Wunused-function] 294 | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) { | ^~~~~~~~~~~~~~~~~~~~~~~~ ggml-cpu/arch/x86/repack.cpp:105:19: warning: unused function 'nearest_int' [-Wunused-function] 105 | static inline int nearest_int(float fval) { | ^~~~~~~~~~~ 17 warnings generated. ar rcs libggml.a r_ggml_io.o ggml.o ggml-alloc.o ggml-quants.o ggml-opt.o gguf.o ggml-backend.o ggml-backend-reg.o ggml-threading.o ggml-cpu/traits.o ggml-cpu/ggml-cpu-backend.o ggml-cpu/ggml-cpu.o ggml-cpu/ops.o ggml-cpu/vec.o ggml-cpu/binary-ops.o ggml-cpu/unary-ops.o ggml-cpu/repack.o ggml-cpu/quants.o ggml-cpu/hbm.o ggml-cpu/arch/x86/cpu-feats.o ggml-cpu/arch/x86/quants.o ggml-cpu/arch/x86/repack.o mkdir -p ../inst/lib cp libggml.a ../inst/lib/ clang++ -mmacos-version-min=26 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Users/ripley/R/R-devel/lib -L/opt/R/arm64/lib -o ggmlR.so r_interface.o r_interface_graph.o r_interface_vulkan.o r_interface_scheduler.o r_interface_opt.o r_interface_backend.o r_interface_quants.o r_ggml_io.o ggml.o ggml-alloc.o ggml-quants.o ggml-opt.o gguf.o ggml-backend.o ggml-backend-reg.o ggml-threading.o ggml-cpu/traits.o ggml-cpu/ggml-cpu-backend.o ggml-cpu/ggml-cpu.o ggml-cpu/ops.o ggml-cpu/vec.o ggml-cpu/binary-ops.o ggml-cpu/unary-ops.o ggml-cpu/repack.o ggml-cpu/quants.o ggml-cpu/hbm.o ggml-cpu/arch/x86/cpu-feats.o ggml-cpu/arch/x86/quants.o ggml-cpu/arch/x86/repack.o -lpthread -lm -L/Users/ripley/R/R-devel/lib -lR duplicate symbol '_ggml_gemm_iq4_nl_8x8_q8_0' in: /Users/ripley/R/packages/tests-devel/ggmlR/src/ggml-cpu/repack.o /Users/ripley/R/packages/tests-devel/ggmlR/src/ggml-cpu/arch/x86/repack.o duplicate symbol '_ggml_gemv_q2_K_8x8_q8_K' in: /Users/ripley/R/packages/tests-devel/ggmlR/src/ggml-cpu/repack.o /Users/ripley/R/packages/tests-devel/ggmlR/src/ggml-cpu/arch/x86/repack.o duplicate symbol '_ggml_gemm_q2_K_8x8_q8_K' in: /Users/ripley/R/packages/tests-devel/ggmlR/src/ggml-cpu/repack.o /Users/ripley/R/packages/tests-devel/ggmlR/src/ggml-cpu/arch/x86/repack.o duplicate symbol '_ggml_quantize_mat_q8_K_4x8' in: /Users/ripley/R/packages/tests-devel/ggmlR/src/ggml-cpu/repack.o /Users/ripley/R/packages/tests-devel/ggmlR/src/ggml-cpu/arch/x86/repack.o duplicate symbol '_ggml_gemv_iq4_nl_8x8_q8_0' in: /Users/ripley/R/packages/tests-devel/ggmlR/src/ggml-cpu/repack.o /Users/ripley/R/packages/tests-devel/ggmlR/src/ggml-cpu/arch/x86/repack.o ld: 5 duplicate symbols clang++: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [ggmlR.so] Error 1 ERROR: compilation failed for package ‘ggmlR’ * removing ‘/Users/ripley/R/packages/tests-devel/ggmlR.Rcheck/ggmlR’