Closed
Description
As of the refactor f5a77a6 the program does not compile.
g++ -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC -pthread -c llama.cpp -o llama.o
llama.cpp: In function ‘bool llama_eval_internal(llama_context&, const llama_token*, int, int, int)’:
llama.cpp:657:5: error: ‘memcpy’ was not declared in this scope
657 | memcpy(embd->data, tokens, N*ggml_element_size(embd));
| ^~~~~~
llama.cpp:12:1: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
11 | #include <cassert>
+++ |+#include <cstring>
12 |
make: *** [Makefile:224: llama.o] Error 1
Adding these to llama.cpp allows it to compile.
#include <cassert>
#include <cstring>
Metadata
Metadata
Assignees
Labels
No labels