Skip to content

Commit abbc0a5

Browse files
Compile kernels per platform type (core/lp)
compiled kernels are in (binary dir)/(family name with type) folder Change-Id: Ied1827ab7f4ecc5c1de4c3535b1c0ba3b5cd86ee
1 parent 34ff585 commit abbc0a5

26 files changed

+297
-220
lines changed

common_macros.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,9 @@ macro(apply_macro_for_each_test_config type)
9393
macro_for_each_test_config()
9494
endforeach()
9595
endmacro()
96+
97+
macro(get_family_name_with_type gen_type platform_type)
98+
string(REPLACE "GEN" "Gen" gen_type_capitalized ${gen_type})
99+
string(TOLOWER ${platform_type} platform_type_lower)
100+
set(family_name_with_type ${gen_type_capitalized}${platform_type_lower})
101+
endmacro()

offline_compiler/offline_compiler.cpp

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ int OfflineCompiler::getHardwareInfo(const char *pDeviceName) {
248248
if (stringsAreEqual(pDeviceName, hardwarePrefix[productId])) {
249249
if (hardwareInfoTable[productId]) {
250250
hwInfo = hardwareInfoTable[productId];
251+
familyNameWithType.clear();
252+
familyNameWithType.append(familyName[hwInfo->pPlatform->eRenderCoreFamily]);
253+
familyNameWithType.append(getPlatformType(*hwInfo));
251254
retVal = CL_SUCCESS;
252255
break;
253256
}
@@ -530,15 +533,15 @@ void OfflineCompiler::parseDebugSettings() {
530533
////////////////////////////////////////////////////////////////////////////////
531534
// ParseBinAsCharArray
532535
////////////////////////////////////////////////////////////////////////////////
533-
std::string OfflineCompiler::parseBinAsCharArray(uint8_t *binary, size_t size, std::string &deviceName, std::string &fileName) {
536+
std::string OfflineCompiler::parseBinAsCharArray(uint8_t *binary, size_t size, std::string &fileName) {
534537
std::string builtinName = convertToPascalCase(fileName);
535538
std::ostringstream out;
536539

537540
// Convert binary to cpp
538541
out << "#include <cstddef>\n";
539542
out << "#include <cstdint>\n\n";
540-
out << "size_t " << builtinName << "BinarySize_" << deviceName << " = " << size << ";\n";
541-
out << "uint32_t " << builtinName << "Binary_" << deviceName << "[" << (size + 3) / 4 << "] = {"
543+
out << "size_t " << builtinName << "BinarySize_" << familyNameWithType << " = " << size << ";\n";
544+
out << "uint32_t " << builtinName << "Binary_" << familyNameWithType << "[" << (size + 3) / 4 << "] = {"
542545
<< std::endl
543546
<< " ";
544547

@@ -572,11 +575,11 @@ std::string OfflineCompiler::parseBinAsCharArray(uint8_t *binary, size_t size, s
572575
out << "static RegisterEmbeddedResource register" << builtinName << "Bin(" << std::endl;
573576
out << " createBuiltinResourceName(" << std::endl;
574577
out << " EBuiltInOps::" << builtinName << "," << std::endl;
575-
out << " BuiltinCode::getExtension(BuiltinCode::ECodeType::Binary), \"" << deviceName << "\", 0)" << std::endl;
578+
out << " BuiltinCode::getExtension(BuiltinCode::ECodeType::Binary), \"" << familyNameWithType << "\", 0)" << std::endl;
576579
out << " .c_str()," << std::endl;
577580
out << " (const char *)" << builtinName << "Binary"
578-
<< "_" << deviceName << "," << std::endl;
579-
out << " " << builtinName << "BinarySize_" << deviceName << ");" << std::endl;
581+
<< "_" << familyNameWithType << "," << std::endl;
582+
out << " " << builtinName << "BinarySize_" << familyNameWithType << ");" << std::endl;
580583
out << "}" << std::endl;
581584

582585
return out.str();
@@ -733,9 +736,9 @@ void OfflineCompiler::writeOutAllFiles() {
733736
std::string fileBase;
734737
std::string fileTrunk = getFileNameTrunk(inputFile);
735738
if (outputFile.empty()) {
736-
fileBase = fileTrunk + "_" + deviceName;
739+
fileBase = fileTrunk + "_" + familyNameWithType;
737740
} else {
738-
fileBase = outputFile + "_" + deviceName;
741+
fileBase = outputFile + "_" + familyNameWithType;
739742
}
740743

741744
if (outputDirectory != "") {
@@ -789,7 +792,7 @@ void OfflineCompiler::writeOutAllFiles() {
789792
if (useCppFile) {
790793
std::string cppOutputFile = (outputDirectory == "") ? "" : outputDirectory + "/";
791794
cppOutputFile.append(fileBase + ".cpp");
792-
std::string cpp = parseBinAsCharArray((uint8_t *)genBinary, genBinarySize, deviceName, fileTrunk);
795+
std::string cpp = parseBinAsCharArray((uint8_t *)genBinary, genBinarySize, fileTrunk);
793796
writeDataToFile(cppOutputFile.c_str(), cpp.c_str(), cpp.size());
794797
}
795798
}

offline_compiler/offline_compiler.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class OfflineCompiler {
5656
return quiet;
5757
}
5858

59-
std::string parseBinAsCharArray(uint8_t *binary, size_t size, std::string &deviceName, std::string &fileName);
59+
std::string parseBinAsCharArray(uint8_t *binary, size_t size, std::string &fileName);
6060
static bool readOptionsFromFile(std::string &optionsOut, const std::string &file);
6161

6262
protected:
@@ -76,6 +76,7 @@ class OfflineCompiler {
7676
const HardwareInfo *hwInfo = nullptr;
7777

7878
std::string deviceName;
79+
std::string familyNameWithType;
7980
std::string inputFile;
8081
std::string outputFile;
8182
std::string outputDirectory;

platforms.cmake

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,14 @@ macro(SET_FLAGS_FOR GEN_TYPE)
158158
endforeach()
159159
endif()
160160
endmacro()
161+
macro(ADD_PLATFORM_FOR_GEN LIST_TYPE GEN_TYPE PLATFORM_NAME PLATFORM_TYPE)
162+
ADD_ITEM_FOR_GEN("PLATFORMS" ${LIST_TYPE} ${GEN_TYPE} ${PLATFORM_NAME})
163+
set(${GEN_TYPE}_HAS_${PLATFORM_TYPE} TRUE)
164+
set(${PLATFORM_NAME}_IS_${PLATFORM_TYPE} TRUE)
165+
if(NOT DEFAULT_${LIST_TYPE}_${GEN_TYPE}_${PLATFORM_TYPE}_PLATFORM)
166+
string(TOLOWER ${PLATFORM_NAME} DEFAULT_${LIST_TYPE}_${GEN_TYPE}_${PLATFORM_TYPE}_PLATFORM)
167+
endif()
168+
endmacro()
161169

162170
SET_FLAGS_FOR("GEN8" "BDW")
163171
SET_FLAGS_FOR("GEN9" "SKL" "KBL" "BXT" "GLK" "CFL")
@@ -174,8 +182,8 @@ INIT_LIST("CONFIGURATIONS" "MT_TESTS")
174182

175183
# Add supported and tested platforms
176184
if(SUPPORT_GEN8)
177-
ADD_ITEM_FOR_GEN("PLATFORMS" "SUPPORTED" "GEN8" "BDW")
178-
ADD_ITEM_FOR_GEN("PLATFORMS" "SUPPORTED_2_0" "GEN8" "BDW")
185+
ADD_PLATFORM_FOR_GEN("SUPPORTED" "GEN8" "BDW" "CORE")
186+
ADD_PLATFORM_FOR_GEN("SUPPORTED_2_0" "GEN8" "BDW" "CORE")
179187
if(TESTS_GEN8)
180188
ADD_ITEM_FOR_GEN("FAMILY_NAME" "TESTED" "GEN8" "BDWFamily")
181189
ADD_ITEM_FOR_GEN("PLATFORMS" "TESTED" "GEN8" "BDW")
@@ -191,8 +199,8 @@ if(SUPPORT_GEN9)
191199
ADD_ITEM_FOR_GEN("FAMILY_NAME" "TESTED" "GEN9" "SKLFamily")
192200
endif()
193201
if(SUPPORT_SKL)
194-
ADD_ITEM_FOR_GEN("PLATFORMS" "SUPPORTED" "GEN9" "SKL")
195-
ADD_ITEM_FOR_GEN("PLATFORMS" "SUPPORTED_2_0" "GEN9" "SKL")
202+
ADD_PLATFORM_FOR_GEN("SUPPORTED" "GEN9" "SKL" "CORE")
203+
ADD_PLATFORM_FOR_GEN("SUPPORTED_2_0" "GEN9" "SKL" "CORE")
196204
if(TESTS_SKL)
197205
ADD_ITEM_FOR_GEN("PLATFORMS" "TESTED" "GEN9" "SKL")
198206
ADD_ITEM_FOR_GEN("PLATFORMS" "TESTED_APPVERIFIER" "GEN9" "SKL")
@@ -203,24 +211,24 @@ if(SUPPORT_GEN9)
203211
endif()
204212

205213
if(SUPPORT_KBL)
206-
ADD_ITEM_FOR_GEN("PLATFORMS" "SUPPORTED" "GEN9" "KBL")
207-
ADD_ITEM_FOR_GEN("PLATFORMS" "SUPPORTED_2_0" "GEN9" "KBL")
214+
ADD_PLATFORM_FOR_GEN("SUPPORTED" "GEN9" "KBL" "CORE")
215+
ADD_PLATFORM_FOR_GEN("SUPPORTED_2_0" "GEN9" "KBL" "CORE")
208216
if(TESTS_KBL)
209217
ADD_ITEM_FOR_GEN("PLATFORMS" "TESTED" "GEN9" "KBL")
210218
ADD_ITEM_FOR_GEN("CONFIGURATIONS" "UNIT_TESTS" "GEN9" "kbl/1/3/6")
211219
endif()
212220
endif()
213221

214222
if(SUPPORT_GLK)
215-
ADD_ITEM_FOR_GEN("PLATFORMS" "SUPPORTED" "GEN9" "GLK")
223+
ADD_PLATFORM_FOR_GEN("SUPPORTED" "GEN9" "GLK" "LP")
216224
if(TESTS_GLK)
217225
ADD_ITEM_FOR_GEN("PLATFORMS" "TESTED" "GEN9" "GLK")
218226
ADD_ITEM_FOR_GEN("CONFIGURATIONS" "UNIT_TESTS" "GEN9" "glk/1/3/6")
219227
endif()
220228
endif()
221229

222230
if(SUPPORT_CFL)
223-
ADD_ITEM_FOR_GEN("PLATFORMS" "SUPPORTED" "GEN9" "CFL")
231+
ADD_PLATFORM_FOR_GEN("SUPPORTED" "GEN9" "CFL" "CORE")
224232
ADD_ITEM_FOR_GEN("PLATFORMS" "SUPPORTED_2_0" "GEN9" "CFL")
225233
if(TESTS_CFL)
226234
ADD_ITEM_FOR_GEN("PLATFORMS" "TESTED" "GEN9" "CFL")
@@ -229,7 +237,7 @@ if(SUPPORT_GEN9)
229237
endif()
230238

231239
if(SUPPORT_BXT)
232-
ADD_ITEM_FOR_GEN("PLATFORMS" "SUPPORTED" "GEN9" "BXT")
240+
ADD_PLATFORM_FOR_GEN("SUPPORTED" "GEN9" "BXT" "LP")
233241
if(TESTS_BXT)
234242
ADD_ITEM_FOR_GEN("PLATFORMS" "TESTED" "GEN9" "BXT")
235243
ADD_ITEM_FOR_GEN("CONFIGURATIONS" "AUB_TESTS" "GEN9" "bxt/1/3/6")

runtime/built_ins/built_ins_storage.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ std::unique_ptr<Program> BuiltinsLib::createProgramFromCode(const BuiltinCode &b
200200
BuiltinResourceT BuiltinsLib::getBuiltinResource(EBuiltInOps builtin, BuiltinCode::ECodeType requestedCodeType, Device &device) {
201201
BuiltinResourceT bc;
202202
std::string resourceNameGeneric = createBuiltinResourceName(builtin, BuiltinCode::getExtension(requestedCodeType));
203-
std::string resourceNameForPlatform = createBuiltinResourceName(builtin, BuiltinCode::getExtension(requestedCodeType), device.getProductAbbrev());
204-
std::string resourceNameForPlatformAndStepping = createBuiltinResourceName(builtin, BuiltinCode::getExtension(requestedCodeType), device.getProductAbbrev(),
205-
device.getHardwareInfo().pPlatform->usRevId);
203+
std::string resourceNameForPlatformType = createBuiltinResourceName(builtin, BuiltinCode::getExtension(requestedCodeType), device.getFamilyNameWithType());
204+
std::string resourceNameForPlatformTypeAndStepping = createBuiltinResourceName(builtin, BuiltinCode::getExtension(requestedCodeType), device.getFamilyNameWithType(),
205+
device.getHardwareInfo().pPlatform->usRevId);
206206

207-
for (auto &rn : {resourceNameForPlatformAndStepping, resourceNameForPlatform, resourceNameGeneric}) { // first look for dedicated version, only fallback to generic one
207+
for (auto &rn : {resourceNameForPlatformTypeAndStepping, resourceNameForPlatformType, resourceNameGeneric}) { // first look for dedicated version, only fallback to generic one
208208
for (auto &s : allStorages) {
209209
bc = s.get()->load(rn);
210210
if (bc.size() != 0) {

runtime/built_ins/builtins_binary.cmake

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,13 @@ if(COMPILE_BUILT_INS)
4242
add_subdirectory(kernels)
4343
endif()
4444

45-
macro(macro_for_each_platform)
46-
foreach(GENERATED_BUILTIN ${GENERATED_BUILTINS})
47-
list(APPEND GENERATED_BUILTINS_CPPS ${BUILTINS_INCLUDE_DIR}/${RUNTIME_GENERATED_${GENERATED_BUILTIN}_${GEN_TYPE_LOWER}_${PLATFORM_IT}})
48-
endforeach()
49-
endmacro()
50-
5145
macro(macro_for_each_gen)
52-
apply_macro_for_each_platform()
46+
foreach(PLATFORM_TYPE "CORE" "LP")
47+
get_family_name_with_type(${GEN_TYPE} ${PLATFORM_TYPE})
48+
foreach(GENERATED_BUILTIN ${GENERATED_BUILTINS})
49+
list(APPEND GENERATED_BUILTINS_CPPS ${BUILTINS_INCLUDE_DIR}/${RUNTIME_GENERATED_${GENERATED_BUILTIN}_${family_name_with_type}})
50+
endforeach()
51+
endforeach()
5352
source_group("generated files\\${GEN_TYPE_LOWER}" FILES ${GENERATED_BUILTINS_CPPS})
5453
endmacro()
5554

runtime/built_ins/kernels/CMakeLists.txt

Lines changed: 32 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,17 @@ set(BUILTINS_INCLUDE_DIR ${TargetDir} PARENT_SCOPE)
3939
set(BUILTIN_CPP "")
4040

4141
# Define function for compiling built-ins (with cloc)
42-
function(compile_builtin gen_name builtin)
43-
set(OUTPUTDIR "${BUILTINS_OUTDIR_WITH_ARCH}/${gen_name}")
44-
42+
function(compile_builtin gen_type platform_type builtin)
43+
string(TOLOWER ${gen_type} gen_type_lower)
44+
get_family_name_with_type(${gen_type} ${platform_type})
45+
set(OUTPUTDIR "${BUILTINS_OUTDIR_WITH_ARCH}/${gen_type_lower}")
4546
# get filename
4647
get_filename_component(FILENAME ${builtin} NAME)
4748

4849
# get name of the file w/o extension
4950
get_filename_component(BASENAME ${builtin} NAME_WE)
5051

51-
set(OUTPUTPATH_BASE "${OUTPUTDIR}/${BASENAME}_${gen_name}")
52+
set(OUTPUTPATH_BASE "${OUTPUTDIR}/${BASENAME}_${family_name_with_type}")
5253
set(OUTPUT_FILES
5354
${OUTPUTPATH_BASE}.bc
5455
${OUTPUTPATH_BASE}.bin
@@ -59,48 +60,38 @@ function(compile_builtin gen_name builtin)
5960
# function returns builtin cpp filename
6061
unset(BUILTIN_CPP)
6162
# set variable outside function
62-
set(BUILTIN_CPP built_ins/${NEO_ARCH}/${gen_name}/${BASENAME}_${gen_name}.cpp PARENT_SCOPE)
63-
64-
if(MSVC)
65-
add_custom_command(
66-
OUTPUT ${OUTPUT_FILES}
67-
COMMAND cloc -q -file ${FILENAME} -device ${gen_name} ${BUILTIN_OPTIONS} -${NEO_BITS} -out_dir ${OUTPUTDIR} -cpp_file -options "-cl-kernel-arg-info ${BUILTIN_DEBUG_OPTION}"
68-
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
69-
DEPENDS ${builtin} cloc copy_compiler_files
70-
)
63+
set(BUILTIN_CPP built_ins/${NEO_ARCH}/${gen_type_lower}/${BASENAME}_${family_name_with_type}.cpp PARENT_SCOPE)
64+
if(WIN32)
65+
set(cloc_cmd_prefix cloc)
7166
else()
72-
add_custom_command(
73-
OUTPUT ${OUTPUT_FILES}
74-
COMMAND LD_LIBRARY_PATH=$<TARGET_FILE_DIR:cloc> $<TARGET_FILE:cloc> -q -file ${FILENAME} -device ${gen_name} ${BUILTIN_OPTIONS} -${NEO_BITS} -out_dir ${OUTPUTDIR} -cpp_file -options "-cl-kernel-arg-info ${BUILTIN_DEBUG_OPTION}"
75-
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
76-
DEPENDS ${builtin} cloc copy_compiler_files
77-
)
67+
set(cloc_cmd_prefix LD_LIBRARY_PATH=$<TARGET_FILE_DIR:cloc> $<TARGET_FILE:cloc>)
7868
endif()
69+
add_custom_command(
70+
OUTPUT ${OUTPUT_FILES}
71+
COMMAND ${cloc_cmd_prefix} -q -file ${FILENAME} -device ${DEFAULT_SUPPORTED_${gen_type}_${platform_type}_PLATFORM} ${BUILTIN_OPTIONS} -${NEO_BITS} -out_dir ${OUTPUTDIR} -cpp_file -options "-cl-kernel-arg-info ${BUILTIN_DEBUG_OPTION}"
72+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
73+
DEPENDS ${builtin} cloc copy_compiler_files
74+
)
7975
endfunction()
8076

81-
macro(compile_builtins GEN_TYPE PLATFORM_IT)
82-
string(TOLOWER ${PLATFORM_IT} PLATFORM_LOWER)
83-
string(CONCAT GEN "_" ${GEN_TYPE} "_" ${PLATFORM_IT})
84-
85-
set (BUILTINS_COMMANDS)
86-
foreach(GENERATED_BUILTIN ${GENERATED_BUILTINS})
87-
compile_builtin(${PLATFORM_LOWER} ${GENERATED_BUILTIN}.igdrcl_built_in)
88-
list(APPEND BUILTINS_COMMANDS ${TargetDir}/${BUILTIN_CPP})
89-
set (RUNTIME_GENERATED_${GENERATED_BUILTIN}${GEN} ${BUILTIN_CPP} PARENT_SCOPE)
90-
endforeach()
91-
92-
set(target_name builtins_${PLATFORM_LOWER})
93-
add_custom_target(${target_name} DEPENDS ${BUILTINS_COMMANDS})
94-
add_dependencies(builtins ${target_name})
95-
set_target_properties(${target_name} PROPERTIES FOLDER "built_ins/${PLATFORM_LOWER}")
96-
endmacro()
97-
98-
macro(macro_for_each_platform)
99-
compile_builtins(${GEN_TYPE_LOWER} ${PLATFORM_IT})
100-
endmacro()
101-
10277
macro(macro_for_each_gen)
103-
apply_macro_for_each_platform()
78+
foreach(PLATFORM_TYPE "CORE" "LP")
79+
if(${GEN_TYPE}_HAS_${PLATFORM_TYPE})
80+
get_family_name_with_type(${GEN_TYPE} ${PLATFORM_TYPE})
81+
string(TOLOWER ${PLATFORM_TYPE} PLATFORM_TYPE_LOWER)
82+
unset(BUILTINS_COMMANDS)
83+
foreach(GENERATED_BUILTIN ${GENERATED_BUILTINS})
84+
compile_builtin(${GEN_TYPE} ${PLATFORM_TYPE} ${GENERATED_BUILTIN}.igdrcl_built_in)
85+
list(APPEND BUILTINS_COMMANDS ${TargetDir}/${BUILTIN_CPP})
86+
set(RUNTIME_GENERATED_${GENERATED_BUILTIN}_${family_name_with_type} ${BUILTIN_CPP} PARENT_SCOPE)
87+
endforeach()
88+
89+
set(target_name builtins_${family_name_with_type})
90+
add_custom_target(${target_name} DEPENDS ${BUILTINS_COMMANDS})
91+
add_dependencies(builtins ${target_name})
92+
set_target_properties(${target_name} PROPERTIES FOLDER "built_ins/${family_name_with_type}")
93+
endif()
94+
endforeach()
10495
endmacro()
10596

10697
apply_macro_for_each_gen("SUPPORTED")

runtime/device/device.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ const char *Device::getProductAbbrev() const {
213213
return hardwarePrefix[hwInfo.pPlatform->eProductFamily];
214214
}
215215

216+
const std::string Device::getFamilyNameWithType() const {
217+
std::string platformName = familyName[hwInfo.pPlatform->eRenderCoreFamily];
218+
platformName.append(getPlatformType(hwInfo));
219+
return platformName;
220+
}
221+
216222
double Device::getProfilingTimerResolution() {
217223
return osTime->getDynamicDeviceTimerResolution(hwInfo);
218224
}

runtime/device/device.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class Device : public BaseObject<_cl_device_id> {
9797
volatile uint32_t *getTagAddress() const;
9898

9999
const char *getProductAbbrev() const;
100+
const std::string getFamilyNameWithType() const;
100101

101102
// This helper template is meant to simplify getDeviceInfo
102103
template <cl_device_info Param>

runtime/gen8/hw_info_bdw.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ const RuntimeCapabilityTable BDW::capabilityTable{
7373
{true, 50000, true, 5000, true, 200000}, // KmdNotifyProperties
7474
false, // ftr64KBpages
7575
EngineType::ENGINE_RCS, // defaultEngineType
76-
MemoryConstants::pageSize //requiredPreemptionSurfaceSize
76+
MemoryConstants::pageSize, //requiredPreemptionSurfaceSize
77+
true // isBigCore
7778
};
7879

7980
const HardwareInfo BDW_1x2x6::hwInfo = {

runtime/gen9/hw_info_bxt.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ const RuntimeCapabilityTable BXT::capabilityTable{
6969
{false, 0, false, 0, false, 0}, // KmdNotifyProperties
7070
false, // ftr64KBpages
7171
EngineType::ENGINE_RCS, // defaultEngineType
72-
MemoryConstants::pageSize //requiredPreemptionSurfaceSize
72+
MemoryConstants::pageSize, //requiredPreemptionSurfaceSize
73+
false // isBigCore
7374
};
7475

7576
const HardwareInfo BXT_1x2x6::hwInfo = {

runtime/gen9/hw_info_cfl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ const RuntimeCapabilityTable CFL::capabilityTable{
6464
{false, 0, false, 0, false, 0}, // KmdNotifyProperties
6565
true, // ftr64KBpages
6666
EngineType::ENGINE_RCS, // defaultEngineType
67-
MemoryConstants::pageSize //requiredPreemptionSurfaceSize
67+
MemoryConstants::pageSize, //requiredPreemptionSurfaceSize
68+
true // isBigCore
6869
};
6970

7071
const HardwareInfo CFL_1x2x6::hwInfo = {

runtime/gen9/hw_info_glk.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ const RuntimeCapabilityTable GLK::capabilityTable{
6464
{true, 30000, false, 0, false, 0}, // KmdNotifyProperties
6565
false, // ftr64KBpages
6666
EngineType::ENGINE_RCS, // defaultEngineType
67-
MemoryConstants::pageSize //requiredPreemptionSurfaceSize
67+
MemoryConstants::pageSize, //requiredPreemptionSurfaceSize
68+
false // isBigCore
6869
};
6970

7071
const HardwareInfo GLK_1x3x6::hwInfo = {

runtime/gen9/hw_info_kbl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ const RuntimeCapabilityTable KBL::capabilityTable{
6464
{false, 0, false, 0, false, 0}, // KmdNotifyProperties
6565
true, // ftr64KBpages
6666
EngineType::ENGINE_RCS, // defaultEngineType
67-
MemoryConstants::pageSize //requiredPreemptionSurfaceSize
67+
MemoryConstants::pageSize, //requiredPreemptionSurfaceSize
68+
true // isBigCore
6869
};
6970

7071
const HardwareInfo KBL_1x2x6::hwInfo = {

runtime/gen9/hw_info_skl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ const RuntimeCapabilityTable SKL::capabilityTable{
7272
{false, 0, false, 0, false, 0}, // KmdNotifyProperties
7373
true, // ftr64KBpages
7474
EngineType::ENGINE_RCS, // defaultEngineType
75-
MemoryConstants::pageSize //requiredPreemptionSurfaceSize
75+
MemoryConstants::pageSize, //requiredPreemptionSurfaceSize
76+
true // isBigCore
7677
};
7778

7879
const HardwareInfo SKL_1x2x6::hwInfo = {

0 commit comments

Comments
 (0)