Skip to content
New issue

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

Fix 32-bit compiler warning #1575

Merged
merged 2 commits into from
Dec 3, 2023
Merged

Fix 32-bit compiler warning #1575

merged 2 commits into from
Dec 3, 2023

Conversation

Digipom
Copy link
Contributor

@Digipom Digipom commented Nov 29, 2023

Fixes:
/C++: /Volumes/DEV/projects/easy-transcription/android/src/whisper/src/main/cpp/whisper/ggml-backend.c:875:58: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
C/C++: fprintf(stderr, "ggml_backend_sched size: %lu KB\n", sizeof(struct ggml_backend_sched)/1024);
C/C++: ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: %u

Warning about %lu on 32-bit targets. Updated to %zu.
@bobqianic
Copy link
Collaborator

Reference: https://stackoverflow.com/a/73167304

@bobqianic bobqianic merged commit 3c28d1a into ggerganov:master Dec 3, 2023
37 checks passed
landtanin pushed a commit to landtanin/whisper.cpp that referenced this pull request Dec 16, 2023
Warning about %lu on 32-bit targets. Updated to %zu.
bygreencn added a commit to bygreencn/whisper.cpp that referenced this pull request Dec 20, 2023
* origin/master:
  bench.py : add different large models (ggerganov#1655)
  wchess : update README.md
  release : v1.5.2
  wchess : update readme
  wchess : whisper assisted chess (ggerganov#1595)
  sync : ggml (Metal fixes, new ops, tests) (ggerganov#1633)
  cmake : target windows 8 or above for prefetchVirtualMemory in llama-talk (ggerganov#1617)
  cmake : Fix bug in httplib.h for mingw (ggerganov#1615)
  metal : fix `ggml_metal_log` vargs (ggerganov#1606)
  whisper.objc : disable timestamps for real-time transcription
  whisper : more debug messages + fix fallback logic
  metal : fix soft_max kernel src1 argument (ggerganov#1602)
  sync : ggml (new ops, new backend, etc) (ggerganov#1602)
  server : pass max-len argument to the server (ggerganov#1574)
  ios : Remove `#if arch(arm)` check for using Metal (ggerganov#1561)
  ggml : Fix 32-bit compiler warning (ggerganov#1575)
  ggml : re-enable blas for src0 != F32 (ggerganov#1583)
iThalay pushed a commit to iThalay/whisper.cpp that referenced this pull request Sep 23, 2024
Warning about %lu on 32-bit targets. Updated to %zu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants