mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
New query option ocloc query SUPPORTED_DEVICE allows to generate a YAML file containing information about supported devices for: - the current version of ocloc on Windows - the current and previous versions of ocloc on Linux Each version of ocloc build needs to set NEO_OCLOC_CURRENT_LIB_NAME NEO_OCLOC_FORMER_LIB_NAME cmake defines for the ocloc to be able to find a previous lib and query its supported devices. Example of correct format: NEO_OCLOC_FORMER_LIB_NAME=libocloc-1.0.so NEO_OCLOC_CURRENT_LIB_NAME=libocloc-2.0.so Related-To: NEO-9630 Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
/*
|
|
* Copyright (C) 2021-2024 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/source/utilities/const_stringref.h"
|
|
|
|
namespace NEO {
|
|
namespace Queries {
|
|
enum class QueryType {
|
|
invalid,
|
|
help,
|
|
neoRevision,
|
|
igcRevision,
|
|
oclDriverVersion,
|
|
oclDeviceExtensions,
|
|
oclDeviceExtensionsWithVersion,
|
|
oclDeviceProfile,
|
|
oclDeviceOpenCLCAllVersions,
|
|
oclDeviceOpenCLCFeatures,
|
|
supportedDevices
|
|
};
|
|
|
|
inline constexpr ConstStringRef queryNeoRevision = "NEO_REVISION";
|
|
inline constexpr ConstStringRef queryIgcRevision = "IGC_REVISION";
|
|
inline constexpr ConstStringRef queryOCLDriverVersion = "OCL_DRIVER_VERSION";
|
|
inline constexpr ConstStringRef queryOCLDeviceExtensions = "CL_DEVICE_EXTENSIONS";
|
|
inline constexpr ConstStringRef queryOCLDeviceExtensionsWithVersion = "CL_DEVICE_EXTENSIONS_WITH_VERSION";
|
|
inline constexpr ConstStringRef queryOCLDeviceProfile = "CL_DEVICE_PROFILE";
|
|
inline constexpr ConstStringRef queryOCLDeviceOpenCLCAllVersions = "CL_DEVICE_OPENCL_C_ALL_VERSIONS";
|
|
inline constexpr ConstStringRef queryOCLDeviceOpenCLCFeatures = "CL_DEVICE_OPENCL_C_FEATURES";
|
|
inline constexpr ConstStringRef querySupportedDevices = "SUPPORTED_DEVICES";
|
|
}; // namespace Queries
|
|
} // namespace NEO
|