File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
source/adapters/level_zero Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1818#include < unordered_map>
1919#include < vector>
2020
21- #include < level_zero/include/ze_intel_gpu.h>
2221#include < ur/ur.hpp>
2322#include < ur_ddi.h>
23+ // Make sure that we don't reorder these includes during formatting. Across the
24+ // codebase we include <ze_api.h> (not <level_zero/ze_api.h>) which guarantees
25+ // that we use up-to-date fetched Level Zero headers and not some headers from
26+ // the system (which might be out-of-date). ze_intel_gpu.h includes
27+ // <level_zero/ze_api.h>, so if we include it first then it is possible that we
28+ // mistakenly use the headers insalled in the system.
29+ // clang-format off
2430#include < ze_api.h>
25- #include < zes_api .h>
26-
31+ #include < level_zero/include/ze_intel_gpu .h>
32+ // clang-format on
2733#include " adapters/level_zero/platform.hpp"
2834#include " common.hpp"
35+ #include < zes_api.h>
2936
3037enum EventsScope {
3138 // All events are created host-visible.
You can’t perform that action at this time.
0 commit comments