mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Group gen specific small cpp files together part 1
Change-Id: I554caee03f0abcb069fe38c6092c33b5f9eb04f9
This commit is contained in:

committed by
sys_ocldev

parent
5a9c9c2691
commit
604b04b5cd
@ -56,7 +56,7 @@ set(RUNTIME_GENX_CPP_FILES
|
||||
|
||||
macro(macro_for_each_platform)
|
||||
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
|
||||
)
|
||||
endmacro()
|
||||
|
@ -69,7 +69,7 @@ macro(macro_for_each_platform)
|
||||
endif()
|
||||
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})
|
||||
endforeach()
|
||||
|
||||
|
@ -20,7 +20,9 @@
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "hw_cmds.h"
|
||||
#ifdef SUPPORT_BDW
|
||||
#include "hw_info_bdw.inl"
|
||||
#endif
|
||||
|
||||
namespace OCLRT {
|
||||
const char *GfxFamilyMapper<IGFX_GEN8_CORE>::name = "Gen8";
|
||||
|
@ -20,7 +20,21 @@
|
||||
* 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 {
|
||||
const char *GfxFamilyMapper<IGFX_GEN9_CORE>::name = "Gen9";
|
||||
|
@ -41,7 +41,7 @@ if(LIBVA_FOUND)
|
||||
endif(LIBVA_FOUND)
|
||||
|
||||
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()
|
||||
macro(macro_for_each_gen)
|
||||
apply_macro_for_each_platform()
|
||||
|
Reference in New Issue
Block a user