mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 04:12:57 +08:00
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>
29 lines
555 B
C++
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
|