File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,10 @@ jit_compiler::jit_compiler()
107
107
Available = checkJITLibrary ();
108
108
}
109
109
110
+ #ifndef _WIN32
111
+ // These helpers are not Windows-specific, but they are only used by
112
+ // `materializeSpecConstants`, which isn't available on Windows.
113
+
110
114
static ::jit_compiler::BinaryFormat
111
115
translateBinaryImageFormat (ur::DeviceBinaryType Type) {
112
116
switch (Type) {
@@ -120,7 +124,7 @@ translateBinaryImageFormat(ur::DeviceBinaryType Type) {
120
124
}
121
125
}
122
126
123
- ::jit_compiler::BinaryFormat getTargetFormat (const QueueImplPtr &Queue) {
127
+ static ::jit_compiler::BinaryFormat getTargetFormat (const QueueImplPtr &Queue) {
124
128
auto Backend = Queue->getDeviceImplPtr ()->getBackend ();
125
129
switch (Backend) {
126
130
case backend::ext_oneapi_level_zero:
@@ -136,6 +140,7 @@ ::jit_compiler::BinaryFormat getTargetFormat(const QueueImplPtr &Queue) {
136
140
" Backend unsupported by kernel fusion" );
137
141
}
138
142
}
143
+ #endif // _WIN32
139
144
140
145
ur_kernel_handle_t jit_compiler::materializeSpecConstants (
141
146
const QueueImplPtr &Queue, const RTDeviceBinaryImage *BinImage,
You can’t perform that action at this time.
0 commit comments