OpenCL Queue Families extension 15/n

Add queue family name.
This change will break backwards-compatibility.

Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2021-01-14 14:06:40 +00:00
committed by Compute-Runtime-Automation
parent 22c25a231e
commit 320a404a91
8 changed files with 75 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017-2020 Intel Corporation
* Copyright (C) 2017-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -36,4 +36,19 @@ struct GetDeviceInfoMemCapabilitiesTest : ::testing::Test {
}
}
};
struct QueueFamilyNameTest : ::testing::Test {
void SetUp() override {
device = std::make_unique<MockClDevice>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(defaultHwInfo.get()));
}
void verify(EngineGroupType type, const char *expectedName) {
char name[CL_QUEUE_FAMILY_MAX_NAME_SIZE_INTEL];
device->getQueueFamilyName(name, sizeof(name), type);
EXPECT_EQ(0, std::strcmp(name, expectedName));
}
std::unique_ptr<MockClDevice> device = {};
};
} // namespace NEO