Skip to content

Commit d999379

Browse files
committed
fix a build issue to use detectHW
1 parent 1b107a0 commit d999379

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"
@@ -324,7 +324,7 @@ device_info init_device_info(const cl::Device& device, const cl::Context& contex
324324
using namespace dnnl::impl::gpu::intel::jit;
325325
ngen::HW hw = ngen::HW::Unknown;
326326
ngen::Product product = {ngen::ProductFamily::Unknown, 0};
327-
jit_generator<ngen::HW::Unknown>::detectHWInfo(context.get(), device.get(), hw, product);
327+
generator_t<ngen::HW::Unknown>::detectHWInfo(context.get(), device.get(), hw, product);
328328
info.arch = convert_ngen_arch(hw);
329329
// We change the value of this flag to avoid OneDNN usage for the platforms unknown to OneDNN
330330
// 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
@@ -156,7 +156,7 @@ if(ENABLE_ONEDNN_FOR_GPU)
156156
)
157157
endif()
158158

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

0 commit comments

Comments
 (0)