mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-08 10:07:01 +00:00
ggml-zdnn: switch to using deque to fix pointer deref problem
Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "ggml-zdnn.h"
|
||||
|
||||
#include <vector>
|
||||
#include <deque>
|
||||
#include <memory>
|
||||
#include <vecintrin.h>
|
||||
|
||||
@@ -91,7 +92,7 @@ struct ggml_backend_zdnn_buffer_context {
|
||||
bool owned;
|
||||
|
||||
int n_buffers;
|
||||
std::vector<ggml_backend_zdnn_buffer> buffers;
|
||||
std::deque<ggml_backend_zdnn_buffer> buffers;
|
||||
};
|
||||
|
||||
#endif // GGML_ZDNN_IMPL
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "ggml-backend-impl.h"
|
||||
|
||||
#include <vector>
|
||||
#include <deque>
|
||||
#include <csignal>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user