We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've seen several compile warnings for weeks, when build with Makefile on macOS.
$ git log -1 commit 9d23589d638dc74577d5ff880e6d4248b795f12e (HEAD -> master, tag: master-9d23589, origin/master, origin/HEAD) Author: Erik Scholz <Green-Sky@users.noreply.github.com> Date: Tue Jun 27 19:06:33 2023 +0200 fix pthreads setaffinity usage on android (#2020) $ make I llama.cpp build info: I UNAME_S: Darwin I UNAME_P: i386 I UNAME_M: x86_64 I CFLAGS: -I. -O3 -std=c11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -pthread -march=native -mtune=native -DGGML_USE_K_QUANTS -DGGML_USE_ACCELERATE I CXXFLAGS: -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native -mtune=native -DGGML_USE_K_QUANTS I LDFLAGS: -framework Accelerate I CC: Apple clang version 14.0.3 (clang-1403.0.22.14.1) I CXX: Apple clang version 14.0.3 (clang-1403.0.22.14.1) cc -I. -O3 -std=c11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -pthread -march=native -mtune=native -DGGML_USE_K_QUANTS -DGGML_USE_ACCELERATE -c ggml.c -o ggml.o ggml.c:2318:5: warning: implicit conversion increases floating-point precision: 'float' to 'ggml_float' (aka 'double') [-Wdouble-promotion] GGML_F16_VEC_REDUCE(sumf, sum); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml.c:1950:37: note: expanded from macro 'GGML_F16_VEC_REDUCE' #define GGML_F16_VEC_REDUCE GGML_F32Cx8_REDUCE ^ ggml.c:1940:33: note: expanded from macro 'GGML_F32Cx8_REDUCE' #define GGML_F32Cx8_REDUCE GGML_F32x8_REDUCE ^ ggml.c:1886:11: note: expanded from macro 'GGML_F32x8_REDUCE' res = _mm_cvtss_f32(_mm_hadd_ps(t1, t1)); \ ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml.c:3360:9: warning: implicit conversion increases floating-point precision: 'float' to 'ggml_float' (aka 'double') [-Wdouble-promotion] GGML_F16_VEC_REDUCE(sumf[k], sum[k]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml.c:1950:37: note: expanded from macro 'GGML_F16_VEC_REDUCE' #define GGML_F16_VEC_REDUCE GGML_F32Cx8_REDUCE ^ ggml.c:1940:33: note: expanded from macro 'GGML_F32Cx8_REDUCE' #define GGML_F32Cx8_REDUCE GGML_F32x8_REDUCE ^ ggml.c:1886:11: note: expanded from macro 'GGML_F32x8_REDUCE' res = _mm_cvtss_f32(_mm_hadd_ps(t1, t1)); \ ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggml.c:578:23: warning: unused function 'mul_sum_i8_pairs' [-Wunused-function] static inline __m128i mul_sum_i8_pairs(const __m128i x, const __m128i y) { ^ ggml.c:609:19: warning: unused function 'hsum_i32_4' [-Wunused-function] static inline int hsum_i32_4(const __m128i a) { ^ ggml.c:674:23: warning: unused function 'packNibbles' [-Wunused-function] static inline __m128i packNibbles( __m256i bytes ) ^ 5 warnings generated.
System into printed by main:
main
system_info: n_threads = 4 / 12 | AVX = 1 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | VSX = 0 |
The text was updated successfully, but these errors were encountered:
try to fix compile warnings on macOS, address issue ggml-org#2036
a952716
This issue was closed because it has been inactive for 14 days since being marked as stale.
Sorry, something went wrong.
No branches or pull requests
I've seen several compile warnings for weeks, when build with Makefile on macOS.
Prerequisites
Current Behavior
Environment and Context
System into printed by
main
:The text was updated successfully, but these errors were encountered: