File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
sycl/plugins/esimd_emulator Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -64,17 +64,15 @@ else ()
64
64
message (FATAL_ERROR "Online-building of CM_EMU library is not supported under Windows environment" )
65
65
else ()
66
66
# Arguments for online patching to suppress log message from CM_EMU
67
- # 1. Replacing CM_EMU's log print-out macro controlled by 'GFX_EMU_WITH_FLAGS_'
68
- # with blank space from $CM_EMU_SRC/common/emu_log.h
67
+ # Replacing CM_EMU's log print-out macro controlled by 'GFX_EMU_WITH_FLAGS_'
68
+ # with blank space from $CM_EMU_SRC/common/emu_log.h
69
69
set (replacing_pattern s/{\ ?GFX_EMU_WITH_FLAGS_.*//g )
70
- # 2. Range of lines to be removed printing out unnecessary log messages
71
- # from $CM_EMU_SRC/libcmrt/cm_device_emumode.cpp
72
- set (removed_range 130,132d )
73
70
ExternalProject_Add (cm-emu
74
71
GIT_REPOSITORY https://github.com/intel/cm-cpu-emulation.git
72
+ GIT_TAG c19234cea13bdfc32b5ed9
75
73
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} /cm-emu_build
76
74
INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR} /cm-emu_install
77
- PATCH_COMMAND perl -pi.back -e ${replacing_pattern} ${CMAKE_CURRENT_BINARY_DIR} /cm-emu-prefix/src/cm-emu/common/emu_log.h && sed --in-place ${removed_range} ${CMAKE_CURRENT_BINARY_DIR} /cm-emu-prefix/src/cm-emu/libcmrt/cm_device_emumode.cpp
75
+ PATCH_COMMAND perl -pi.back -e ${replacing_pattern} ${CMAKE_CURRENT_BINARY_DIR} /cm-emu-prefix/src/cm-emu/common/emu_log.h
78
76
CMAKE_ARGS -DLIBVA_INSTALL_PATH=/usr
79
77
-D__SYCL_EXPLICIT_SIMD_PLUGIN__=true
80
78
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
Original file line number Diff line number Diff line change 29
29
#include < CL/sycl/range.hpp>
30
30
31
31
// TODO : Rename esimdcpu to esimdemu for next CM_EMU release
32
- #include < esimdcpu_support .h>
32
+ #include < esimdemu_support .h>
33
33
34
34
#include < cstdarg>
35
35
#include < cstdio>
@@ -249,9 +249,7 @@ template <int DIMS> class libCMBatch {
249
249
GroupDim[I] = (uint32_t )(GlobalSize[I] / LocalSize[I]);
250
250
}
251
251
252
- // TODO : Replace ESimdCPUKernel with EsimdemuKernel for next
253
- // CM_EMU release
254
- ESimdCPUKernel Esimdemu ((fptrVoid)InvokeLambda<DIMS>, GroupDim, SpaceDim);
252
+ EsimdemuKernel Esimdemu ((fptrVoid)InvokeLambda<DIMS>, GroupDim, SpaceDim);
255
253
256
254
Esimdemu.launchMT (sizeof (struct LambdaWrapper <DIMS>), WrappedLambda.get ());
257
255
}
You can’t perform that action at this time.
0 commit comments