Files
compute-runtime/runtime/helpers/device_helpers.h
Filip Hazubski 2d02435fb9 Add DeviceHelper::getEnginesCount() function
Related-To: NEO-2535

Change-Id: Ie82f5b573d934e038dc44853d0bba5bbd5db3551
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-05-20 15:26:48 +02:00

21 lines
507 B
C++

/*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "CL/cl.h"
#include <cstdint>
namespace NEO {
struct HardwareInfo;
namespace DeviceHelper {
void getExtraDeviceInfo(const HardwareInfo &hwInfo, cl_device_info paramName, cl_uint &param, const void *&src, size_t &size, size_t &retSize);
uint32_t getDevicesCount(const HardwareInfo *pHwInfo);
uint32_t getEnginesCount(const HardwareInfo &hwInfo);
}; // namespace DeviceHelper
} // namespace NEO