Skip to content

Commit ec2bfbb

Browse files
authored
[SYCL] Squash warning on Windows (#18078)
Fix post-commit checks for #17929. Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
1 parent 599a9e3 commit ec2bfbb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sycl/source/detail/jit_compiler.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ jit_compiler::jit_compiler()
107107
Available = checkJITLibrary();
108108
}
109109

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+
110114
static ::jit_compiler::BinaryFormat
111115
translateBinaryImageFormat(ur::DeviceBinaryType Type) {
112116
switch (Type) {
@@ -120,7 +124,7 @@ translateBinaryImageFormat(ur::DeviceBinaryType Type) {
120124
}
121125
}
122126

123-
::jit_compiler::BinaryFormat getTargetFormat(const QueueImplPtr &Queue) {
127+
static ::jit_compiler::BinaryFormat getTargetFormat(const QueueImplPtr &Queue) {
124128
auto Backend = Queue->getDeviceImplPtr()->getBackend();
125129
switch (Backend) {
126130
case backend::ext_oneapi_level_zero:
@@ -136,6 +140,7 @@ ::jit_compiler::BinaryFormat getTargetFormat(const QueueImplPtr &Queue) {
136140
"Backend unsupported by kernel fusion");
137141
}
138142
}
143+
#endif // _WIN32
139144

140145
ur_kernel_handle_t jit_compiler::materializeSpecConstants(
141146
const QueueImplPtr &Queue, const RTDeviceBinaryImage *BinImage,

0 commit comments

Comments
 (0)