2018-09-20 20:18:19 +08:00
|
|
|
/*
|
2019-02-27 18:39:32 +08:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-09-20 20:18:19 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "CL/cl.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2018-09-20 20:18:19 +08:00
|
|
|
#include <cstdint>
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2019-03-19 19:10:01 +08:00
|
|
|
struct HardwareInfo;
|
|
|
|
|
|
|
|
namespace DeviceHelper {
|
2019-04-17 16:33:45 +08:00
|
|
|
void getExtraDeviceInfo(const HardwareInfo &hwInfo, cl_device_info paramName, cl_uint ¶m, const void *&src, size_t &size, size_t &retSize);
|
2019-03-19 19:10:01 +08:00
|
|
|
uint32_t getDevicesCount(const HardwareInfo *pHwInfo);
|
2019-05-15 21:12:55 +08:00
|
|
|
uint32_t getEnginesCount(const HardwareInfo &hwInfo);
|
2019-03-19 19:10:01 +08:00
|
|
|
}; // namespace DeviceHelper
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|