Skip to content

Commit bdd1a2b

Browse files
Move gmm callbacks to shared
Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent d622fd7 commit bdd1a2b

File tree

10 files changed

+8
-24
lines changed

10 files changed

+8
-24
lines changed

opencl/source/enable_gens.cmake

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,6 @@
44
# SPDX-License-Identifier: MIT
55
#
66

7-
set(RUNTIME_SRCS_GENX_CPP_WINDOWS
8-
windows/gmm_callbacks
9-
)
10-
11-
set(RUNTIME_SRCS_GENX_CPP_LINUX
12-
)
13-
14-
if(NOT DISABLE_WDDM_LINUX)
15-
list(APPEND RUNTIME_SRCS_GENX_CPP_LINUX
16-
${RUNTIME_SRCS_GENX_CPP_WINDOWS}
17-
)
18-
endif()
19-
207
set(RUNTIME_SRCS_GENX_CPP_BASE
218
aub_mem_dump
229
buffer
@@ -59,12 +46,10 @@ macro(macro_for_each_gen)
5946
endif()
6047
endif()
6148

62-
foreach(OS_IT "BASE" "WINDOWS" "LINUX")
63-
foreach(SRC_IT ${RUNTIME_SRCS_GENX_CPP_${OS_IT}})
64-
if(EXISTS ${GENX_PREFIX}/${SRC_IT}_${GEN_TYPE_LOWER}.cpp)
65-
list(APPEND RUNTIME_SRCS_${GEN_TYPE}_CPP_${OS_IT} ${GENX_PREFIX}/${SRC_IT}_${GEN_TYPE_LOWER}.cpp)
66-
endif()
67-
endforeach()
49+
foreach(SRC_IT ${RUNTIME_SRCS_GENX_CPP_BASE})
50+
if(EXISTS ${GENX_PREFIX}/${SRC_IT}_${GEN_TYPE_LOWER}.cpp)
51+
list(APPEND RUNTIME_SRCS_${GEN_TYPE}_CPP_BASE ${GENX_PREFIX}/${SRC_IT}_${GEN_TYPE_LOWER}.cpp)
52+
endif()
6853
endforeach()
6954

7055
foreach(BRANCH ${BRANCH_DIR_LIST})

opencl/source/helpers/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ if(SUPPORT_XEHP_AND_LATER)
6262
endif()
6363

6464
set(RUNTIME_SRCS_HELPERS_WINDOWS
65-
${CMAKE_CURRENT_SOURCE_DIR}/windows/gmm_callbacks_tgllp_and_later.inl
6665
${CMAKE_CURRENT_SOURCE_DIR}/windows/kmd_notify_properties_windows.cpp
6766
${CMAKE_CURRENT_SOURCE_DIR}/windows/gl_helper.h
6867
)

shared/source/enable_gens.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ set(CORE_RUNTIME_SRCS_GENX_CPP_BASE
2929
set(CORE_RUNTIME_SRCS_GENX_CPP_WINDOWS
3030
windows/command_stream_receiver
3131
windows/direct_submission
32+
windows/gmm_callbacks
3233
)
3334

3435
set(CORE_RUNTIME_SRCS_GENX_CPP_LINUX
File renamed without changes.

opencl/source/gen12lp/windows/gmm_callbacks_gen12lp.cpp renamed to shared/source/gen12lp/windows/gmm_callbacks_gen12lp.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
*/
77

88
#include "shared/source/gen12lp/hw_cmds.h"
9-
10-
#include "opencl/source/helpers/windows/gmm_callbacks_tgllp_and_later.inl"
9+
#include "shared/source/helpers/windows/gmm_callbacks_tgllp_and_later.inl"
1110

1211
namespace NEO {
1312
template struct DeviceCallbacks<TGLLPFamily>;
File renamed without changes.
File renamed without changes.

shared/source/helpers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ set(NEO_CORE_HELPERS_GMM_CALLBACKS_WINDOWS
145145
${CMAKE_CURRENT_SOURCE_DIR}/windows/gmm_callbacks.cpp
146146
${CMAKE_CURRENT_SOURCE_DIR}/windows/gmm_callbacks.h
147147
${CMAKE_CURRENT_SOURCE_DIR}/windows/gmm_callbacks.inl
148+
${CMAKE_CURRENT_SOURCE_DIR}/windows/gmm_callbacks_tgllp_and_later.inl
148149
)
149150

150151
set_property(GLOBAL PROPERTY NEO_CORE_HELPERS_GMM_CALLBACKS_WINDOWS ${NEO_CORE_HELPERS_GMM_CALLBACKS_WINDOWS})

opencl/source/helpers/windows/gmm_callbacks_tgllp_and_later.inl renamed to shared/source/helpers/windows/gmm_callbacks_tgllp_and_later.inl

File renamed without changes.

opencl/source/xe_hp_core/windows/gmm_callbacks_xe_hp_core.cpp renamed to shared/source/xe_hp_core/windows/gmm_callbacks_xe_hp_core.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
*
66
*/
77

8+
#include "shared/source/helpers/windows/gmm_callbacks_tgllp_and_later.inl"
89
#include "shared/source/xe_hp_core/hw_cmds.h"
910

10-
#include "opencl/source/helpers/windows/gmm_callbacks_tgllp_and_later.inl"
11-
1211
namespace NEO {
1312
template struct DeviceCallbacks<XeHpFamily>;
1413
template struct TTCallbacks<XeHpFamily>;

0 commit comments

Comments
 (0)