compute-runtime/runtime/helpers/device_helpers.h

21 lines
510 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 getSubDevicesCount(const HardwareInfo *pHwInfo);
uint32_t getEnginesCount(const HardwareInfo &hwInfo);
}; // namespace DeviceHelper
} // namespace NEO