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

Posixify madvise and pagesize. #3037

Merged
merged 3 commits into from
Sep 7, 2023

Commits on Sep 5, 2023

  1. llama : use posix_madvise() instead of madvise() derived from BSD

    sed -i 's,\<madvise\>,posix_&,g;s,\<MADV_,POSIX_&,g' llama.cpp
    przemoc committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    77f9bd7 View commit details
    Browse the repository at this point in the history
  2. ggml : use sysconf(_SC_PAGESIZE) instead of getpagesize() derived fro…

    …m BSD
    
    sed -i 's,getpagesize(),sysconf(_SC_PAGESIZE),g' ggml.c
    przemoc committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    2c716c0 View commit details
    Browse the repository at this point in the history
  3. metal : use sysconf(_SC_PAGESIZE) instead of getpagesize() derived fr…

    …om BSD
    
    sed -i 's,getpagesize(),sysconf(_SC_PAGESIZE),g' ggml-metal.m
    przemoc committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    992b4ee View commit details
    Browse the repository at this point in the history