mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
feature: Adding support for OCL C support queries to ocloc
Feature needed for automated OCL C compilation with ocloc as backend. Added queries : * CL_DEVICE_EXTENSIONS * CL_DEVICE_EXTENSIONS_WITH_VERSION * CL_DEVICE_PROFILE * CL_DEVICE_OPENCL_C_ALL_VERSIONS * CL_DEVICE_OPENCL_C_FEATURES Sample command line: ocloc query -device skl CL_DEVICE_OPENCL_C_FEATURES Related-To: GSD-7420 Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d99104d5bf
commit
7e795cd3c1
@@ -11,8 +11,26 @@
|
||||
|
||||
namespace NEO {
|
||||
namespace Queries {
|
||||
enum class QueryType {
|
||||
invalid,
|
||||
help,
|
||||
neoRevision,
|
||||
igcRevision,
|
||||
oclDriverVersion,
|
||||
oclDeviceExtensions,
|
||||
oclDeviceExtensionsWithVersion,
|
||||
oclDeviceProfile,
|
||||
oclDeviceOpenCLCAllVersions,
|
||||
oclDeviceOpenCLCFeatures
|
||||
};
|
||||
|
||||
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";
|
||||
}; // namespace Queries
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user