llama.cpp/examples
comex 2663d2c678
Windows fixes (#890)
Mostly for msys2 and mingw64 builds, which are different from each other
and different from standard Visual Studio builds.  Isn't Windows fun?

- Define _GNU_SOURCE in more files (it's already used in ggml.c for
  Linux's sake).

- Don't use PrefetchVirtualMemory if not building for Windows 8 or later
  (mingw64 doesn't by default).  But warn the user about this situation
  since it's probably not intended.

- Check for NOMINMAX already being defined, which it is on mingw64.

- Actually use the `increment` variable (bug in my `pizza` PR).

- Suppress unused variable warnings in the fake pthread_create and
  pthread_join implementations for Windows.

- (not Windows-related) Remove mention of `asprintf` from comment;
  `asprintf` is no longer used.

Fixes #871.
2023-04-11 15:19:54 +02:00
..
embedding Rewrite loading code to try to satisfy everyone: 2023-04-10 01:10:46 +02:00
main Windows fixes (#890) 2023-04-11 15:19:54 +02:00
perplexity Rewrite loading code to try to satisfy everyone: 2023-04-10 01:10:46 +02:00
quantize Fix ggml_init_params in quantize 2023-03-30 12:28:25 -07:00
quantize-stats Rewrite loading code to try to satisfy everyone: 2023-04-10 01:10:46 +02:00
alpaca.sh Move chat scripts into "./examples" 2023-03-25 20:37:09 +02:00
chat-13B.bat Create chat-13B.bat (#592) 2023-03-29 20:21:09 +03:00
chat-13B.sh Move chat scripts into "./examples" 2023-03-25 20:37:09 +02:00
chat.sh If n_predict == -1, generate forever 2023-03-25 21:51:41 +02:00
CMakeLists.txt Add quantize-stats command for testing quantization (#728) 2023-04-08 00:09:18 +02:00
common.cpp Rewrite loading code to try to satisfy everyone: 2023-04-10 01:10:46 +02:00
common.h Rewrite loading code to try to satisfy everyone: 2023-04-10 01:10:46 +02:00
gpt4all.sh examples : add gpt4all script (#658) 2023-04-02 10:56:20 +03:00
Miku.sh miku.sh : add executable bit (#780) 2023-04-05 18:59:13 +03:00
reason-act.sh add example of re-act pattern (#583) 2023-03-29 10:10:24 -05:00