Skip to content

Commit 071bb13

Browse files
Move state compute mode helpers to shared
Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent b14da0a commit 071bb13

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

opencl/source/enable_gens.cmake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ macro(macro_for_each_gen)
1919
set(GENX_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR}${GEN_TYPE_LOWER})
2020
# Add default GEN files
2121

22-
foreach(SRC_IT "state_compute_mode_helper_${GEN_TYPE_LOWER}.cpp")
23-
if(EXISTS ${GENX_PREFIX}/${SRC_IT})
24-
list(APPEND RUNTIME_SRCS_${GEN_TYPE}_CPP_BASE ${GENX_PREFIX}/${SRC_IT})
25-
endif()
26-
endforeach()
27-
2822
if(EXISTS "${GENX_PREFIX}/additional_files_${GEN_TYPE_LOWER}.cmake")
2923
include("${GENX_PREFIX}/additional_files_${GEN_TYPE_LOWER}.cmake")
3024
endif()

shared/source/enable_gens.cmake

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,6 @@ macro(macro_for_each_gen)
101101
list(APPEND CORE_SRCS_${GEN_TYPE}_H_BASE ${SRC_FILE})
102102
endif()
103103
endforeach()
104-
foreach(BRANCH_DIR ${BRANCH_DIR_LIST})
105-
set(SRC_FILE ${NEO_SHARED_DIRECTORY}${BRANCH_DIR}${GEN_TYPE_LOWER}/image_core_${GEN_TYPE_LOWER}.cpp)
106-
if(EXISTS ${SRC_FILE})
107-
list(APPEND CORE_SRCS_${GEN_TYPE}_CPP_BASE ${SRC_FILE})
108-
endif()
109-
endforeach()
110104

111105
foreach(OS_IT "BASE" "WDDM" "LINUX")
112106
foreach(SRC_IT ${CORE_RUNTIME_SRCS_GENX_CPP_${OS_IT}})
@@ -116,6 +110,10 @@ macro(macro_for_each_gen)
116110
endif()
117111
endforeach()
118112
endforeach()
113+
set(SRC_FILE ${NEO_SHARED_DIRECTORY}${BRANCH}${GEN_TYPE_LOWER}/image_core_${GEN_TYPE_LOWER}.cpp)
114+
if(EXISTS ${SRC_FILE})
115+
list(APPEND CORE_SRCS_${GEN_TYPE}_CPP_BASE ${SRC_FILE})
116+
endif()
119117

120118
set(SRC_FILE ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR}${GEN_TYPE_LOWER}/enable_family_full_core_${GEN_TYPE_LOWER}.cpp)
121119
if(EXISTS ${SRC_FILE})
@@ -147,6 +145,10 @@ macro(macro_for_each_gen)
147145
endif()
148146

149147
endforeach()
148+
set(SRC_FILE "${CORE_GENX_PREFIX}/state_compute_mode_helper_${GEN_TYPE_LOWER}.cpp")
149+
if(EXISTS ${SRC_FILE})
150+
list(APPEND CORE_SRCS_${GEN_TYPE}_CPP_BASE ${SRC_FILE})
151+
endif()
150152
if(EXISTS ${GENERATED_GENX_PREFIX}/hw_cmds_generated_${GEN_TYPE_LOWER}.inl)
151153
list(APPEND CORE_SRCS_${GEN_TYPE}_H_BASE "${GENERATED_GENX_PREFIX}/hw_cmds_generated_${GEN_TYPE_LOWER}.inl")
152154
endif()

0 commit comments

Comments
 (0)