Add slm size to capabilityTable

Change-Id: Ia8839b2268069ac3815ff21cf247deefbf3b5335
Signed-off-by: Woloszyn, Wojciech <wojciech.woloszyn@intel.com>
This commit is contained in:
Woloszyn, Wojciech
2018-12-05 07:09:27 -08:00
committed by sys_ocldev
parent 52fbf6473b
commit ace20aba5b
12 changed files with 21 additions and 1 deletions

View File

@@ -296,7 +296,7 @@ void Device::initializeCaps() {
printDebugString(DebugManager.flags.PrintDebugMessages.get(), stderr, "computeUnitsUsedForScratch: %d\n", deviceInfo.computeUnitsUsedForScratch);
deviceInfo.localMemType = CL_LOCAL;
deviceInfo.localMemSize = 64 << 10;
deviceInfo.localMemSize = hwInfo.capabilityTable.slmSize << 10;
deviceInfo.imageSupport = CL_TRUE;
deviceInfo.image2DMaxWidth = 16384;

View File

@@ -63,6 +63,7 @@ const RuntimeCapabilityTable CNL::capabilityTable{0,
CmdServicesMemTraceVersion::DeviceValues::Cnl,
0, // extraQuantityThreadsPerEU
true, // SupportsVme
64, // slmSize
MemoryConstants::max48BitAddress}; // gpuAddressSpace
const HardwareInfo CNL_2x5x8::hwInfo = {

View File

@@ -64,6 +64,7 @@ const RuntimeCapabilityTable BDW::capabilityTable{0,
CmdServicesMemTraceVersion::DeviceValues::Bdw,
0, // extraQuantityThreadsPerEU
true, // SupportsVme
64, // slmSize
MemoryConstants::max48BitAddress}; // gpuAddressSpace
const HardwareInfo BDW_1x2x6::hwInfo = {

View File

@@ -61,6 +61,7 @@ const RuntimeCapabilityTable BXT::capabilityTable{0,
CmdServicesMemTraceVersion::DeviceValues::Bxt,
0, // extraQuantityThreadsPerEU
true, // SupportsVme
64, // slmSize
MemoryConstants::max48BitAddress}; // gpuAddressSpace
const HardwareInfo BXT_1x2x6::hwInfo = {

View File

@@ -56,6 +56,7 @@ const RuntimeCapabilityTable CFL::capabilityTable{0,
CmdServicesMemTraceVersion::DeviceValues::Cfl,
0, // extraQuantityThreadsPerEU
true, // SupportsVme
64, // slmSize
MemoryConstants::max48BitAddress}; // gpuAddressSpace
const HardwareInfo CFL_1x2x6::hwInfo = {

View File

@@ -56,6 +56,7 @@ const RuntimeCapabilityTable GLK::capabilityTable{0,
CmdServicesMemTraceVersion::DeviceValues::Glk,
0, // extraQuantityThreadsPerEU
true, // SupportsVme
64, // slmSize
MemoryConstants::max48BitAddress}; // gpuAddressSpace
const HardwareInfo GLK_1x3x6::hwInfo = {

View File

@@ -56,6 +56,7 @@ const RuntimeCapabilityTable KBL::capabilityTable{0,
CmdServicesMemTraceVersion::DeviceValues::Kbl,
0, // extraQuantityThreadsPerEU
true, // SupportsVme
64, // slmSize
MemoryConstants::max48BitAddress}; // gpuAddressSpace
const HardwareInfo KBL_1x2x6::hwInfo = {

View File

@@ -64,6 +64,7 @@ const RuntimeCapabilityTable SKL::capabilityTable{0,
CmdServicesMemTraceVersion::DeviceValues::Skl,
0, // extraQuantityThreadsPerEU
true, // SupportsVme
64, // slmSize
MemoryConstants::max48BitAddress}; // gpuAddressSpace
const HardwareInfo SKL_1x2x6::hwInfo = {

View File

@@ -65,6 +65,7 @@ struct RuntimeCapabilityTable {
uint32_t extraQuantityThreadsPerEU;
bool supportsVme;
uint32_t slmSize;
uint64_t gpuAddressSpace;
};