compute-runtime/shared/source/device/device_get_device_name.cpp

19 lines
434 B
C++

/*
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/device/device.h"
#include "shared/source/helpers/hw_info.h"
#include <string>
namespace NEO {
const std::string Device::getDeviceName(const HardwareInfo &hwInfo) const {
return std::string(hwInfo.capabilityTable.deviceName).empty() ? "Intel(R) Graphics" : hwInfo.capabilityTable.deviceName;
}
} // namespace NEO