mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
feature: Define L0 Driver API for Driver Version String
Related-To: NEO-11752 - Adds zeIntelGetDriverVersionString to report the driver version string to the user in the format: Major.Minor.Patch+Optional Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2f6eaf149a
commit
f3ce3b5e81
@@ -37,5 +37,6 @@ const std::vector<std::pair<std::string, uint32_t>> DriverHandleImp::extensionsS
|
||||
{ZE_EVENT_POOL_COUNTER_BASED_EXP_NAME, ZE_EVENT_POOL_COUNTER_BASED_EXP_VERSION_CURRENT},
|
||||
{ZE_INTEL_COMMAND_LIST_MEMORY_SYNC, ZE_INTEL_COMMAND_LIST_MEMORY_SYNC_EXP_VERSION_CURRENT},
|
||||
{ZEX_INTEL_EVENT_SYNC_MODE_EXP_NAME, ZEX_INTEL_EVENT_SYNC_MODE_EXP_VERSION_CURRENT},
|
||||
{ZE_INTEL_GET_DRIVER_VERSION_STRING_EXP_NAME, ZE_INTEL_GET_DRIVER_VERSION_STRING_EXP_VERSION_CURRENT},
|
||||
};
|
||||
} // namespace L0
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "level_zero/api/driver_experimental/public/zex_api.h"
|
||||
#include "level_zero/api/extensions/public/ze_exp_ext.h"
|
||||
#include "level_zero/include/ze_intel_gpu.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
@@ -41,6 +42,7 @@ void *ExtensionFunctionAddressHelper::getExtensionFunctionAddress(const std::str
|
||||
RETURN_FUNC_PTR_IF_EXIST(zeMemGetPitchFor2dImage);
|
||||
RETURN_FUNC_PTR_IF_EXIST(zeImageGetDeviceOffsetExp);
|
||||
RETURN_FUNC_PTR_IF_EXIST(zexDeviceGetConcurrentMetricGroups);
|
||||
RETURN_FUNC_PTR_IF_EXIST(zeIntelGetDriverVersionString);
|
||||
#undef RETURN_FUNC_PTR_IF_EXIST
|
||||
|
||||
return ExtensionFunctionAddressHelper::getAdditionalExtensionFunctionAddress(functionName);
|
||||
|
||||
Reference in New Issue
Block a user