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:
parent
3446807452
commit
b28b423801
|
|
@ -6,6 +6,7 @@
|
||||||
#include "ggml-zdnn.h"
|
#include "ggml-zdnn.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <deque>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vecintrin.h>
|
#include <vecintrin.h>
|
||||||
|
|
||||||
|
|
@ -91,7 +92,7 @@ struct ggml_backend_zdnn_buffer_context {
|
||||||
bool owned;
|
bool owned;
|
||||||
|
|
||||||
int n_buffers;
|
int n_buffers;
|
||||||
std::vector<ggml_backend_zdnn_buffer> buffers;
|
std::deque<ggml_backend_zdnn_buffer> buffers;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // GGML_ZDNN_IMPL
|
#endif // GGML_ZDNN_IMPL
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
#include "ggml-backend-impl.h"
|
#include "ggml-backend-impl.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <deque>
|
||||||
#include <csignal>
|
#include <csignal>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue