Reorder member variable to avoid warning on initialization

Signed-off-by: nscipione <nicolo.scipione@codeplay.com>
This commit is contained in:
nscipione 2025-01-15 14:47:40 +01:00
parent ee11dea6d6
commit 6b77639258

View file

@ -1175,8 +1175,8 @@ struct ggml_sycl_pool_leg : public ggml_sycl_pool {
struct ggml_sycl_pool_host : public ggml_sycl_pool {
int device;
queue_ptr qptr;
int device;
inline static int counter{0};
struct ggml_sycl_buffer {
@ -1189,10 +1189,7 @@ struct ggml_sycl_pool_host : public ggml_sycl_pool {
std::vector<ggml_sycl_buffer> buffer_pool = std::vector<ggml_sycl_buffer>(MAX_POOL_SIZE);
size_t pool_size = 0;
explicit ggml_sycl_pool_host(queue_ptr qptr_, int device_) :
qptr(qptr_),
device(device_) {
}
explicit ggml_sycl_pool_host(queue_ptr qptr_, int device_) : qptr(qptr_), device(device_) {}
~ggml_sycl_pool_host() {
for (int i = 0; i < MAX_POOL_SIZE; ++i) {