Skip to content

Commit 539b0c6

Browse files
committed
ggml-sycl: sort includes
1 parent 6eb30d9 commit 539b0c6

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

ggml/include/ggml-sycl.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
#include "ggml.h"
1010
#include "ggml-backend.h"
1111

12-
#define GGML_SYCL_NAME "SYCL"
13-
#define GGML_SYCL_MAX_DEVICES 48
14-
1512
#ifdef __cplusplus
1613
extern "C" {
1714
#endif

ggml/src/ggml-sycl/common.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <iostream>
1818

1919
#include "dpct/helper.hpp"
20-
#include "ggml-sycl.h"
2120
#include "presets.hpp"
2221
#if GGML_SYCL_DNNL
2322
#include "dnnl.hpp"
@@ -31,6 +30,9 @@
3130
#pragma clang diagnostic ignored "-Wnested-anon-types"
3231
#include "ggml-common.h"
3332
#pragma clang diagnostic pop
33+
#include <sycl/half_type.hpp>
34+
#include <sycl/sycl.hpp>
35+
3436
#include "ggml-backend-impl.h"
3537
#include "ggml-impl.h"
3638
#include "ggml.h"
@@ -88,6 +90,9 @@ extern int g_ggml_sycl_debug;
8890
#define GGML_SYCL_MMV_Y 1
8991
#endif
9092

93+
#define GGML_SYCL_NAME "SYCL"
94+
#define GGML_SYCL_MAX_DEVICES 48
95+
9196
typedef sycl::queue *queue_ptr;
9297

9398
enum ggml_sycl_backend_gpu_mode {

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,9 @@
2929
#include <stdlib.h>
3030
#include <regex>
3131

32-
#include <sycl/sycl.hpp>
33-
#include <sycl/half_type.hpp>
34-
3532
#include "ggml-sycl.h"
36-
#include "ggml-impl.h"
37-
#include "ggml-backend-impl.h"
38-
33+
#include "common.hpp"
3934
#include "ggml-sycl/backend.hpp"
40-
#include "ggml-sycl/presets.hpp"
4135
#include "ggml-sycl/gemm.hpp"
4236

4337
static bool g_sycl_loaded = false;

0 commit comments

Comments
 (0)