mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Correct reporting __opencl_c_atomic_order_acq_rel
Related-To: NEO-5331 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
aa1fc85257
commit
070828cb2f
@ -77,9 +77,6 @@ void getOpenclCFeaturesList(const HardwareInfo &hwInfo, OpenClCFeaturesContainer
|
||||
cl_name_version openClCFeature;
|
||||
openClCFeature.version = CL_MAKE_VERSION(3, 0, 0);
|
||||
|
||||
strcpy_s(openClCFeature.name, CL_NAME_VERSION_MAX_NAME_SIZE, "__opencl_c_atomic_order_acq_rel");
|
||||
openclCFeatures.push_back(openClCFeature);
|
||||
|
||||
strcpy_s(openClCFeature.name, CL_NAME_VERSION_MAX_NAME_SIZE, "__opencl_c_int64");
|
||||
openclCFeatures.push_back(openClCFeature);
|
||||
|
||||
@ -92,6 +89,9 @@ void getOpenclCFeaturesList(const HardwareInfo &hwInfo, OpenClCFeaturesContainer
|
||||
}
|
||||
|
||||
if (hwInfo.capabilityTable.supportsOcl21Features) {
|
||||
strcpy_s(openClCFeature.name, CL_NAME_VERSION_MAX_NAME_SIZE, "__opencl_c_atomic_order_acq_rel");
|
||||
openclCFeatures.push_back(openClCFeature);
|
||||
|
||||
strcpy_s(openClCFeature.name, CL_NAME_VERSION_MAX_NAME_SIZE, "__opencl_c_atomic_order_seq_cst");
|
||||
openclCFeatures.push_back(openClCFeature);
|
||||
|
||||
|
@ -78,14 +78,14 @@ struct DeviceGetCapsTest : public ::testing::Test {
|
||||
auto &hwInfo = clDevice.getHardwareInfo();
|
||||
auto openclCFeatureIterator = clDevice.getDeviceInfo().openclCFeatures.begin();
|
||||
|
||||
EXPECT_STREQ("__opencl_c_atomic_order_acq_rel", openclCFeatureIterator->name);
|
||||
EXPECT_STREQ("__opencl_c_int64", (++openclCFeatureIterator)->name);
|
||||
EXPECT_STREQ("__opencl_c_int64", openclCFeatureIterator->name);
|
||||
|
||||
if (hwInfo.capabilityTable.supportsImages) {
|
||||
EXPECT_STREQ("__opencl_c_3d_image_writes", (++openclCFeatureIterator)->name);
|
||||
EXPECT_STREQ("__opencl_c_images", (++openclCFeatureIterator)->name);
|
||||
}
|
||||
if (hwInfo.capabilityTable.supportsOcl21Features) {
|
||||
EXPECT_STREQ("__opencl_c_atomic_order_acq_rel", (++openclCFeatureIterator)->name);
|
||||
EXPECT_STREQ("__opencl_c_atomic_order_seq_cst", (++openclCFeatureIterator)->name);
|
||||
EXPECT_STREQ("__opencl_c_atomic_scope_all_devices", (++openclCFeatureIterator)->name);
|
||||
EXPECT_STREQ("__opencl_c_atomic_scope_device", (++openclCFeatureIterator)->name);
|
||||
|
Reference in New Issue
Block a user