mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Add slm size to capabilityTable
Change-Id: Ia8839b2268069ac3815ff21cf247deefbf3b5335 Signed-off-by: Woloszyn, Wojciech <wojciech.woloszyn@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
52fbf6473b
commit
ace20aba5b
@@ -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;
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -65,6 +65,7 @@ struct RuntimeCapabilityTable {
|
||||
|
||||
uint32_t extraQuantityThreadsPerEU;
|
||||
bool supportsVme;
|
||||
uint32_t slmSize;
|
||||
uint64_t gpuAddressSpace;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user