mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
feature: add SUPPORTED_DEVICES query to ocloc
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>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d469d551fb
commit
359f4d5b56
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2023 Intel Corporation
|
||||
* Copyright (C) 2021-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -21,7 +21,8 @@ enum class QueryType {
|
||||
oclDeviceExtensionsWithVersion,
|
||||
oclDeviceProfile,
|
||||
oclDeviceOpenCLCAllVersions,
|
||||
oclDeviceOpenCLCFeatures
|
||||
oclDeviceOpenCLCFeatures,
|
||||
supportedDevices
|
||||
};
|
||||
|
||||
inline constexpr ConstStringRef queryNeoRevision = "NEO_REVISION";
|
||||
@@ -32,5 +33,6 @@ inline constexpr ConstStringRef queryOCLDeviceExtensionsWithVersion = "CL_DEVICE
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user