refactor: correct variable naming

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-12-04 10:51:53 +00:00
committed by Compute-Runtime-Automation
parent 824cdfa585
commit c3d3a4db1f
40 changed files with 216 additions and 218 deletions

View File

@@ -19,10 +19,9 @@ namespace NEO {
namespace ClDeviceInfoTable {
template <cl_device_info clDeviceInfoParam, typename _Type, _Type ClDeviceInfo::*val>
template <cl_device_info clDeviceInfoParam, typename Type, Type ClDeviceInfo::*val>
struct ClMapBase {
enum { param = clDeviceInfoParam };
typedef _Type Type;
enum { size = sizeof(Type) };
static const Type &getValue(const NEO::ClDevice &clDevice) {
@@ -30,10 +29,9 @@ struct ClMapBase {
}
};
template <cl_device_info clDeviceInfoParam, typename _Type, _Type DeviceInfo::*val>
template <cl_device_info clDeviceInfoParam, typename Type, Type DeviceInfo::*val>
struct MapBase {
enum { param = clDeviceInfoParam };
typedef _Type Type;
enum { size = sizeof(Type) };
static const Type &getValue(const NEO::ClDevice &clDevice) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 Intel Corporation
* Copyright (C) 2018-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -127,8 +127,8 @@ inline void getQueueInfo(cl_command_queue commandQueue,
}
}
template <typename returnType>
returnType getCmdQueueProperties(const cl_queue_properties *properties,
template <typename ReturnType>
ReturnType getCmdQueueProperties(const cl_queue_properties *properties,
cl_queue_properties propertyName = CL_QUEUE_PROPERTIES,
bool *foundValue = nullptr) {
if (properties != nullptr) {
@@ -137,7 +137,7 @@ returnType getCmdQueueProperties(const cl_queue_properties *properties,
if (foundValue) {
*foundValue = true;
}
return static_cast<returnType>(*(properties + 1));
return static_cast<ReturnType>(*(properties + 1));
}
properties += 2;
}