mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
Correct programming device info
Related-To: NEO-4368 Change-Id: I7bebb8754d7e653806f682f1931840f9bdb651ee Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
7157b41856
commit
75b2cac097
@@ -246,7 +246,7 @@ void ClDevice::initializeCaps() {
|
|||||||
deviceInfo.memBaseAddressAlign = 1024;
|
deviceInfo.memBaseAddressAlign = 1024;
|
||||||
deviceInfo.minDataTypeAlignSize = 128;
|
deviceInfo.minDataTypeAlignSize = 128;
|
||||||
|
|
||||||
if (isDeviceEnqueueSupported()) {
|
if (isDeviceEnqueueSupported() || (enabledClVersion == 21)) {
|
||||||
deviceInfo.maxOnDeviceQueues = 1;
|
deviceInfo.maxOnDeviceQueues = 1;
|
||||||
deviceInfo.maxOnDeviceEvents = 1024;
|
deviceInfo.maxOnDeviceEvents = 1024;
|
||||||
deviceInfo.queueOnDeviceMaxSize = 64 * MB;
|
deviceInfo.queueOnDeviceMaxSize = 64 * MB;
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ TEST_F(DeviceGetCapsTest, WhenCreatingDeviceThenCapsArePopulatedCorrectly) {
|
|||||||
|
|
||||||
EXPECT_EQ(sharedCaps.maxWorkGroupSize / hwHelper.getMinimalSIMDSize(), caps.maxNumOfSubGroups);
|
EXPECT_EQ(sharedCaps.maxWorkGroupSize / hwHelper.getMinimalSIMDSize(), caps.maxNumOfSubGroups);
|
||||||
|
|
||||||
if (defaultHwInfo->capabilityTable.supportsDeviceEnqueue) {
|
if (defaultHwInfo->capabilityTable.supportsDeviceEnqueue || (defaultHwInfo->capabilityTable.clVersionSupport == 21)) {
|
||||||
EXPECT_EQ(1024u, caps.maxOnDeviceEvents);
|
EXPECT_EQ(1024u, caps.maxOnDeviceEvents);
|
||||||
EXPECT_EQ(1u, caps.maxOnDeviceQueues);
|
EXPECT_EQ(1u, caps.maxOnDeviceQueues);
|
||||||
EXPECT_EQ(64u * MB, caps.queueOnDeviceMaxSize);
|
EXPECT_EQ(64u * MB, caps.queueOnDeviceMaxSize);
|
||||||
@@ -989,6 +989,10 @@ TEST(DeviceGetCaps, givenDebugFlagToUseCertainWorkgroupSizeWhenDeviceIsCreatedIt
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST(DeviceGetCaps, givenDebugFlagToDisableDeviceEnqueuesWhenCreatingDeviceThenDeviceQueueCapsAreSetCorrectly) {
|
TEST(DeviceGetCaps, givenDebugFlagToDisableDeviceEnqueuesWhenCreatingDeviceThenDeviceQueueCapsAreSetCorrectly) {
|
||||||
|
if (defaultHwInfo->capabilityTable.clVersionSupport == 21) {
|
||||||
|
GTEST_SKIP();
|
||||||
|
}
|
||||||
|
|
||||||
DebugManagerStateRestore dbgRestorer;
|
DebugManagerStateRestore dbgRestorer;
|
||||||
DebugManager.flags.DisableDeviceEnqueue.set(true);
|
DebugManager.flags.DisableDeviceEnqueue.set(true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user