Skip to content

Commit 70fa7cf

Browse files
committed
fix a build issue to use detectHW
1 parent fe5361f commit 70fa7cf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/plugins/intel_gpu/src/runtime/ocl/ocl_device.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef NOMINMAX
77
# define NOMINMAX
88
#endif
9-
#include "gpu/intel/jit/jit_generator.hpp"
9+
#include "gpu/intel/jit/generator.hpp"
1010
#endif // ENABLE_ONEDNN_FOR_GPU
1111

1212
#include "ocl_device.hpp"
@@ -326,7 +326,7 @@ device_info init_device_info(const cl::Device& device, const cl::Context& contex
326326
using namespace dnnl::impl::gpu::intel::jit;
327327
ngen::HW hw = ngen::HW::Unknown;
328328
ngen::Product product = {ngen::ProductFamily::Unknown, 0};
329-
jit_generator<ngen::HW::Unknown>::detectHWInfo(context.get(), device.get(), hw, product);
329+
generator_t<ngen::HW::Unknown>::detectHWInfo(context.get(), device.get(), hw, product);
330330
info.arch = convert_ngen_arch(hw);
331331
// We change the value of this flag to avoid OneDNN usage for the platforms unknown to OneDNN
332332
// This is required to guarantee some level of forward compatibility for the new HW generations

src/plugins/intel_gpu/thirdparty/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ if(ENABLE_ONEDNN_FOR_GPU)
155155
)
156156
endif()
157157

158-
set(LIB_INCLUDE_DIRS "${ONEDNN_INSTALL_DIR}/include" "${CMAKE_CURRENT_SOURCE_DIR}/onednn_gpu/src")
158+
set(LIB_INCLUDE_DIRS "${ONEDNN_INSTALL_DIR}/include" "${CMAKE_CURRENT_SOURCE_DIR}/onednn_gpu/src" "${CMAKE_CURRENT_SOURCE_DIR}/onednn_gpu/third_party")
159159
set(LIB_DEFINITIONS ENABLE_ONEDNN_FOR_GPU
160160
DNNL_DLL
161161
DNNL_DLL_EXPORTS

0 commit comments

Comments
 (0)