mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Related-To: NEO-3938 Change-Id: Ic13d69eaf2ba54794f82d78b058c960f27a6c29d Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
22 lines
503 B
C++
22 lines
503 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "opencl/source/device/cl_device.h"
|
|
#include "opencl/source/device/device_info_map.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <cl_device_info Param>
|
|
inline void ClDevice::getCap(const void *&src,
|
|
size_t &size,
|
|
size_t &retSize) {
|
|
src = &DeviceInfoTable::Map<Param>::getValue(*this);
|
|
retSize = size = DeviceInfoTable::Map<Param>::size;
|
|
}
|
|
|
|
} // namespace NEO
|