mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Add ClDevice function to query OCL2.1 support
Change-Id: I4a1e7def6b26241592dba4ecd4a6a6cb3bb69835 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
1dad22a12a
commit
c3ea485752
@@ -488,7 +488,7 @@ TEST(GetDeviceInfo, GivenMaxGlobalVariableSizeWhenGettingDeviceInfoThenCorrectVa
|
||||
auto retVal = device->getDeviceInfo(CL_DEVICE_MAX_GLOBAL_VARIABLE_SIZE, sizeof(size_t), &value, &size);
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
EXPECT_EQ(sizeof(size_t), size);
|
||||
if (device->getEnabledClVersion() >= 20) {
|
||||
if (device->areOcl21FeaturesEnabled()) {
|
||||
EXPECT_EQ(value, 65536u);
|
||||
} else {
|
||||
EXPECT_EQ(value, 0u);
|
||||
@@ -504,7 +504,7 @@ TEST(GetDeviceInfo, GivenGlobalVariablePreferredTotalSizeWhenGettingDeviceInfoTh
|
||||
auto retVal = device->getDeviceInfo(CL_DEVICE_GLOBAL_VARIABLE_PREFERRED_TOTAL_SIZE, sizeof(size_t), &value, &size);
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
EXPECT_EQ(sizeof(size_t), size);
|
||||
if (device->getEnabledClVersion() >= 20) {
|
||||
if (device->areOcl21FeaturesEnabled()) {
|
||||
EXPECT_EQ(value, static_cast<size_t>(device->getSharedDeviceInfo().maxMemAllocSize));
|
||||
} else {
|
||||
EXPECT_EQ(value, 0u);
|
||||
|
||||
Reference in New Issue
Block a user