Files
compute-runtime/opencl/source/platform/platform_info.h
Filip Hazubski d7db6ac467 feature: Add preferredPlatformName field to RuntimeCapabilityTable
For all of the devices, preferredPlatformName is initialized with
nullptr by default and platform name will be initialized to driver's default
platform name, at the moment this is "Intel(R) OpenCL Graphics".

When Platform is initialized and preferredPlatformName is not nullptr then
Platform name will be set to the value stored in preferredPlatformName.

Add ENABLE_LEGACY_PLATFORM_NAME AIL enum related to added functionality.

Move PlatformInfo to NEO namespace.

Related-To: HSD-22018809561

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2023-09-12 11:07:14 +02:00

29 lines
555 B
C++

/*
* Copyright (C) 2018-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "CL/cl.h"
#include <string>
#include <vector>
namespace NEO {
struct PlatformInfo {
std::vector<cl_name_version> extensionsWithVersion;
std::string profile = "FULL_PROFILE";
std::string version = "";
std::string name = "Intel(R) OpenCL Graphics";
std::string vendor = "Intel(R) Corporation";
std::string extensions;
std::string icdSuffixKhr = "INTEL";
cl_version numericVersion = 0;
};
} // namespace NEO