Skip to content

Commit 6b77639

Browse files
committed
Reorder member variable to avoid warning on initialization
Signed-off-by: nscipione <[email protected]>
1 parent ee11dea commit 6b77639

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ggml/src/ggml-sycl/ggml-sycl.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,8 +1175,8 @@ struct ggml_sycl_pool_leg : public ggml_sycl_pool {
11751175

11761176
struct ggml_sycl_pool_host : public ggml_sycl_pool {
11771177

1178-
int device;
11791178
queue_ptr qptr;
1179+
int device;
11801180

11811181
inline static int counter{0};
11821182
struct ggml_sycl_buffer {
@@ -1189,10 +1189,7 @@ struct ggml_sycl_pool_host : public ggml_sycl_pool {
11891189
std::vector<ggml_sycl_buffer> buffer_pool = std::vector<ggml_sycl_buffer>(MAX_POOL_SIZE);
11901190
size_t pool_size = 0;
11911191

1192-
explicit ggml_sycl_pool_host(queue_ptr qptr_, int device_) :
1193-
qptr(qptr_),
1194-
device(device_) {
1195-
}
1192+
explicit ggml_sycl_pool_host(queue_ptr qptr_, int device_) : qptr(qptr_), device(device_) {}
11961193

11971194
~ggml_sycl_pool_host() {
11981195
for (int i = 0; i < MAX_POOL_SIZE; ++i) {

0 commit comments

Comments
 (0)