Group gen specific small cpp files together part 1

Change-Id: I554caee03f0abcb069fe38c6092c33b5f9eb04f9
This commit is contained in:
Stefanowski, Adam
2018-05-29 12:15:24 +02:00
committed by sys_ocldev
parent 5a9c9c2691
commit 604b04b5cd
11 changed files with 21 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ set(RUNTIME_GENX_CPP_FILES
macro(macro_for_each_platform) macro(macro_for_each_platform)
list(APPEND CLOC_SRCS_LIB list(APPEND CLOC_SRCS_LIB
${IGDRCL_SOURCE_DIR}/runtime/${GEN_TYPE_LOWER}/hw_info_${PLATFORM_IT_LOWER}.cpp ${IGDRCL_SOURCE_DIR}/runtime/${GEN_TYPE_LOWER}/hw_info_${PLATFORM_IT_LOWER}.inl
${IGDRCL_SOURCE_DIR}/runtime/${GEN_TYPE_LOWER}/enable_${PLATFORM_IT_LOWER}.cpp ${IGDRCL_SOURCE_DIR}/runtime/${GEN_TYPE_LOWER}/enable_${PLATFORM_IT_LOWER}.cpp
) )
endmacro() endmacro()

View File

@@ -69,7 +69,7 @@ macro(macro_for_each_platform)
endif() endif()
endforeach() endforeach()
foreach(PLATFORM_FILE "hw_info_${PLATFORM_IT_LOWER}.cpp") foreach(PLATFORM_FILE "hw_info_${PLATFORM_IT_LOWER}.inl")
list(APPEND RUNTIME_SRCS_${GEN_TYPE}_CPP_BASE ${GENX_PREFIX}/${PLATFORM_FILE}) list(APPEND RUNTIME_SRCS_${GEN_TYPE}_CPP_BASE ${GENX_PREFIX}/${PLATFORM_FILE})
endforeach() endforeach()

View File

@@ -20,7 +20,9 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "hw_cmds.h" #ifdef SUPPORT_BDW
#include "hw_info_bdw.inl"
#endif
namespace OCLRT { namespace OCLRT {
const char *GfxFamilyMapper<IGFX_GEN8_CORE>::name = "Gen8"; const char *GfxFamilyMapper<IGFX_GEN8_CORE>::name = "Gen8";

View File

@@ -20,7 +20,21 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "hw_cmds.h" #ifdef SUPPORT_BXT
#include "hw_info_bxt.inl"
#endif
#ifdef SUPPORT_CFL
#include "hw_info_cfl.inl"
#endif
#ifdef SUPPORT_GLK
#include "hw_info_glk.inl"
#endif
#ifdef SUPPORT_KBL
#include "hw_info_kbl.inl"
#endif
#ifdef SUPPORT_SKL
#include "hw_info_skl.inl"
#endif
namespace OCLRT { namespace OCLRT {
const char *GfxFamilyMapper<IGFX_GEN9_CORE>::name = "Gen9"; const char *GfxFamilyMapper<IGFX_GEN9_CORE>::name = "Gen9";

View File

@@ -41,7 +41,7 @@ if(LIBVA_FOUND)
endif(LIBVA_FOUND) endif(LIBVA_FOUND)
macro(macro_for_each_platform) macro(macro_for_each_platform)
list(APPEND IGDRCL_SRCS_linux_dll_tests ${IGDRCL_SOURCE_DIR}/runtime/${GEN_TYPE_LOWER}/hw_info_${PLATFORM_IT_LOWER}.cpp) list(APPEND IGDRCL_SRCS_linux_dll_tests ${IGDRCL_SOURCE_DIR}/runtime/${GEN_TYPE_LOWER}/hw_info_${PLATFORM_IT_LOWER}.inl)
endmacro() endmacro()
macro(macro_for_each_gen) macro(macro_for_each_gen)
apply_macro_for_each_platform() apply_macro_for_each_platform()