mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Related-To: NEO-3938 Change-Id: Id34ad20b1b98068b2e4e135043a50bdaa4f117d5 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
22 lines
510 B
C++
22 lines
510 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "opencl/source/device/cl_device.h"
|
|
#include "opencl/source/device/cl_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 = &ClDeviceInfoTable::Map<Param>::getValue(*this);
|
|
retSize = size = ClDeviceInfoTable::Map<Param>::size;
|
|
}
|
|
|
|
} // namespace NEO
|