From 9fc17172d9129cfb75356da278e03b55a3229131 Mon Sep 17 00:00:00 2001 From: "Neil R. Spruit" Date: Thu, 14 Nov 2024 14:29:12 -0800 Subject: [PATCH 1/3] Add Passing in the Result to Validation Checkers at Epilogue Signed-off-by: Neil R. Spruit --- .../templates/validation/entry_points.h.mako | 2 +- scripts/templates/validation/valddi.cpp.mako | 5 +- .../validation/common/ze_entry_points.h | 376 +++---- .../validation/common/zes_entry_points.h | 296 +++--- .../validation/common/zet_entry_points.h | 132 +-- source/layers/validation/ze_valddi.cpp | 940 +++++++++++------- source/layers/validation/zes_valddi.cpp | 740 ++++++++------ source/layers/validation/zet_valddi.cpp | 330 +++--- 8 files changed, 1612 insertions(+), 1209 deletions(-) diff --git a/scripts/templates/validation/entry_points.h.mako b/scripts/templates/validation/entry_points.h.mako index de40d0d5..5f5007ff 100644 --- a/scripts/templates/validation/entry_points.h.mako +++ b/scripts/templates/validation/entry_points.h.mako @@ -36,7 +36,7 @@ ${line} \ %for line in th.make_param_lines(n, tags, obj, format=["type", "name", "delim"]): ${line} \ %endfor -) {return ZE_RESULT_SUCCESS;} +, ze_result_t result) {return ZE_RESULT_SUCCESS;} %endfor virtual ~${N}ValidationEntryPoints() {} }; diff --git a/scripts/templates/validation/valddi.cpp.mako b/scripts/templates/validation/valddi.cpp.mako index 1baa5bbc..c5eebd7b 100644 --- a/scripts/templates/validation/valddi.cpp.mako +++ b/scripts/templates/validation/valddi.cpp.mako @@ -68,14 +68,15 @@ ${line} \ if(result!=${X}_RESULT_SUCCESS) return result; } - auto result = ${th.make_pfn_name(n, tags, obj)}( ${", ".join(th.make_param_lines(n, tags, obj, format=["name"]))} ); + auto driver_result = ${th.make_pfn_name(n, tags, obj)}( ${", ".join(th.make_param_lines(n, tags, obj, format=["name"]))} ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->${n}Validation->${th.make_func_name(n, tags, obj)}Epilogue( \ % for line in th.make_param_lines(n, tags, obj, format=['name','delim']): ${line} \ %endfor -); +,driver_result); if(result!=${X}_RESULT_SUCCESS) return result; } diff --git a/source/layers/validation/common/ze_entry_points.h b/source/layers/validation/common/ze_entry_points.h index dfd8c900..4f266515 100644 --- a/source/layers/validation/common/ze_entry_points.h +++ b/source/layers/validation/common/ze_entry_points.h @@ -18,381 +18,381 @@ namespace validation_layer class ZEValidationEntryPoints { public: virtual ze_result_t zeInitPrologue( ze_init_flags_t flags ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeInitEpilogue( ze_init_flags_t flags ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeInitEpilogue( ze_init_flags_t flags , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDriverGetPrologue( uint32_t* pCount, ze_driver_handle_t* phDrivers ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDriverGetEpilogue( uint32_t* pCount, ze_driver_handle_t* phDrivers ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDriverGetEpilogue( uint32_t* pCount, ze_driver_handle_t* phDrivers , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeInitDriversPrologue( uint32_t* pCount, ze_driver_handle_t* phDrivers, ze_init_driver_type_desc_t* desc ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeInitDriversEpilogue( uint32_t* pCount, ze_driver_handle_t* phDrivers, ze_init_driver_type_desc_t* desc ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeInitDriversEpilogue( uint32_t* pCount, ze_driver_handle_t* phDrivers, ze_init_driver_type_desc_t* desc , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDriverGetApiVersionPrologue( ze_driver_handle_t hDriver, ze_api_version_t* version ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDriverGetApiVersionEpilogue( ze_driver_handle_t hDriver, ze_api_version_t* version ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDriverGetApiVersionEpilogue( ze_driver_handle_t hDriver, ze_api_version_t* version , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDriverGetPropertiesPrologue( ze_driver_handle_t hDriver, ze_driver_properties_t* pDriverProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDriverGetPropertiesEpilogue( ze_driver_handle_t hDriver, ze_driver_properties_t* pDriverProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDriverGetPropertiesEpilogue( ze_driver_handle_t hDriver, ze_driver_properties_t* pDriverProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDriverGetIpcPropertiesPrologue( ze_driver_handle_t hDriver, ze_driver_ipc_properties_t* pIpcProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDriverGetIpcPropertiesEpilogue( ze_driver_handle_t hDriver, ze_driver_ipc_properties_t* pIpcProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDriverGetIpcPropertiesEpilogue( ze_driver_handle_t hDriver, ze_driver_ipc_properties_t* pIpcProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDriverGetExtensionPropertiesPrologue( ze_driver_handle_t hDriver, uint32_t* pCount, ze_driver_extension_properties_t* pExtensionProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDriverGetExtensionPropertiesEpilogue( ze_driver_handle_t hDriver, uint32_t* pCount, ze_driver_extension_properties_t* pExtensionProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDriverGetExtensionPropertiesEpilogue( ze_driver_handle_t hDriver, uint32_t* pCount, ze_driver_extension_properties_t* pExtensionProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDriverGetExtensionFunctionAddressPrologue( ze_driver_handle_t hDriver, const char* name, void** ppFunctionAddress ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDriverGetExtensionFunctionAddressEpilogue( ze_driver_handle_t hDriver, const char* name, void** ppFunctionAddress ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDriverGetExtensionFunctionAddressEpilogue( ze_driver_handle_t hDriver, const char* name, void** ppFunctionAddress , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDriverGetLastErrorDescriptionPrologue( ze_driver_handle_t hDriver, const char** ppString ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDriverGetLastErrorDescriptionEpilogue( ze_driver_handle_t hDriver, const char** ppString ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDriverGetLastErrorDescriptionEpilogue( ze_driver_handle_t hDriver, const char** ppString , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetPrologue( ze_driver_handle_t hDriver, uint32_t* pCount, ze_device_handle_t* phDevices ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetEpilogue( ze_driver_handle_t hDriver, uint32_t* pCount, ze_device_handle_t* phDevices ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetEpilogue( ze_driver_handle_t hDriver, uint32_t* pCount, ze_device_handle_t* phDevices , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetRootDevicePrologue( ze_device_handle_t hDevice, ze_device_handle_t* phRootDevice ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetRootDeviceEpilogue( ze_device_handle_t hDevice, ze_device_handle_t* phRootDevice ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetRootDeviceEpilogue( ze_device_handle_t hDevice, ze_device_handle_t* phRootDevice , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetSubDevicesPrologue( ze_device_handle_t hDevice, uint32_t* pCount, ze_device_handle_t* phSubdevices ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetSubDevicesEpilogue( ze_device_handle_t hDevice, uint32_t* pCount, ze_device_handle_t* phSubdevices ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetSubDevicesEpilogue( ze_device_handle_t hDevice, uint32_t* pCount, ze_device_handle_t* phSubdevices , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetPropertiesPrologue( ze_device_handle_t hDevice, ze_device_properties_t* pDeviceProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetPropertiesEpilogue( ze_device_handle_t hDevice, ze_device_properties_t* pDeviceProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetPropertiesEpilogue( ze_device_handle_t hDevice, ze_device_properties_t* pDeviceProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetComputePropertiesPrologue( ze_device_handle_t hDevice, ze_device_compute_properties_t* pComputeProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetComputePropertiesEpilogue( ze_device_handle_t hDevice, ze_device_compute_properties_t* pComputeProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetComputePropertiesEpilogue( ze_device_handle_t hDevice, ze_device_compute_properties_t* pComputeProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetModulePropertiesPrologue( ze_device_handle_t hDevice, ze_device_module_properties_t* pModuleProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetModulePropertiesEpilogue( ze_device_handle_t hDevice, ze_device_module_properties_t* pModuleProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetModulePropertiesEpilogue( ze_device_handle_t hDevice, ze_device_module_properties_t* pModuleProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetCommandQueueGroupPropertiesPrologue( ze_device_handle_t hDevice, uint32_t* pCount, ze_command_queue_group_properties_t* pCommandQueueGroupProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetCommandQueueGroupPropertiesEpilogue( ze_device_handle_t hDevice, uint32_t* pCount, ze_command_queue_group_properties_t* pCommandQueueGroupProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetCommandQueueGroupPropertiesEpilogue( ze_device_handle_t hDevice, uint32_t* pCount, ze_command_queue_group_properties_t* pCommandQueueGroupProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetMemoryPropertiesPrologue( ze_device_handle_t hDevice, uint32_t* pCount, ze_device_memory_properties_t* pMemProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetMemoryPropertiesEpilogue( ze_device_handle_t hDevice, uint32_t* pCount, ze_device_memory_properties_t* pMemProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetMemoryPropertiesEpilogue( ze_device_handle_t hDevice, uint32_t* pCount, ze_device_memory_properties_t* pMemProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetMemoryAccessPropertiesPrologue( ze_device_handle_t hDevice, ze_device_memory_access_properties_t* pMemAccessProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetMemoryAccessPropertiesEpilogue( ze_device_handle_t hDevice, ze_device_memory_access_properties_t* pMemAccessProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetMemoryAccessPropertiesEpilogue( ze_device_handle_t hDevice, ze_device_memory_access_properties_t* pMemAccessProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetCachePropertiesPrologue( ze_device_handle_t hDevice, uint32_t* pCount, ze_device_cache_properties_t* pCacheProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetCachePropertiesEpilogue( ze_device_handle_t hDevice, uint32_t* pCount, ze_device_cache_properties_t* pCacheProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetCachePropertiesEpilogue( ze_device_handle_t hDevice, uint32_t* pCount, ze_device_cache_properties_t* pCacheProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetImagePropertiesPrologue( ze_device_handle_t hDevice, ze_device_image_properties_t* pImageProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetImagePropertiesEpilogue( ze_device_handle_t hDevice, ze_device_image_properties_t* pImageProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetImagePropertiesEpilogue( ze_device_handle_t hDevice, ze_device_image_properties_t* pImageProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetExternalMemoryPropertiesPrologue( ze_device_handle_t hDevice, ze_device_external_memory_properties_t* pExternalMemoryProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetExternalMemoryPropertiesEpilogue( ze_device_handle_t hDevice, ze_device_external_memory_properties_t* pExternalMemoryProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetExternalMemoryPropertiesEpilogue( ze_device_handle_t hDevice, ze_device_external_memory_properties_t* pExternalMemoryProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetP2PPropertiesPrologue( ze_device_handle_t hDevice, ze_device_handle_t hPeerDevice, ze_device_p2p_properties_t* pP2PProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetP2PPropertiesEpilogue( ze_device_handle_t hDevice, ze_device_handle_t hPeerDevice, ze_device_p2p_properties_t* pP2PProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetP2PPropertiesEpilogue( ze_device_handle_t hDevice, ze_device_handle_t hPeerDevice, ze_device_p2p_properties_t* pP2PProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceCanAccessPeerPrologue( ze_device_handle_t hDevice, ze_device_handle_t hPeerDevice, ze_bool_t* value ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceCanAccessPeerEpilogue( ze_device_handle_t hDevice, ze_device_handle_t hPeerDevice, ze_bool_t* value ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceCanAccessPeerEpilogue( ze_device_handle_t hDevice, ze_device_handle_t hPeerDevice, ze_bool_t* value , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetStatusPrologue( ze_device_handle_t hDevice ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetStatusEpilogue( ze_device_handle_t hDevice ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetStatusEpilogue( ze_device_handle_t hDevice , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetGlobalTimestampsPrologue( ze_device_handle_t hDevice, uint64_t* hostTimestamp, uint64_t* deviceTimestamp ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetGlobalTimestampsEpilogue( ze_device_handle_t hDevice, uint64_t* hostTimestamp, uint64_t* deviceTimestamp ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetGlobalTimestampsEpilogue( ze_device_handle_t hDevice, uint64_t* hostTimestamp, uint64_t* deviceTimestamp , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeContextCreatePrologue( ze_driver_handle_t hDriver, const ze_context_desc_t* desc, ze_context_handle_t* phContext ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeContextCreateEpilogue( ze_driver_handle_t hDriver, const ze_context_desc_t* desc, ze_context_handle_t* phContext ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeContextCreateEpilogue( ze_driver_handle_t hDriver, const ze_context_desc_t* desc, ze_context_handle_t* phContext , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeContextCreateExPrologue( ze_driver_handle_t hDriver, const ze_context_desc_t* desc, uint32_t numDevices, ze_device_handle_t* phDevices, ze_context_handle_t* phContext ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeContextCreateExEpilogue( ze_driver_handle_t hDriver, const ze_context_desc_t* desc, uint32_t numDevices, ze_device_handle_t* phDevices, ze_context_handle_t* phContext ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeContextCreateExEpilogue( ze_driver_handle_t hDriver, const ze_context_desc_t* desc, uint32_t numDevices, ze_device_handle_t* phDevices, ze_context_handle_t* phContext , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeContextDestroyPrologue( ze_context_handle_t hContext ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeContextDestroyEpilogue( ze_context_handle_t hContext ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeContextDestroyEpilogue( ze_context_handle_t hContext , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeContextGetStatusPrologue( ze_context_handle_t hContext ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeContextGetStatusEpilogue( ze_context_handle_t hContext ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeContextGetStatusEpilogue( ze_context_handle_t hContext , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandQueueCreatePrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_queue_desc_t* desc, ze_command_queue_handle_t* phCommandQueue ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandQueueCreateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_queue_desc_t* desc, ze_command_queue_handle_t* phCommandQueue ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandQueueCreateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_queue_desc_t* desc, ze_command_queue_handle_t* phCommandQueue , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandQueueDestroyPrologue( ze_command_queue_handle_t hCommandQueue ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandQueueDestroyEpilogue( ze_command_queue_handle_t hCommandQueue ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandQueueDestroyEpilogue( ze_command_queue_handle_t hCommandQueue , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandQueueExecuteCommandListsPrologue( ze_command_queue_handle_t hCommandQueue, uint32_t numCommandLists, ze_command_list_handle_t* phCommandLists, ze_fence_handle_t hFence ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandQueueExecuteCommandListsEpilogue( ze_command_queue_handle_t hCommandQueue, uint32_t numCommandLists, ze_command_list_handle_t* phCommandLists, ze_fence_handle_t hFence ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandQueueExecuteCommandListsEpilogue( ze_command_queue_handle_t hCommandQueue, uint32_t numCommandLists, ze_command_list_handle_t* phCommandLists, ze_fence_handle_t hFence , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandQueueSynchronizePrologue( ze_command_queue_handle_t hCommandQueue, uint64_t timeout ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandQueueSynchronizeEpilogue( ze_command_queue_handle_t hCommandQueue, uint64_t timeout ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandQueueSynchronizeEpilogue( ze_command_queue_handle_t hCommandQueue, uint64_t timeout , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandQueueGetOrdinalPrologue( ze_command_queue_handle_t hCommandQueue, uint32_t* pOrdinal ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandQueueGetOrdinalEpilogue( ze_command_queue_handle_t hCommandQueue, uint32_t* pOrdinal ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandQueueGetOrdinalEpilogue( ze_command_queue_handle_t hCommandQueue, uint32_t* pOrdinal , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandQueueGetIndexPrologue( ze_command_queue_handle_t hCommandQueue, uint32_t* pIndex ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandQueueGetIndexEpilogue( ze_command_queue_handle_t hCommandQueue, uint32_t* pIndex ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandQueueGetIndexEpilogue( ze_command_queue_handle_t hCommandQueue, uint32_t* pIndex , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListCreatePrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_list_desc_t* desc, ze_command_list_handle_t* phCommandList ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListCreateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_list_desc_t* desc, ze_command_list_handle_t* phCommandList ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListCreateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_list_desc_t* desc, ze_command_list_handle_t* phCommandList , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListCreateImmediatePrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_queue_desc_t* altdesc, ze_command_list_handle_t* phCommandList ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListCreateImmediateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_queue_desc_t* altdesc, ze_command_list_handle_t* phCommandList ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListCreateImmediateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_queue_desc_t* altdesc, ze_command_list_handle_t* phCommandList , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListDestroyPrologue( ze_command_list_handle_t hCommandList ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListDestroyEpilogue( ze_command_list_handle_t hCommandList ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListDestroyEpilogue( ze_command_list_handle_t hCommandList , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListClosePrologue( ze_command_list_handle_t hCommandList ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListCloseEpilogue( ze_command_list_handle_t hCommandList ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListCloseEpilogue( ze_command_list_handle_t hCommandList , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListResetPrologue( ze_command_list_handle_t hCommandList ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListResetEpilogue( ze_command_list_handle_t hCommandList ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListResetEpilogue( ze_command_list_handle_t hCommandList , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendWriteGlobalTimestampPrologue( ze_command_list_handle_t hCommandList, uint64_t* dstptr, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendWriteGlobalTimestampEpilogue( ze_command_list_handle_t hCommandList, uint64_t* dstptr, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendWriteGlobalTimestampEpilogue( ze_command_list_handle_t hCommandList, uint64_t* dstptr, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListHostSynchronizePrologue( ze_command_list_handle_t hCommandList, uint64_t timeout ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListHostSynchronizeEpilogue( ze_command_list_handle_t hCommandList, uint64_t timeout ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListHostSynchronizeEpilogue( ze_command_list_handle_t hCommandList, uint64_t timeout , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListGetDeviceHandlePrologue( ze_command_list_handle_t hCommandList, ze_device_handle_t* phDevice ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListGetDeviceHandleEpilogue( ze_command_list_handle_t hCommandList, ze_device_handle_t* phDevice ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListGetDeviceHandleEpilogue( ze_command_list_handle_t hCommandList, ze_device_handle_t* phDevice , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListGetContextHandlePrologue( ze_command_list_handle_t hCommandList, ze_context_handle_t* phContext ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListGetContextHandleEpilogue( ze_command_list_handle_t hCommandList, ze_context_handle_t* phContext ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListGetContextHandleEpilogue( ze_command_list_handle_t hCommandList, ze_context_handle_t* phContext , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListGetOrdinalPrologue( ze_command_list_handle_t hCommandList, uint32_t* pOrdinal ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListGetOrdinalEpilogue( ze_command_list_handle_t hCommandList, uint32_t* pOrdinal ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListGetOrdinalEpilogue( ze_command_list_handle_t hCommandList, uint32_t* pOrdinal , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListImmediateGetIndexPrologue( ze_command_list_handle_t hCommandListImmediate, uint32_t* pIndex ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListImmediateGetIndexEpilogue( ze_command_list_handle_t hCommandListImmediate, uint32_t* pIndex ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListImmediateGetIndexEpilogue( ze_command_list_handle_t hCommandListImmediate, uint32_t* pIndex , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListIsImmediatePrologue( ze_command_list_handle_t hCommandList, ze_bool_t* pIsImmediate ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListIsImmediateEpilogue( ze_command_list_handle_t hCommandList, ze_bool_t* pIsImmediate ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListIsImmediateEpilogue( ze_command_list_handle_t hCommandList, ze_bool_t* pIsImmediate , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendBarrierPrologue( ze_command_list_handle_t hCommandList, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendBarrierEpilogue( ze_command_list_handle_t hCommandList, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendBarrierEpilogue( ze_command_list_handle_t hCommandList, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendMemoryRangesBarrierPrologue( ze_command_list_handle_t hCommandList, uint32_t numRanges, const size_t* pRangeSizes, const void** pRanges, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendMemoryRangesBarrierEpilogue( ze_command_list_handle_t hCommandList, uint32_t numRanges, const size_t* pRangeSizes, const void** pRanges, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendMemoryRangesBarrierEpilogue( ze_command_list_handle_t hCommandList, uint32_t numRanges, const size_t* pRangeSizes, const void** pRanges, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeContextSystemBarrierPrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeContextSystemBarrierEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeContextSystemBarrierEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendMemoryCopyPrologue( ze_command_list_handle_t hCommandList, void* dstptr, const void* srcptr, size_t size, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendMemoryCopyEpilogue( ze_command_list_handle_t hCommandList, void* dstptr, const void* srcptr, size_t size, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendMemoryCopyEpilogue( ze_command_list_handle_t hCommandList, void* dstptr, const void* srcptr, size_t size, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendMemoryFillPrologue( ze_command_list_handle_t hCommandList, void* ptr, const void* pattern, size_t pattern_size, size_t size, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendMemoryFillEpilogue( ze_command_list_handle_t hCommandList, void* ptr, const void* pattern, size_t pattern_size, size_t size, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendMemoryFillEpilogue( ze_command_list_handle_t hCommandList, void* ptr, const void* pattern, size_t pattern_size, size_t size, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendMemoryCopyRegionPrologue( ze_command_list_handle_t hCommandList, void* dstptr, const ze_copy_region_t* dstRegion, uint32_t dstPitch, uint32_t dstSlicePitch, const void* srcptr, const ze_copy_region_t* srcRegion, uint32_t srcPitch, uint32_t srcSlicePitch, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendMemoryCopyRegionEpilogue( ze_command_list_handle_t hCommandList, void* dstptr, const ze_copy_region_t* dstRegion, uint32_t dstPitch, uint32_t dstSlicePitch, const void* srcptr, const ze_copy_region_t* srcRegion, uint32_t srcPitch, uint32_t srcSlicePitch, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendMemoryCopyRegionEpilogue( ze_command_list_handle_t hCommandList, void* dstptr, const ze_copy_region_t* dstRegion, uint32_t dstPitch, uint32_t dstSlicePitch, const void* srcptr, const ze_copy_region_t* srcRegion, uint32_t srcPitch, uint32_t srcSlicePitch, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendMemoryCopyFromContextPrologue( ze_command_list_handle_t hCommandList, void* dstptr, ze_context_handle_t hContextSrc, const void* srcptr, size_t size, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendMemoryCopyFromContextEpilogue( ze_command_list_handle_t hCommandList, void* dstptr, ze_context_handle_t hContextSrc, const void* srcptr, size_t size, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendMemoryCopyFromContextEpilogue( ze_command_list_handle_t hCommandList, void* dstptr, ze_context_handle_t hContextSrc, const void* srcptr, size_t size, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendImageCopyPrologue( ze_command_list_handle_t hCommandList, ze_image_handle_t hDstImage, ze_image_handle_t hSrcImage, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendImageCopyEpilogue( ze_command_list_handle_t hCommandList, ze_image_handle_t hDstImage, ze_image_handle_t hSrcImage, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendImageCopyEpilogue( ze_command_list_handle_t hCommandList, ze_image_handle_t hDstImage, ze_image_handle_t hSrcImage, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendImageCopyRegionPrologue( ze_command_list_handle_t hCommandList, ze_image_handle_t hDstImage, ze_image_handle_t hSrcImage, const ze_image_region_t* pDstRegion, const ze_image_region_t* pSrcRegion, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendImageCopyRegionEpilogue( ze_command_list_handle_t hCommandList, ze_image_handle_t hDstImage, ze_image_handle_t hSrcImage, const ze_image_region_t* pDstRegion, const ze_image_region_t* pSrcRegion, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendImageCopyRegionEpilogue( ze_command_list_handle_t hCommandList, ze_image_handle_t hDstImage, ze_image_handle_t hSrcImage, const ze_image_region_t* pDstRegion, const ze_image_region_t* pSrcRegion, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendImageCopyToMemoryPrologue( ze_command_list_handle_t hCommandList, void* dstptr, ze_image_handle_t hSrcImage, const ze_image_region_t* pSrcRegion, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendImageCopyToMemoryEpilogue( ze_command_list_handle_t hCommandList, void* dstptr, ze_image_handle_t hSrcImage, const ze_image_region_t* pSrcRegion, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendImageCopyToMemoryEpilogue( ze_command_list_handle_t hCommandList, void* dstptr, ze_image_handle_t hSrcImage, const ze_image_region_t* pSrcRegion, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendImageCopyFromMemoryPrologue( ze_command_list_handle_t hCommandList, ze_image_handle_t hDstImage, const void* srcptr, const ze_image_region_t* pDstRegion, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendImageCopyFromMemoryEpilogue( ze_command_list_handle_t hCommandList, ze_image_handle_t hDstImage, const void* srcptr, const ze_image_region_t* pDstRegion, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendImageCopyFromMemoryEpilogue( ze_command_list_handle_t hCommandList, ze_image_handle_t hDstImage, const void* srcptr, const ze_image_region_t* pDstRegion, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendMemoryPrefetchPrologue( ze_command_list_handle_t hCommandList, const void* ptr, size_t size ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendMemoryPrefetchEpilogue( ze_command_list_handle_t hCommandList, const void* ptr, size_t size ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendMemoryPrefetchEpilogue( ze_command_list_handle_t hCommandList, const void* ptr, size_t size , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendMemAdvisePrologue( ze_command_list_handle_t hCommandList, ze_device_handle_t hDevice, const void* ptr, size_t size, ze_memory_advice_t advice ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendMemAdviseEpilogue( ze_command_list_handle_t hCommandList, ze_device_handle_t hDevice, const void* ptr, size_t size, ze_memory_advice_t advice ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendMemAdviseEpilogue( ze_command_list_handle_t hCommandList, ze_device_handle_t hDevice, const void* ptr, size_t size, ze_memory_advice_t advice , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventPoolCreatePrologue( ze_context_handle_t hContext, const ze_event_pool_desc_t* desc, uint32_t numDevices, ze_device_handle_t* phDevices, ze_event_pool_handle_t* phEventPool ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventPoolCreateEpilogue( ze_context_handle_t hContext, const ze_event_pool_desc_t* desc, uint32_t numDevices, ze_device_handle_t* phDevices, ze_event_pool_handle_t* phEventPool ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventPoolCreateEpilogue( ze_context_handle_t hContext, const ze_event_pool_desc_t* desc, uint32_t numDevices, ze_device_handle_t* phDevices, ze_event_pool_handle_t* phEventPool , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventPoolDestroyPrologue( ze_event_pool_handle_t hEventPool ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventPoolDestroyEpilogue( ze_event_pool_handle_t hEventPool ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventPoolDestroyEpilogue( ze_event_pool_handle_t hEventPool , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventCreatePrologue( ze_event_pool_handle_t hEventPool, const ze_event_desc_t* desc, ze_event_handle_t* phEvent ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventCreateEpilogue( ze_event_pool_handle_t hEventPool, const ze_event_desc_t* desc, ze_event_handle_t* phEvent ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventCreateEpilogue( ze_event_pool_handle_t hEventPool, const ze_event_desc_t* desc, ze_event_handle_t* phEvent , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventDestroyPrologue( ze_event_handle_t hEvent ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventDestroyEpilogue( ze_event_handle_t hEvent ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventDestroyEpilogue( ze_event_handle_t hEvent , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventPoolGetIpcHandlePrologue( ze_event_pool_handle_t hEventPool, ze_ipc_event_pool_handle_t* phIpc ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventPoolGetIpcHandleEpilogue( ze_event_pool_handle_t hEventPool, ze_ipc_event_pool_handle_t* phIpc ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventPoolGetIpcHandleEpilogue( ze_event_pool_handle_t hEventPool, ze_ipc_event_pool_handle_t* phIpc , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventPoolPutIpcHandlePrologue( ze_context_handle_t hContext, ze_ipc_event_pool_handle_t hIpc ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventPoolPutIpcHandleEpilogue( ze_context_handle_t hContext, ze_ipc_event_pool_handle_t hIpc ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventPoolPutIpcHandleEpilogue( ze_context_handle_t hContext, ze_ipc_event_pool_handle_t hIpc , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventPoolOpenIpcHandlePrologue( ze_context_handle_t hContext, ze_ipc_event_pool_handle_t hIpc, ze_event_pool_handle_t* phEventPool ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventPoolOpenIpcHandleEpilogue( ze_context_handle_t hContext, ze_ipc_event_pool_handle_t hIpc, ze_event_pool_handle_t* phEventPool ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventPoolOpenIpcHandleEpilogue( ze_context_handle_t hContext, ze_ipc_event_pool_handle_t hIpc, ze_event_pool_handle_t* phEventPool , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventPoolCloseIpcHandlePrologue( ze_event_pool_handle_t hEventPool ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventPoolCloseIpcHandleEpilogue( ze_event_pool_handle_t hEventPool ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventPoolCloseIpcHandleEpilogue( ze_event_pool_handle_t hEventPool , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendSignalEventPrologue( ze_command_list_handle_t hCommandList, ze_event_handle_t hEvent ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendSignalEventEpilogue( ze_command_list_handle_t hCommandList, ze_event_handle_t hEvent ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendSignalEventEpilogue( ze_command_list_handle_t hCommandList, ze_event_handle_t hEvent , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendWaitOnEventsPrologue( ze_command_list_handle_t hCommandList, uint32_t numEvents, ze_event_handle_t* phEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendWaitOnEventsEpilogue( ze_command_list_handle_t hCommandList, uint32_t numEvents, ze_event_handle_t* phEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendWaitOnEventsEpilogue( ze_command_list_handle_t hCommandList, uint32_t numEvents, ze_event_handle_t* phEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventHostSignalPrologue( ze_event_handle_t hEvent ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventHostSignalEpilogue( ze_event_handle_t hEvent ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventHostSignalEpilogue( ze_event_handle_t hEvent , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventHostSynchronizePrologue( ze_event_handle_t hEvent, uint64_t timeout ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventHostSynchronizeEpilogue( ze_event_handle_t hEvent, uint64_t timeout ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventHostSynchronizeEpilogue( ze_event_handle_t hEvent, uint64_t timeout , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventQueryStatusPrologue( ze_event_handle_t hEvent ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventQueryStatusEpilogue( ze_event_handle_t hEvent ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventQueryStatusEpilogue( ze_event_handle_t hEvent , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendEventResetPrologue( ze_command_list_handle_t hCommandList, ze_event_handle_t hEvent ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendEventResetEpilogue( ze_command_list_handle_t hCommandList, ze_event_handle_t hEvent ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendEventResetEpilogue( ze_command_list_handle_t hCommandList, ze_event_handle_t hEvent , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventHostResetPrologue( ze_event_handle_t hEvent ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventHostResetEpilogue( ze_event_handle_t hEvent ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventHostResetEpilogue( ze_event_handle_t hEvent , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventQueryKernelTimestampPrologue( ze_event_handle_t hEvent, ze_kernel_timestamp_result_t* dstptr ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventQueryKernelTimestampEpilogue( ze_event_handle_t hEvent, ze_kernel_timestamp_result_t* dstptr ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventQueryKernelTimestampEpilogue( ze_event_handle_t hEvent, ze_kernel_timestamp_result_t* dstptr , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendQueryKernelTimestampsPrologue( ze_command_list_handle_t hCommandList, uint32_t numEvents, ze_event_handle_t* phEvents, void* dstptr, const size_t* pOffsets, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendQueryKernelTimestampsEpilogue( ze_command_list_handle_t hCommandList, uint32_t numEvents, ze_event_handle_t* phEvents, void* dstptr, const size_t* pOffsets, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendQueryKernelTimestampsEpilogue( ze_command_list_handle_t hCommandList, uint32_t numEvents, ze_event_handle_t* phEvents, void* dstptr, const size_t* pOffsets, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventGetEventPoolPrologue( ze_event_handle_t hEvent, ze_event_pool_handle_t* phEventPool ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventGetEventPoolEpilogue( ze_event_handle_t hEvent, ze_event_pool_handle_t* phEventPool ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventGetEventPoolEpilogue( ze_event_handle_t hEvent, ze_event_pool_handle_t* phEventPool , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventGetSignalScopePrologue( ze_event_handle_t hEvent, ze_event_scope_flags_t* pSignalScope ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventGetSignalScopeEpilogue( ze_event_handle_t hEvent, ze_event_scope_flags_t* pSignalScope ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventGetSignalScopeEpilogue( ze_event_handle_t hEvent, ze_event_scope_flags_t* pSignalScope , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventGetWaitScopePrologue( ze_event_handle_t hEvent, ze_event_scope_flags_t* pWaitScope ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventGetWaitScopeEpilogue( ze_event_handle_t hEvent, ze_event_scope_flags_t* pWaitScope ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventGetWaitScopeEpilogue( ze_event_handle_t hEvent, ze_event_scope_flags_t* pWaitScope , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventPoolGetContextHandlePrologue( ze_event_pool_handle_t hEventPool, ze_context_handle_t* phContext ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventPoolGetContextHandleEpilogue( ze_event_pool_handle_t hEventPool, ze_context_handle_t* phContext ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventPoolGetContextHandleEpilogue( ze_event_pool_handle_t hEventPool, ze_context_handle_t* phContext , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventPoolGetFlagsPrologue( ze_event_pool_handle_t hEventPool, ze_event_pool_flags_t* pFlags ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventPoolGetFlagsEpilogue( ze_event_pool_handle_t hEventPool, ze_event_pool_flags_t* pFlags ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventPoolGetFlagsEpilogue( ze_event_pool_handle_t hEventPool, ze_event_pool_flags_t* pFlags , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeFenceCreatePrologue( ze_command_queue_handle_t hCommandQueue, const ze_fence_desc_t* desc, ze_fence_handle_t* phFence ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeFenceCreateEpilogue( ze_command_queue_handle_t hCommandQueue, const ze_fence_desc_t* desc, ze_fence_handle_t* phFence ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeFenceCreateEpilogue( ze_command_queue_handle_t hCommandQueue, const ze_fence_desc_t* desc, ze_fence_handle_t* phFence , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeFenceDestroyPrologue( ze_fence_handle_t hFence ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeFenceDestroyEpilogue( ze_fence_handle_t hFence ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeFenceDestroyEpilogue( ze_fence_handle_t hFence , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeFenceHostSynchronizePrologue( ze_fence_handle_t hFence, uint64_t timeout ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeFenceHostSynchronizeEpilogue( ze_fence_handle_t hFence, uint64_t timeout ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeFenceHostSynchronizeEpilogue( ze_fence_handle_t hFence, uint64_t timeout , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeFenceQueryStatusPrologue( ze_fence_handle_t hFence ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeFenceQueryStatusEpilogue( ze_fence_handle_t hFence ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeFenceQueryStatusEpilogue( ze_fence_handle_t hFence , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeFenceResetPrologue( ze_fence_handle_t hFence ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeFenceResetEpilogue( ze_fence_handle_t hFence ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeFenceResetEpilogue( ze_fence_handle_t hFence , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeImageGetPropertiesPrologue( ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_properties_t* pImageProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeImageGetPropertiesEpilogue( ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_properties_t* pImageProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeImageGetPropertiesEpilogue( ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_properties_t* pImageProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeImageCreatePrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_handle_t* phImage ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeImageCreateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_handle_t* phImage ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeImageCreateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_handle_t* phImage , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeImageDestroyPrologue( ze_image_handle_t hImage ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeImageDestroyEpilogue( ze_image_handle_t hImage ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeImageDestroyEpilogue( ze_image_handle_t hImage , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemAllocSharedPrologue( ze_context_handle_t hContext, const ze_device_mem_alloc_desc_t* device_desc, const ze_host_mem_alloc_desc_t* host_desc, size_t size, size_t alignment, ze_device_handle_t hDevice, void** pptr ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemAllocSharedEpilogue( ze_context_handle_t hContext, const ze_device_mem_alloc_desc_t* device_desc, const ze_host_mem_alloc_desc_t* host_desc, size_t size, size_t alignment, ze_device_handle_t hDevice, void** pptr ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemAllocSharedEpilogue( ze_context_handle_t hContext, const ze_device_mem_alloc_desc_t* device_desc, const ze_host_mem_alloc_desc_t* host_desc, size_t size, size_t alignment, ze_device_handle_t hDevice, void** pptr , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemAllocDevicePrologue( ze_context_handle_t hContext, const ze_device_mem_alloc_desc_t* device_desc, size_t size, size_t alignment, ze_device_handle_t hDevice, void** pptr ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemAllocDeviceEpilogue( ze_context_handle_t hContext, const ze_device_mem_alloc_desc_t* device_desc, size_t size, size_t alignment, ze_device_handle_t hDevice, void** pptr ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemAllocDeviceEpilogue( ze_context_handle_t hContext, const ze_device_mem_alloc_desc_t* device_desc, size_t size, size_t alignment, ze_device_handle_t hDevice, void** pptr , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemAllocHostPrologue( ze_context_handle_t hContext, const ze_host_mem_alloc_desc_t* host_desc, size_t size, size_t alignment, void** pptr ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemAllocHostEpilogue( ze_context_handle_t hContext, const ze_host_mem_alloc_desc_t* host_desc, size_t size, size_t alignment, void** pptr ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemAllocHostEpilogue( ze_context_handle_t hContext, const ze_host_mem_alloc_desc_t* host_desc, size_t size, size_t alignment, void** pptr , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemFreePrologue( ze_context_handle_t hContext, void* ptr ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemFreeEpilogue( ze_context_handle_t hContext, void* ptr ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemFreeEpilogue( ze_context_handle_t hContext, void* ptr , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemGetAllocPropertiesPrologue( ze_context_handle_t hContext, const void* ptr, ze_memory_allocation_properties_t* pMemAllocProperties, ze_device_handle_t* phDevice ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemGetAllocPropertiesEpilogue( ze_context_handle_t hContext, const void* ptr, ze_memory_allocation_properties_t* pMemAllocProperties, ze_device_handle_t* phDevice ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemGetAllocPropertiesEpilogue( ze_context_handle_t hContext, const void* ptr, ze_memory_allocation_properties_t* pMemAllocProperties, ze_device_handle_t* phDevice , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemGetAddressRangePrologue( ze_context_handle_t hContext, const void* ptr, void** pBase, size_t* pSize ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemGetAddressRangeEpilogue( ze_context_handle_t hContext, const void* ptr, void** pBase, size_t* pSize ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemGetAddressRangeEpilogue( ze_context_handle_t hContext, const void* ptr, void** pBase, size_t* pSize , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemGetIpcHandlePrologue( ze_context_handle_t hContext, const void* ptr, ze_ipc_mem_handle_t* pIpcHandle ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemGetIpcHandleEpilogue( ze_context_handle_t hContext, const void* ptr, ze_ipc_mem_handle_t* pIpcHandle ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemGetIpcHandleEpilogue( ze_context_handle_t hContext, const void* ptr, ze_ipc_mem_handle_t* pIpcHandle , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemGetIpcHandleFromFileDescriptorExpPrologue( ze_context_handle_t hContext, uint64_t handle, ze_ipc_mem_handle_t* pIpcHandle ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemGetIpcHandleFromFileDescriptorExpEpilogue( ze_context_handle_t hContext, uint64_t handle, ze_ipc_mem_handle_t* pIpcHandle ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemGetIpcHandleFromFileDescriptorExpEpilogue( ze_context_handle_t hContext, uint64_t handle, ze_ipc_mem_handle_t* pIpcHandle , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemGetFileDescriptorFromIpcHandleExpPrologue( ze_context_handle_t hContext, ze_ipc_mem_handle_t ipcHandle, uint64_t* pHandle ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemGetFileDescriptorFromIpcHandleExpEpilogue( ze_context_handle_t hContext, ze_ipc_mem_handle_t ipcHandle, uint64_t* pHandle ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemGetFileDescriptorFromIpcHandleExpEpilogue( ze_context_handle_t hContext, ze_ipc_mem_handle_t ipcHandle, uint64_t* pHandle , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemPutIpcHandlePrologue( ze_context_handle_t hContext, ze_ipc_mem_handle_t handle ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemPutIpcHandleEpilogue( ze_context_handle_t hContext, ze_ipc_mem_handle_t handle ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemPutIpcHandleEpilogue( ze_context_handle_t hContext, ze_ipc_mem_handle_t handle , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemOpenIpcHandlePrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, ze_ipc_mem_handle_t handle, ze_ipc_memory_flags_t flags, void** pptr ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemOpenIpcHandleEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, ze_ipc_mem_handle_t handle, ze_ipc_memory_flags_t flags, void** pptr ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemOpenIpcHandleEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, ze_ipc_mem_handle_t handle, ze_ipc_memory_flags_t flags, void** pptr , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemCloseIpcHandlePrologue( ze_context_handle_t hContext, const void* ptr ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemCloseIpcHandleEpilogue( ze_context_handle_t hContext, const void* ptr ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemCloseIpcHandleEpilogue( ze_context_handle_t hContext, const void* ptr , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemSetAtomicAccessAttributeExpPrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const void* ptr, size_t size, ze_memory_atomic_attr_exp_flags_t attr ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemSetAtomicAccessAttributeExpEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const void* ptr, size_t size, ze_memory_atomic_attr_exp_flags_t attr ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemSetAtomicAccessAttributeExpEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const void* ptr, size_t size, ze_memory_atomic_attr_exp_flags_t attr , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemGetAtomicAccessAttributeExpPrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const void* ptr, size_t size, ze_memory_atomic_attr_exp_flags_t* pAttr ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemGetAtomicAccessAttributeExpEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const void* ptr, size_t size, ze_memory_atomic_attr_exp_flags_t* pAttr ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemGetAtomicAccessAttributeExpEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const void* ptr, size_t size, ze_memory_atomic_attr_exp_flags_t* pAttr , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeModuleCreatePrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_module_desc_t* desc, ze_module_handle_t* phModule, ze_module_build_log_handle_t* phBuildLog ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeModuleCreateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_module_desc_t* desc, ze_module_handle_t* phModule, ze_module_build_log_handle_t* phBuildLog ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeModuleCreateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_module_desc_t* desc, ze_module_handle_t* phModule, ze_module_build_log_handle_t* phBuildLog , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeModuleDestroyPrologue( ze_module_handle_t hModule ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeModuleDestroyEpilogue( ze_module_handle_t hModule ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeModuleDestroyEpilogue( ze_module_handle_t hModule , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeModuleDynamicLinkPrologue( uint32_t numModules, ze_module_handle_t* phModules, ze_module_build_log_handle_t* phLinkLog ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeModuleDynamicLinkEpilogue( uint32_t numModules, ze_module_handle_t* phModules, ze_module_build_log_handle_t* phLinkLog ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeModuleDynamicLinkEpilogue( uint32_t numModules, ze_module_handle_t* phModules, ze_module_build_log_handle_t* phLinkLog , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeModuleBuildLogDestroyPrologue( ze_module_build_log_handle_t hModuleBuildLog ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeModuleBuildLogDestroyEpilogue( ze_module_build_log_handle_t hModuleBuildLog ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeModuleBuildLogDestroyEpilogue( ze_module_build_log_handle_t hModuleBuildLog , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeModuleBuildLogGetStringPrologue( ze_module_build_log_handle_t hModuleBuildLog, size_t* pSize, char* pBuildLog ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeModuleBuildLogGetStringEpilogue( ze_module_build_log_handle_t hModuleBuildLog, size_t* pSize, char* pBuildLog ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeModuleBuildLogGetStringEpilogue( ze_module_build_log_handle_t hModuleBuildLog, size_t* pSize, char* pBuildLog , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeModuleGetNativeBinaryPrologue( ze_module_handle_t hModule, size_t* pSize, uint8_t* pModuleNativeBinary ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeModuleGetNativeBinaryEpilogue( ze_module_handle_t hModule, size_t* pSize, uint8_t* pModuleNativeBinary ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeModuleGetNativeBinaryEpilogue( ze_module_handle_t hModule, size_t* pSize, uint8_t* pModuleNativeBinary , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeModuleGetGlobalPointerPrologue( ze_module_handle_t hModule, const char* pGlobalName, size_t* pSize, void** pptr ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeModuleGetGlobalPointerEpilogue( ze_module_handle_t hModule, const char* pGlobalName, size_t* pSize, void** pptr ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeModuleGetGlobalPointerEpilogue( ze_module_handle_t hModule, const char* pGlobalName, size_t* pSize, void** pptr , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeModuleGetKernelNamesPrologue( ze_module_handle_t hModule, uint32_t* pCount, const char** pNames ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeModuleGetKernelNamesEpilogue( ze_module_handle_t hModule, uint32_t* pCount, const char** pNames ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeModuleGetKernelNamesEpilogue( ze_module_handle_t hModule, uint32_t* pCount, const char** pNames , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeModuleGetPropertiesPrologue( ze_module_handle_t hModule, ze_module_properties_t* pModuleProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeModuleGetPropertiesEpilogue( ze_module_handle_t hModule, ze_module_properties_t* pModuleProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeModuleGetPropertiesEpilogue( ze_module_handle_t hModule, ze_module_properties_t* pModuleProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelCreatePrologue( ze_module_handle_t hModule, const ze_kernel_desc_t* desc, ze_kernel_handle_t* phKernel ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelCreateEpilogue( ze_module_handle_t hModule, const ze_kernel_desc_t* desc, ze_kernel_handle_t* phKernel ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelCreateEpilogue( ze_module_handle_t hModule, const ze_kernel_desc_t* desc, ze_kernel_handle_t* phKernel , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelDestroyPrologue( ze_kernel_handle_t hKernel ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelDestroyEpilogue( ze_kernel_handle_t hKernel ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelDestroyEpilogue( ze_kernel_handle_t hKernel , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeModuleGetFunctionPointerPrologue( ze_module_handle_t hModule, const char* pFunctionName, void** pfnFunction ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeModuleGetFunctionPointerEpilogue( ze_module_handle_t hModule, const char* pFunctionName, void** pfnFunction ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeModuleGetFunctionPointerEpilogue( ze_module_handle_t hModule, const char* pFunctionName, void** pfnFunction , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelSetGroupSizePrologue( ze_kernel_handle_t hKernel, uint32_t groupSizeX, uint32_t groupSizeY, uint32_t groupSizeZ ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelSetGroupSizeEpilogue( ze_kernel_handle_t hKernel, uint32_t groupSizeX, uint32_t groupSizeY, uint32_t groupSizeZ ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelSetGroupSizeEpilogue( ze_kernel_handle_t hKernel, uint32_t groupSizeX, uint32_t groupSizeY, uint32_t groupSizeZ , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelSuggestGroupSizePrologue( ze_kernel_handle_t hKernel, uint32_t globalSizeX, uint32_t globalSizeY, uint32_t globalSizeZ, uint32_t* groupSizeX, uint32_t* groupSizeY, uint32_t* groupSizeZ ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelSuggestGroupSizeEpilogue( ze_kernel_handle_t hKernel, uint32_t globalSizeX, uint32_t globalSizeY, uint32_t globalSizeZ, uint32_t* groupSizeX, uint32_t* groupSizeY, uint32_t* groupSizeZ ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelSuggestGroupSizeEpilogue( ze_kernel_handle_t hKernel, uint32_t globalSizeX, uint32_t globalSizeY, uint32_t globalSizeZ, uint32_t* groupSizeX, uint32_t* groupSizeY, uint32_t* groupSizeZ , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelSuggestMaxCooperativeGroupCountPrologue( ze_kernel_handle_t hKernel, uint32_t* totalGroupCount ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelSuggestMaxCooperativeGroupCountEpilogue( ze_kernel_handle_t hKernel, uint32_t* totalGroupCount ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelSuggestMaxCooperativeGroupCountEpilogue( ze_kernel_handle_t hKernel, uint32_t* totalGroupCount , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelSetArgumentValuePrologue( ze_kernel_handle_t hKernel, uint32_t argIndex, size_t argSize, const void* pArgValue ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelSetArgumentValueEpilogue( ze_kernel_handle_t hKernel, uint32_t argIndex, size_t argSize, const void* pArgValue ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelSetArgumentValueEpilogue( ze_kernel_handle_t hKernel, uint32_t argIndex, size_t argSize, const void* pArgValue , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelSetIndirectAccessPrologue( ze_kernel_handle_t hKernel, ze_kernel_indirect_access_flags_t flags ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelSetIndirectAccessEpilogue( ze_kernel_handle_t hKernel, ze_kernel_indirect_access_flags_t flags ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelSetIndirectAccessEpilogue( ze_kernel_handle_t hKernel, ze_kernel_indirect_access_flags_t flags , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelGetIndirectAccessPrologue( ze_kernel_handle_t hKernel, ze_kernel_indirect_access_flags_t* pFlags ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelGetIndirectAccessEpilogue( ze_kernel_handle_t hKernel, ze_kernel_indirect_access_flags_t* pFlags ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelGetIndirectAccessEpilogue( ze_kernel_handle_t hKernel, ze_kernel_indirect_access_flags_t* pFlags , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelGetSourceAttributesPrologue( ze_kernel_handle_t hKernel, uint32_t* pSize, char** pString ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelGetSourceAttributesEpilogue( ze_kernel_handle_t hKernel, uint32_t* pSize, char** pString ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelGetSourceAttributesEpilogue( ze_kernel_handle_t hKernel, uint32_t* pSize, char** pString , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelSetCacheConfigPrologue( ze_kernel_handle_t hKernel, ze_cache_config_flags_t flags ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelSetCacheConfigEpilogue( ze_kernel_handle_t hKernel, ze_cache_config_flags_t flags ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelSetCacheConfigEpilogue( ze_kernel_handle_t hKernel, ze_cache_config_flags_t flags , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelGetPropertiesPrologue( ze_kernel_handle_t hKernel, ze_kernel_properties_t* pKernelProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelGetPropertiesEpilogue( ze_kernel_handle_t hKernel, ze_kernel_properties_t* pKernelProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelGetPropertiesEpilogue( ze_kernel_handle_t hKernel, ze_kernel_properties_t* pKernelProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelGetNamePrologue( ze_kernel_handle_t hKernel, size_t* pSize, char* pName ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelGetNameEpilogue( ze_kernel_handle_t hKernel, size_t* pSize, char* pName ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelGetNameEpilogue( ze_kernel_handle_t hKernel, size_t* pSize, char* pName , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendLaunchKernelPrologue( ze_command_list_handle_t hCommandList, ze_kernel_handle_t hKernel, const ze_group_count_t* pLaunchFuncArgs, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendLaunchKernelEpilogue( ze_command_list_handle_t hCommandList, ze_kernel_handle_t hKernel, const ze_group_count_t* pLaunchFuncArgs, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendLaunchKernelEpilogue( ze_command_list_handle_t hCommandList, ze_kernel_handle_t hKernel, const ze_group_count_t* pLaunchFuncArgs, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendLaunchCooperativeKernelPrologue( ze_command_list_handle_t hCommandList, ze_kernel_handle_t hKernel, const ze_group_count_t* pLaunchFuncArgs, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendLaunchCooperativeKernelEpilogue( ze_command_list_handle_t hCommandList, ze_kernel_handle_t hKernel, const ze_group_count_t* pLaunchFuncArgs, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendLaunchCooperativeKernelEpilogue( ze_command_list_handle_t hCommandList, ze_kernel_handle_t hKernel, const ze_group_count_t* pLaunchFuncArgs, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendLaunchKernelIndirectPrologue( ze_command_list_handle_t hCommandList, ze_kernel_handle_t hKernel, const ze_group_count_t* pLaunchArgumentsBuffer, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendLaunchKernelIndirectEpilogue( ze_command_list_handle_t hCommandList, ze_kernel_handle_t hKernel, const ze_group_count_t* pLaunchArgumentsBuffer, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendLaunchKernelIndirectEpilogue( ze_command_list_handle_t hCommandList, ze_kernel_handle_t hKernel, const ze_group_count_t* pLaunchArgumentsBuffer, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendLaunchMultipleKernelsIndirectPrologue( ze_command_list_handle_t hCommandList, uint32_t numKernels, ze_kernel_handle_t* phKernels, const uint32_t* pCountBuffer, const ze_group_count_t* pLaunchArgumentsBuffer, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendLaunchMultipleKernelsIndirectEpilogue( ze_command_list_handle_t hCommandList, uint32_t numKernels, ze_kernel_handle_t* phKernels, const uint32_t* pCountBuffer, const ze_group_count_t* pLaunchArgumentsBuffer, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendLaunchMultipleKernelsIndirectEpilogue( ze_command_list_handle_t hCommandList, uint32_t numKernels, ze_kernel_handle_t* phKernels, const uint32_t* pCountBuffer, const ze_group_count_t* pLaunchArgumentsBuffer, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeContextMakeMemoryResidentPrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, void* ptr, size_t size ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeContextMakeMemoryResidentEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, void* ptr, size_t size ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeContextMakeMemoryResidentEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, void* ptr, size_t size , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeContextEvictMemoryPrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, void* ptr, size_t size ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeContextEvictMemoryEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, void* ptr, size_t size ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeContextEvictMemoryEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, void* ptr, size_t size , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeContextMakeImageResidentPrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, ze_image_handle_t hImage ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeContextMakeImageResidentEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, ze_image_handle_t hImage ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeContextMakeImageResidentEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, ze_image_handle_t hImage , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeContextEvictImagePrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, ze_image_handle_t hImage ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeContextEvictImageEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, ze_image_handle_t hImage ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeContextEvictImageEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, ze_image_handle_t hImage , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeSamplerCreatePrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_sampler_desc_t* desc, ze_sampler_handle_t* phSampler ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeSamplerCreateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_sampler_desc_t* desc, ze_sampler_handle_t* phSampler ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeSamplerCreateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_sampler_desc_t* desc, ze_sampler_handle_t* phSampler , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeSamplerDestroyPrologue( ze_sampler_handle_t hSampler ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeSamplerDestroyEpilogue( ze_sampler_handle_t hSampler ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeSamplerDestroyEpilogue( ze_sampler_handle_t hSampler , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeVirtualMemReservePrologue( ze_context_handle_t hContext, const void* pStart, size_t size, void** pptr ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeVirtualMemReserveEpilogue( ze_context_handle_t hContext, const void* pStart, size_t size, void** pptr ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeVirtualMemReserveEpilogue( ze_context_handle_t hContext, const void* pStart, size_t size, void** pptr , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeVirtualMemFreePrologue( ze_context_handle_t hContext, const void* ptr, size_t size ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeVirtualMemFreeEpilogue( ze_context_handle_t hContext, const void* ptr, size_t size ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeVirtualMemFreeEpilogue( ze_context_handle_t hContext, const void* ptr, size_t size , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeVirtualMemQueryPageSizePrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, size_t size, size_t* pagesize ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeVirtualMemQueryPageSizeEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, size_t size, size_t* pagesize ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeVirtualMemQueryPageSizeEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, size_t size, size_t* pagesize , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zePhysicalMemCreatePrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, ze_physical_mem_desc_t* desc, ze_physical_mem_handle_t* phPhysicalMemory ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zePhysicalMemCreateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, ze_physical_mem_desc_t* desc, ze_physical_mem_handle_t* phPhysicalMemory ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zePhysicalMemCreateEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, ze_physical_mem_desc_t* desc, ze_physical_mem_handle_t* phPhysicalMemory , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zePhysicalMemDestroyPrologue( ze_context_handle_t hContext, ze_physical_mem_handle_t hPhysicalMemory ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zePhysicalMemDestroyEpilogue( ze_context_handle_t hContext, ze_physical_mem_handle_t hPhysicalMemory ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zePhysicalMemDestroyEpilogue( ze_context_handle_t hContext, ze_physical_mem_handle_t hPhysicalMemory , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeVirtualMemMapPrologue( ze_context_handle_t hContext, const void* ptr, size_t size, ze_physical_mem_handle_t hPhysicalMemory, size_t offset, ze_memory_access_attribute_t access ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeVirtualMemMapEpilogue( ze_context_handle_t hContext, const void* ptr, size_t size, ze_physical_mem_handle_t hPhysicalMemory, size_t offset, ze_memory_access_attribute_t access ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeVirtualMemMapEpilogue( ze_context_handle_t hContext, const void* ptr, size_t size, ze_physical_mem_handle_t hPhysicalMemory, size_t offset, ze_memory_access_attribute_t access , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeVirtualMemUnmapPrologue( ze_context_handle_t hContext, const void* ptr, size_t size ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeVirtualMemUnmapEpilogue( ze_context_handle_t hContext, const void* ptr, size_t size ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeVirtualMemUnmapEpilogue( ze_context_handle_t hContext, const void* ptr, size_t size , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeVirtualMemSetAccessAttributePrologue( ze_context_handle_t hContext, const void* ptr, size_t size, ze_memory_access_attribute_t access ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeVirtualMemSetAccessAttributeEpilogue( ze_context_handle_t hContext, const void* ptr, size_t size, ze_memory_access_attribute_t access ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeVirtualMemSetAccessAttributeEpilogue( ze_context_handle_t hContext, const void* ptr, size_t size, ze_memory_access_attribute_t access , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeVirtualMemGetAccessAttributePrologue( ze_context_handle_t hContext, const void* ptr, size_t size, ze_memory_access_attribute_t* access, size_t* outSize ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeVirtualMemGetAccessAttributeEpilogue( ze_context_handle_t hContext, const void* ptr, size_t size, ze_memory_access_attribute_t* access, size_t* outSize ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeVirtualMemGetAccessAttributeEpilogue( ze_context_handle_t hContext, const void* ptr, size_t size, ze_memory_access_attribute_t* access, size_t* outSize , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelSetGlobalOffsetExpPrologue( ze_kernel_handle_t hKernel, uint32_t offsetX, uint32_t offsetY, uint32_t offsetZ ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelSetGlobalOffsetExpEpilogue( ze_kernel_handle_t hKernel, uint32_t offsetX, uint32_t offsetY, uint32_t offsetZ ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelSetGlobalOffsetExpEpilogue( ze_kernel_handle_t hKernel, uint32_t offsetX, uint32_t offsetY, uint32_t offsetZ , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelGetBinaryExpPrologue( ze_kernel_handle_t hKernel, size_t* pSize, uint8_t* pKernelBinary ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelGetBinaryExpEpilogue( ze_kernel_handle_t hKernel, size_t* pSize, uint8_t* pKernelBinary ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelGetBinaryExpEpilogue( ze_kernel_handle_t hKernel, size_t* pSize, uint8_t* pKernelBinary , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceReserveCacheExtPrologue( ze_device_handle_t hDevice, size_t cacheLevel, size_t cacheReservationSize ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceReserveCacheExtEpilogue( ze_device_handle_t hDevice, size_t cacheLevel, size_t cacheReservationSize ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceReserveCacheExtEpilogue( ze_device_handle_t hDevice, size_t cacheLevel, size_t cacheReservationSize , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceSetCacheAdviceExtPrologue( ze_device_handle_t hDevice, void* ptr, size_t regionSize, ze_cache_ext_region_t cacheRegion ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceSetCacheAdviceExtEpilogue( ze_device_handle_t hDevice, void* ptr, size_t regionSize, ze_cache_ext_region_t cacheRegion ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceSetCacheAdviceExtEpilogue( ze_device_handle_t hDevice, void* ptr, size_t regionSize, ze_cache_ext_region_t cacheRegion , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventQueryTimestampsExpPrologue( ze_event_handle_t hEvent, ze_device_handle_t hDevice, uint32_t* pCount, ze_kernel_timestamp_result_t* pTimestamps ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventQueryTimestampsExpEpilogue( ze_event_handle_t hEvent, ze_device_handle_t hDevice, uint32_t* pCount, ze_kernel_timestamp_result_t* pTimestamps ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventQueryTimestampsExpEpilogue( ze_event_handle_t hEvent, ze_device_handle_t hDevice, uint32_t* pCount, ze_kernel_timestamp_result_t* pTimestamps , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeImageGetMemoryPropertiesExpPrologue( ze_image_handle_t hImage, ze_image_memory_properties_exp_t* pMemoryProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeImageGetMemoryPropertiesExpEpilogue( ze_image_handle_t hImage, ze_image_memory_properties_exp_t* pMemoryProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeImageGetMemoryPropertiesExpEpilogue( ze_image_handle_t hImage, ze_image_memory_properties_exp_t* pMemoryProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeImageViewCreateExtPrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_handle_t hImage, ze_image_handle_t* phImageView ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeImageViewCreateExtEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_handle_t hImage, ze_image_handle_t* phImageView ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeImageViewCreateExtEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_handle_t hImage, ze_image_handle_t* phImageView , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeImageViewCreateExpPrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_handle_t hImage, ze_image_handle_t* phImageView ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeImageViewCreateExpEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_handle_t hImage, ze_image_handle_t* phImageView ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeImageViewCreateExpEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_handle_t hImage, ze_image_handle_t* phImageView , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeKernelSchedulingHintExpPrologue( ze_kernel_handle_t hKernel, ze_scheduling_hint_exp_desc_t* pHint ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeKernelSchedulingHintExpEpilogue( ze_kernel_handle_t hKernel, ze_scheduling_hint_exp_desc_t* pHint ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeKernelSchedulingHintExpEpilogue( ze_kernel_handle_t hKernel, ze_scheduling_hint_exp_desc_t* pHint , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDevicePciGetPropertiesExtPrologue( ze_device_handle_t hDevice, ze_pci_ext_properties_t* pPciProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDevicePciGetPropertiesExtEpilogue( ze_device_handle_t hDevice, ze_pci_ext_properties_t* pPciProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDevicePciGetPropertiesExtEpilogue( ze_device_handle_t hDevice, ze_pci_ext_properties_t* pPciProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendImageCopyToMemoryExtPrologue( ze_command_list_handle_t hCommandList, void* dstptr, ze_image_handle_t hSrcImage, const ze_image_region_t* pSrcRegion, uint32_t destRowPitch, uint32_t destSlicePitch, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendImageCopyToMemoryExtEpilogue( ze_command_list_handle_t hCommandList, void* dstptr, ze_image_handle_t hSrcImage, const ze_image_region_t* pSrcRegion, uint32_t destRowPitch, uint32_t destSlicePitch, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendImageCopyToMemoryExtEpilogue( ze_command_list_handle_t hCommandList, void* dstptr, ze_image_handle_t hSrcImage, const ze_image_region_t* pSrcRegion, uint32_t destRowPitch, uint32_t destSlicePitch, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListAppendImageCopyFromMemoryExtPrologue( ze_command_list_handle_t hCommandList, ze_image_handle_t hDstImage, const void* srcptr, const ze_image_region_t* pDstRegion, uint32_t srcRowPitch, uint32_t srcSlicePitch, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListAppendImageCopyFromMemoryExtEpilogue( ze_command_list_handle_t hCommandList, ze_image_handle_t hDstImage, const void* srcptr, const ze_image_region_t* pDstRegion, uint32_t srcRowPitch, uint32_t srcSlicePitch, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListAppendImageCopyFromMemoryExtEpilogue( ze_command_list_handle_t hCommandList, ze_image_handle_t hDstImage, const void* srcptr, const ze_image_region_t* pDstRegion, uint32_t srcRowPitch, uint32_t srcSlicePitch, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeImageGetAllocPropertiesExtPrologue( ze_context_handle_t hContext, ze_image_handle_t hImage, ze_image_allocation_ext_properties_t* pImageAllocProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeImageGetAllocPropertiesExtEpilogue( ze_context_handle_t hContext, ze_image_handle_t hImage, ze_image_allocation_ext_properties_t* pImageAllocProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeImageGetAllocPropertiesExtEpilogue( ze_context_handle_t hContext, ze_image_handle_t hImage, ze_image_allocation_ext_properties_t* pImageAllocProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeModuleInspectLinkageExtPrologue( ze_linkage_inspection_ext_desc_t* pInspectDesc, uint32_t numModules, ze_module_handle_t* phModules, ze_module_build_log_handle_t* phLog ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeModuleInspectLinkageExtEpilogue( ze_linkage_inspection_ext_desc_t* pInspectDesc, uint32_t numModules, ze_module_handle_t* phModules, ze_module_build_log_handle_t* phLog ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeModuleInspectLinkageExtEpilogue( ze_linkage_inspection_ext_desc_t* pInspectDesc, uint32_t numModules, ze_module_handle_t* phModules, ze_module_build_log_handle_t* phLog , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemFreeExtPrologue( ze_context_handle_t hContext, const ze_memory_free_ext_desc_t* pMemFreeDesc, void* ptr ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemFreeExtEpilogue( ze_context_handle_t hContext, const ze_memory_free_ext_desc_t* pMemFreeDesc, void* ptr ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemFreeExtEpilogue( ze_context_handle_t hContext, const ze_memory_free_ext_desc_t* pMemFreeDesc, void* ptr , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeFabricVertexGetExpPrologue( ze_driver_handle_t hDriver, uint32_t* pCount, ze_fabric_vertex_handle_t* phVertices ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeFabricVertexGetExpEpilogue( ze_driver_handle_t hDriver, uint32_t* pCount, ze_fabric_vertex_handle_t* phVertices ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeFabricVertexGetExpEpilogue( ze_driver_handle_t hDriver, uint32_t* pCount, ze_fabric_vertex_handle_t* phVertices , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeFabricVertexGetSubVerticesExpPrologue( ze_fabric_vertex_handle_t hVertex, uint32_t* pCount, ze_fabric_vertex_handle_t* phSubvertices ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeFabricVertexGetSubVerticesExpEpilogue( ze_fabric_vertex_handle_t hVertex, uint32_t* pCount, ze_fabric_vertex_handle_t* phSubvertices ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeFabricVertexGetSubVerticesExpEpilogue( ze_fabric_vertex_handle_t hVertex, uint32_t* pCount, ze_fabric_vertex_handle_t* phSubvertices , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeFabricVertexGetPropertiesExpPrologue( ze_fabric_vertex_handle_t hVertex, ze_fabric_vertex_exp_properties_t* pVertexProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeFabricVertexGetPropertiesExpEpilogue( ze_fabric_vertex_handle_t hVertex, ze_fabric_vertex_exp_properties_t* pVertexProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeFabricVertexGetPropertiesExpEpilogue( ze_fabric_vertex_handle_t hVertex, ze_fabric_vertex_exp_properties_t* pVertexProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeFabricVertexGetDeviceExpPrologue( ze_fabric_vertex_handle_t hVertex, ze_device_handle_t* phDevice ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeFabricVertexGetDeviceExpEpilogue( ze_fabric_vertex_handle_t hVertex, ze_device_handle_t* phDevice ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeFabricVertexGetDeviceExpEpilogue( ze_fabric_vertex_handle_t hVertex, ze_device_handle_t* phDevice , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDeviceGetFabricVertexExpPrologue( ze_device_handle_t hDevice, ze_fabric_vertex_handle_t* phVertex ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDeviceGetFabricVertexExpEpilogue( ze_device_handle_t hDevice, ze_fabric_vertex_handle_t* phVertex ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDeviceGetFabricVertexExpEpilogue( ze_device_handle_t hDevice, ze_fabric_vertex_handle_t* phVertex , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeFabricEdgeGetExpPrologue( ze_fabric_vertex_handle_t hVertexA, ze_fabric_vertex_handle_t hVertexB, uint32_t* pCount, ze_fabric_edge_handle_t* phEdges ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeFabricEdgeGetExpEpilogue( ze_fabric_vertex_handle_t hVertexA, ze_fabric_vertex_handle_t hVertexB, uint32_t* pCount, ze_fabric_edge_handle_t* phEdges ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeFabricEdgeGetExpEpilogue( ze_fabric_vertex_handle_t hVertexA, ze_fabric_vertex_handle_t hVertexB, uint32_t* pCount, ze_fabric_edge_handle_t* phEdges , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeFabricEdgeGetVerticesExpPrologue( ze_fabric_edge_handle_t hEdge, ze_fabric_vertex_handle_t* phVertexA, ze_fabric_vertex_handle_t* phVertexB ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeFabricEdgeGetVerticesExpEpilogue( ze_fabric_edge_handle_t hEdge, ze_fabric_vertex_handle_t* phVertexA, ze_fabric_vertex_handle_t* phVertexB ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeFabricEdgeGetVerticesExpEpilogue( ze_fabric_edge_handle_t hEdge, ze_fabric_vertex_handle_t* phVertexA, ze_fabric_vertex_handle_t* phVertexB , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeFabricEdgeGetPropertiesExpPrologue( ze_fabric_edge_handle_t hEdge, ze_fabric_edge_exp_properties_t* pEdgeProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeFabricEdgeGetPropertiesExpEpilogue( ze_fabric_edge_handle_t hEdge, ze_fabric_edge_exp_properties_t* pEdgeProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeFabricEdgeGetPropertiesExpEpilogue( ze_fabric_edge_handle_t hEdge, ze_fabric_edge_exp_properties_t* pEdgeProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeEventQueryKernelTimestampsExtPrologue( ze_event_handle_t hEvent, ze_device_handle_t hDevice, uint32_t* pCount, ze_event_query_kernel_timestamps_results_ext_properties_t* pResults ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeEventQueryKernelTimestampsExtEpilogue( ze_event_handle_t hEvent, ze_device_handle_t hDevice, uint32_t* pCount, ze_event_query_kernel_timestamps_results_ext_properties_t* pResults ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeEventQueryKernelTimestampsExtEpilogue( ze_event_handle_t hEvent, ze_device_handle_t hDevice, uint32_t* pCount, ze_event_query_kernel_timestamps_results_ext_properties_t* pResults , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeRTASBuilderCreateExpPrologue( ze_driver_handle_t hDriver, const ze_rtas_builder_exp_desc_t* pDescriptor, ze_rtas_builder_exp_handle_t* phBuilder ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeRTASBuilderCreateExpEpilogue( ze_driver_handle_t hDriver, const ze_rtas_builder_exp_desc_t* pDescriptor, ze_rtas_builder_exp_handle_t* phBuilder ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeRTASBuilderCreateExpEpilogue( ze_driver_handle_t hDriver, const ze_rtas_builder_exp_desc_t* pDescriptor, ze_rtas_builder_exp_handle_t* phBuilder , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeRTASBuilderGetBuildPropertiesExpPrologue( ze_rtas_builder_exp_handle_t hBuilder, const ze_rtas_builder_build_op_exp_desc_t* pBuildOpDescriptor, ze_rtas_builder_exp_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeRTASBuilderGetBuildPropertiesExpEpilogue( ze_rtas_builder_exp_handle_t hBuilder, const ze_rtas_builder_build_op_exp_desc_t* pBuildOpDescriptor, ze_rtas_builder_exp_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeRTASBuilderGetBuildPropertiesExpEpilogue( ze_rtas_builder_exp_handle_t hBuilder, const ze_rtas_builder_build_op_exp_desc_t* pBuildOpDescriptor, ze_rtas_builder_exp_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeDriverRTASFormatCompatibilityCheckExpPrologue( ze_driver_handle_t hDriver, ze_rtas_format_exp_t rtasFormatA, ze_rtas_format_exp_t rtasFormatB ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeDriverRTASFormatCompatibilityCheckExpEpilogue( ze_driver_handle_t hDriver, ze_rtas_format_exp_t rtasFormatA, ze_rtas_format_exp_t rtasFormatB ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeDriverRTASFormatCompatibilityCheckExpEpilogue( ze_driver_handle_t hDriver, ze_rtas_format_exp_t rtasFormatA, ze_rtas_format_exp_t rtasFormatB , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeRTASBuilderBuildExpPrologue( ze_rtas_builder_exp_handle_t hBuilder, const ze_rtas_builder_build_op_exp_desc_t* pBuildOpDescriptor, void* pScratchBuffer, size_t scratchBufferSizeBytes, void* pRtasBuffer, size_t rtasBufferSizeBytes, ze_rtas_parallel_operation_exp_handle_t hParallelOperation, void* pBuildUserPtr, ze_rtas_aabb_exp_t* pBounds, size_t* pRtasBufferSizeBytes ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeRTASBuilderBuildExpEpilogue( ze_rtas_builder_exp_handle_t hBuilder, const ze_rtas_builder_build_op_exp_desc_t* pBuildOpDescriptor, void* pScratchBuffer, size_t scratchBufferSizeBytes, void* pRtasBuffer, size_t rtasBufferSizeBytes, ze_rtas_parallel_operation_exp_handle_t hParallelOperation, void* pBuildUserPtr, ze_rtas_aabb_exp_t* pBounds, size_t* pRtasBufferSizeBytes ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeRTASBuilderBuildExpEpilogue( ze_rtas_builder_exp_handle_t hBuilder, const ze_rtas_builder_build_op_exp_desc_t* pBuildOpDescriptor, void* pScratchBuffer, size_t scratchBufferSizeBytes, void* pRtasBuffer, size_t rtasBufferSizeBytes, ze_rtas_parallel_operation_exp_handle_t hParallelOperation, void* pBuildUserPtr, ze_rtas_aabb_exp_t* pBounds, size_t* pRtasBufferSizeBytes , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeRTASBuilderDestroyExpPrologue( ze_rtas_builder_exp_handle_t hBuilder ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeRTASBuilderDestroyExpEpilogue( ze_rtas_builder_exp_handle_t hBuilder ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeRTASBuilderDestroyExpEpilogue( ze_rtas_builder_exp_handle_t hBuilder , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeRTASParallelOperationCreateExpPrologue( ze_driver_handle_t hDriver, ze_rtas_parallel_operation_exp_handle_t* phParallelOperation ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeRTASParallelOperationCreateExpEpilogue( ze_driver_handle_t hDriver, ze_rtas_parallel_operation_exp_handle_t* phParallelOperation ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeRTASParallelOperationCreateExpEpilogue( ze_driver_handle_t hDriver, ze_rtas_parallel_operation_exp_handle_t* phParallelOperation , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeRTASParallelOperationGetPropertiesExpPrologue( ze_rtas_parallel_operation_exp_handle_t hParallelOperation, ze_rtas_parallel_operation_exp_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeRTASParallelOperationGetPropertiesExpEpilogue( ze_rtas_parallel_operation_exp_handle_t hParallelOperation, ze_rtas_parallel_operation_exp_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeRTASParallelOperationGetPropertiesExpEpilogue( ze_rtas_parallel_operation_exp_handle_t hParallelOperation, ze_rtas_parallel_operation_exp_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeRTASParallelOperationJoinExpPrologue( ze_rtas_parallel_operation_exp_handle_t hParallelOperation ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeRTASParallelOperationJoinExpEpilogue( ze_rtas_parallel_operation_exp_handle_t hParallelOperation ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeRTASParallelOperationJoinExpEpilogue( ze_rtas_parallel_operation_exp_handle_t hParallelOperation , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeRTASParallelOperationDestroyExpPrologue( ze_rtas_parallel_operation_exp_handle_t hParallelOperation ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeRTASParallelOperationDestroyExpEpilogue( ze_rtas_parallel_operation_exp_handle_t hParallelOperation ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeRTASParallelOperationDestroyExpEpilogue( ze_rtas_parallel_operation_exp_handle_t hParallelOperation , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeMemGetPitchFor2dImagePrologue( ze_context_handle_t hContext, ze_device_handle_t hDevice, size_t imageWidth, size_t imageHeight, unsigned int elementSizeInBytes, size_t * rowPitch ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeMemGetPitchFor2dImageEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, size_t imageWidth, size_t imageHeight, unsigned int elementSizeInBytes, size_t * rowPitch ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeMemGetPitchFor2dImageEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, size_t imageWidth, size_t imageHeight, unsigned int elementSizeInBytes, size_t * rowPitch , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeImageGetDeviceOffsetExpPrologue( ze_image_handle_t hImage, uint64_t* pDeviceOffset ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeImageGetDeviceOffsetExpEpilogue( ze_image_handle_t hImage, uint64_t* pDeviceOffset ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeImageGetDeviceOffsetExpEpilogue( ze_image_handle_t hImage, uint64_t* pDeviceOffset , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListCreateCloneExpPrologue( ze_command_list_handle_t hCommandList, ze_command_list_handle_t* phClonedCommandList ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListCreateCloneExpEpilogue( ze_command_list_handle_t hCommandList, ze_command_list_handle_t* phClonedCommandList ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListCreateCloneExpEpilogue( ze_command_list_handle_t hCommandList, ze_command_list_handle_t* phClonedCommandList , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListImmediateAppendCommandListsExpPrologue( ze_command_list_handle_t hCommandListImmediate, uint32_t numCommandLists, ze_command_list_handle_t* phCommandLists, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListImmediateAppendCommandListsExpEpilogue( ze_command_list_handle_t hCommandListImmediate, uint32_t numCommandLists, ze_command_list_handle_t* phCommandLists, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListImmediateAppendCommandListsExpEpilogue( ze_command_list_handle_t hCommandListImmediate, uint32_t numCommandLists, ze_command_list_handle_t* phCommandLists, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListGetNextCommandIdExpPrologue( ze_command_list_handle_t hCommandList, const ze_mutable_command_id_exp_desc_t* desc, uint64_t* pCommandId ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListGetNextCommandIdExpEpilogue( ze_command_list_handle_t hCommandList, const ze_mutable_command_id_exp_desc_t* desc, uint64_t* pCommandId ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListGetNextCommandIdExpEpilogue( ze_command_list_handle_t hCommandList, const ze_mutable_command_id_exp_desc_t* desc, uint64_t* pCommandId , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListGetNextCommandIdWithKernelsExpPrologue( ze_command_list_handle_t hCommandList, const ze_mutable_command_id_exp_desc_t* desc, uint32_t numKernels, ze_kernel_handle_t* phKernels, uint64_t* pCommandId ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListGetNextCommandIdWithKernelsExpEpilogue( ze_command_list_handle_t hCommandList, const ze_mutable_command_id_exp_desc_t* desc, uint32_t numKernels, ze_kernel_handle_t* phKernels, uint64_t* pCommandId ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListGetNextCommandIdWithKernelsExpEpilogue( ze_command_list_handle_t hCommandList, const ze_mutable_command_id_exp_desc_t* desc, uint32_t numKernels, ze_kernel_handle_t* phKernels, uint64_t* pCommandId , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListUpdateMutableCommandsExpPrologue( ze_command_list_handle_t hCommandList, const ze_mutable_commands_exp_desc_t* desc ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListUpdateMutableCommandsExpEpilogue( ze_command_list_handle_t hCommandList, const ze_mutable_commands_exp_desc_t* desc ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListUpdateMutableCommandsExpEpilogue( ze_command_list_handle_t hCommandList, const ze_mutable_commands_exp_desc_t* desc , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListUpdateMutableCommandSignalEventExpPrologue( ze_command_list_handle_t hCommandList, uint64_t commandId, ze_event_handle_t hSignalEvent ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListUpdateMutableCommandSignalEventExpEpilogue( ze_command_list_handle_t hCommandList, uint64_t commandId, ze_event_handle_t hSignalEvent ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListUpdateMutableCommandSignalEventExpEpilogue( ze_command_list_handle_t hCommandList, uint64_t commandId, ze_event_handle_t hSignalEvent , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListUpdateMutableCommandWaitEventsExpPrologue( ze_command_list_handle_t hCommandList, uint64_t commandId, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListUpdateMutableCommandWaitEventsExpEpilogue( ze_command_list_handle_t hCommandList, uint64_t commandId, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListUpdateMutableCommandWaitEventsExpEpilogue( ze_command_list_handle_t hCommandList, uint64_t commandId, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zeCommandListUpdateMutableCommandKernelsExpPrologue( ze_command_list_handle_t hCommandList, uint32_t numKernels, uint64_t* pCommandId, ze_kernel_handle_t* phKernels ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zeCommandListUpdateMutableCommandKernelsExpEpilogue( ze_command_list_handle_t hCommandList, uint32_t numKernels, uint64_t* pCommandId, ze_kernel_handle_t* phKernels ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zeCommandListUpdateMutableCommandKernelsExpEpilogue( ze_command_list_handle_t hCommandList, uint32_t numKernels, uint64_t* pCommandId, ze_kernel_handle_t* phKernels , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ~ZEValidationEntryPoints() {} }; } \ No newline at end of file diff --git a/source/layers/validation/common/zes_entry_points.h b/source/layers/validation/common/zes_entry_points.h index 44815635..45a2faeb 100644 --- a/source/layers/validation/common/zes_entry_points.h +++ b/source/layers/validation/common/zes_entry_points.h @@ -18,301 +18,301 @@ namespace validation_layer class ZESValidationEntryPoints { public: virtual ze_result_t zesInitPrologue( zes_init_flags_t flags ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesInitEpilogue( zes_init_flags_t flags ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesInitEpilogue( zes_init_flags_t flags , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDriverGetPrologue( uint32_t* pCount, zes_driver_handle_t* phDrivers ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDriverGetEpilogue( uint32_t* pCount, zes_driver_handle_t* phDrivers ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDriverGetEpilogue( uint32_t* pCount, zes_driver_handle_t* phDrivers , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDriverGetExtensionPropertiesPrologue( zes_driver_handle_t hDriver, uint32_t* pCount, zes_driver_extension_properties_t* pExtensionProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDriverGetExtensionPropertiesEpilogue( zes_driver_handle_t hDriver, uint32_t* pCount, zes_driver_extension_properties_t* pExtensionProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDriverGetExtensionPropertiesEpilogue( zes_driver_handle_t hDriver, uint32_t* pCount, zes_driver_extension_properties_t* pExtensionProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDriverGetExtensionFunctionAddressPrologue( zes_driver_handle_t hDriver, const char* name, void** ppFunctionAddress ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDriverGetExtensionFunctionAddressEpilogue( zes_driver_handle_t hDriver, const char* name, void** ppFunctionAddress ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDriverGetExtensionFunctionAddressEpilogue( zes_driver_handle_t hDriver, const char* name, void** ppFunctionAddress , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceGetPrologue( zes_driver_handle_t hDriver, uint32_t* pCount, zes_device_handle_t* phDevices ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceGetEpilogue( zes_driver_handle_t hDriver, uint32_t* pCount, zes_device_handle_t* phDevices ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceGetEpilogue( zes_driver_handle_t hDriver, uint32_t* pCount, zes_device_handle_t* phDevices , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceGetPropertiesPrologue( zes_device_handle_t hDevice, zes_device_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceGetPropertiesEpilogue( zes_device_handle_t hDevice, zes_device_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceGetPropertiesEpilogue( zes_device_handle_t hDevice, zes_device_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceGetStatePrologue( zes_device_handle_t hDevice, zes_device_state_t* pState ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceGetStateEpilogue( zes_device_handle_t hDevice, zes_device_state_t* pState ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceGetStateEpilogue( zes_device_handle_t hDevice, zes_device_state_t* pState , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceResetPrologue( zes_device_handle_t hDevice, ze_bool_t force ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceResetEpilogue( zes_device_handle_t hDevice, ze_bool_t force ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceResetEpilogue( zes_device_handle_t hDevice, ze_bool_t force , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceResetExtPrologue( zes_device_handle_t hDevice, zes_reset_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceResetExtEpilogue( zes_device_handle_t hDevice, zes_reset_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceResetExtEpilogue( zes_device_handle_t hDevice, zes_reset_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceProcessesGetStatePrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_process_state_t* pProcesses ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceProcessesGetStateEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_process_state_t* pProcesses ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceProcessesGetStateEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_process_state_t* pProcesses , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDevicePciGetPropertiesPrologue( zes_device_handle_t hDevice, zes_pci_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDevicePciGetPropertiesEpilogue( zes_device_handle_t hDevice, zes_pci_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDevicePciGetPropertiesEpilogue( zes_device_handle_t hDevice, zes_pci_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDevicePciGetStatePrologue( zes_device_handle_t hDevice, zes_pci_state_t* pState ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDevicePciGetStateEpilogue( zes_device_handle_t hDevice, zes_pci_state_t* pState ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDevicePciGetStateEpilogue( zes_device_handle_t hDevice, zes_pci_state_t* pState , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDevicePciGetBarsPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_pci_bar_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDevicePciGetBarsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_pci_bar_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDevicePciGetBarsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_pci_bar_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDevicePciGetStatsPrologue( zes_device_handle_t hDevice, zes_pci_stats_t* pStats ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDevicePciGetStatsEpilogue( zes_device_handle_t hDevice, zes_pci_stats_t* pStats ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDevicePciGetStatsEpilogue( zes_device_handle_t hDevice, zes_pci_stats_t* pStats , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceSetOverclockWaiverPrologue( zes_device_handle_t hDevice ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceSetOverclockWaiverEpilogue( zes_device_handle_t hDevice ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceSetOverclockWaiverEpilogue( zes_device_handle_t hDevice , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceGetOverclockDomainsPrologue( zes_device_handle_t hDevice, uint32_t* pOverclockDomains ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceGetOverclockDomainsEpilogue( zes_device_handle_t hDevice, uint32_t* pOverclockDomains ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceGetOverclockDomainsEpilogue( zes_device_handle_t hDevice, uint32_t* pOverclockDomains , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceGetOverclockControlsPrologue( zes_device_handle_t hDevice, zes_overclock_domain_t domainType, uint32_t* pAvailableControls ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceGetOverclockControlsEpilogue( zes_device_handle_t hDevice, zes_overclock_domain_t domainType, uint32_t* pAvailableControls ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceGetOverclockControlsEpilogue( zes_device_handle_t hDevice, zes_overclock_domain_t domainType, uint32_t* pAvailableControls , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceResetOverclockSettingsPrologue( zes_device_handle_t hDevice, ze_bool_t onShippedState ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceResetOverclockSettingsEpilogue( zes_device_handle_t hDevice, ze_bool_t onShippedState ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceResetOverclockSettingsEpilogue( zes_device_handle_t hDevice, ze_bool_t onShippedState , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceReadOverclockStatePrologue( zes_device_handle_t hDevice, zes_overclock_mode_t* pOverclockMode, ze_bool_t* pWaiverSetting, ze_bool_t* pOverclockState, zes_pending_action_t* pPendingAction, ze_bool_t* pPendingReset ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceReadOverclockStateEpilogue( zes_device_handle_t hDevice, zes_overclock_mode_t* pOverclockMode, ze_bool_t* pWaiverSetting, ze_bool_t* pOverclockState, zes_pending_action_t* pPendingAction, ze_bool_t* pPendingReset ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceReadOverclockStateEpilogue( zes_device_handle_t hDevice, zes_overclock_mode_t* pOverclockMode, ze_bool_t* pWaiverSetting, ze_bool_t* pOverclockState, zes_pending_action_t* pPendingAction, ze_bool_t* pPendingReset , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumOverclockDomainsPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_overclock_handle_t* phDomainHandle ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumOverclockDomainsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_overclock_handle_t* phDomainHandle ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumOverclockDomainsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_overclock_handle_t* phDomainHandle , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesOverclockGetDomainPropertiesPrologue( zes_overclock_handle_t hDomainHandle, zes_overclock_properties_t* pDomainProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesOverclockGetDomainPropertiesEpilogue( zes_overclock_handle_t hDomainHandle, zes_overclock_properties_t* pDomainProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesOverclockGetDomainPropertiesEpilogue( zes_overclock_handle_t hDomainHandle, zes_overclock_properties_t* pDomainProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesOverclockGetDomainVFPropertiesPrologue( zes_overclock_handle_t hDomainHandle, zes_vf_property_t* pVFProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesOverclockGetDomainVFPropertiesEpilogue( zes_overclock_handle_t hDomainHandle, zes_vf_property_t* pVFProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesOverclockGetDomainVFPropertiesEpilogue( zes_overclock_handle_t hDomainHandle, zes_vf_property_t* pVFProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesOverclockGetDomainControlPropertiesPrologue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, zes_control_property_t* pControlProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesOverclockGetDomainControlPropertiesEpilogue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, zes_control_property_t* pControlProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesOverclockGetDomainControlPropertiesEpilogue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, zes_control_property_t* pControlProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesOverclockGetControlCurrentValuePrologue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, double* pValue ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesOverclockGetControlCurrentValueEpilogue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, double* pValue ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesOverclockGetControlCurrentValueEpilogue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, double* pValue , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesOverclockGetControlPendingValuePrologue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, double* pValue ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesOverclockGetControlPendingValueEpilogue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, double* pValue ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesOverclockGetControlPendingValueEpilogue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, double* pValue , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesOverclockSetControlUserValuePrologue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, double pValue, zes_pending_action_t* pPendingAction ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesOverclockSetControlUserValueEpilogue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, double pValue, zes_pending_action_t* pPendingAction ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesOverclockSetControlUserValueEpilogue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, double pValue, zes_pending_action_t* pPendingAction , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesOverclockGetControlStatePrologue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, zes_control_state_t* pControlState, zes_pending_action_t* pPendingAction ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesOverclockGetControlStateEpilogue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, zes_control_state_t* pControlState, zes_pending_action_t* pPendingAction ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesOverclockGetControlStateEpilogue( zes_overclock_handle_t hDomainHandle, zes_overclock_control_t DomainControl, zes_control_state_t* pControlState, zes_pending_action_t* pPendingAction , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesOverclockGetVFPointValuesPrologue( zes_overclock_handle_t hDomainHandle, zes_vf_type_t VFType, zes_vf_array_type_t VFArrayType, uint32_t PointIndex, uint32_t* PointValue ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesOverclockGetVFPointValuesEpilogue( zes_overclock_handle_t hDomainHandle, zes_vf_type_t VFType, zes_vf_array_type_t VFArrayType, uint32_t PointIndex, uint32_t* PointValue ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesOverclockGetVFPointValuesEpilogue( zes_overclock_handle_t hDomainHandle, zes_vf_type_t VFType, zes_vf_array_type_t VFArrayType, uint32_t PointIndex, uint32_t* PointValue , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesOverclockSetVFPointValuesPrologue( zes_overclock_handle_t hDomainHandle, zes_vf_type_t VFType, uint32_t PointIndex, uint32_t PointValue ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesOverclockSetVFPointValuesEpilogue( zes_overclock_handle_t hDomainHandle, zes_vf_type_t VFType, uint32_t PointIndex, uint32_t PointValue ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesOverclockSetVFPointValuesEpilogue( zes_overclock_handle_t hDomainHandle, zes_vf_type_t VFType, uint32_t PointIndex, uint32_t PointValue , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumDiagnosticTestSuitesPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_diag_handle_t* phDiagnostics ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumDiagnosticTestSuitesEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_diag_handle_t* phDiagnostics ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumDiagnosticTestSuitesEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_diag_handle_t* phDiagnostics , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDiagnosticsGetPropertiesPrologue( zes_diag_handle_t hDiagnostics, zes_diag_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDiagnosticsGetPropertiesEpilogue( zes_diag_handle_t hDiagnostics, zes_diag_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDiagnosticsGetPropertiesEpilogue( zes_diag_handle_t hDiagnostics, zes_diag_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDiagnosticsGetTestsPrologue( zes_diag_handle_t hDiagnostics, uint32_t* pCount, zes_diag_test_t* pTests ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDiagnosticsGetTestsEpilogue( zes_diag_handle_t hDiagnostics, uint32_t* pCount, zes_diag_test_t* pTests ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDiagnosticsGetTestsEpilogue( zes_diag_handle_t hDiagnostics, uint32_t* pCount, zes_diag_test_t* pTests , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDiagnosticsRunTestsPrologue( zes_diag_handle_t hDiagnostics, uint32_t startIndex, uint32_t endIndex, zes_diag_result_t* pResult ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDiagnosticsRunTestsEpilogue( zes_diag_handle_t hDiagnostics, uint32_t startIndex, uint32_t endIndex, zes_diag_result_t* pResult ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDiagnosticsRunTestsEpilogue( zes_diag_handle_t hDiagnostics, uint32_t startIndex, uint32_t endIndex, zes_diag_result_t* pResult , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEccAvailablePrologue( zes_device_handle_t hDevice, ze_bool_t* pAvailable ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEccAvailableEpilogue( zes_device_handle_t hDevice, ze_bool_t* pAvailable ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEccAvailableEpilogue( zes_device_handle_t hDevice, ze_bool_t* pAvailable , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEccConfigurablePrologue( zes_device_handle_t hDevice, ze_bool_t* pConfigurable ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEccConfigurableEpilogue( zes_device_handle_t hDevice, ze_bool_t* pConfigurable ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEccConfigurableEpilogue( zes_device_handle_t hDevice, ze_bool_t* pConfigurable , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceGetEccStatePrologue( zes_device_handle_t hDevice, zes_device_ecc_properties_t* pState ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceGetEccStateEpilogue( zes_device_handle_t hDevice, zes_device_ecc_properties_t* pState ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceGetEccStateEpilogue( zes_device_handle_t hDevice, zes_device_ecc_properties_t* pState , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceSetEccStatePrologue( zes_device_handle_t hDevice, const zes_device_ecc_desc_t* newState, zes_device_ecc_properties_t* pState ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceSetEccStateEpilogue( zes_device_handle_t hDevice, const zes_device_ecc_desc_t* newState, zes_device_ecc_properties_t* pState ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceSetEccStateEpilogue( zes_device_handle_t hDevice, const zes_device_ecc_desc_t* newState, zes_device_ecc_properties_t* pState , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumEngineGroupsPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_engine_handle_t* phEngine ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumEngineGroupsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_engine_handle_t* phEngine ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumEngineGroupsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_engine_handle_t* phEngine , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesEngineGetPropertiesPrologue( zes_engine_handle_t hEngine, zes_engine_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesEngineGetPropertiesEpilogue( zes_engine_handle_t hEngine, zes_engine_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesEngineGetPropertiesEpilogue( zes_engine_handle_t hEngine, zes_engine_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesEngineGetActivityPrologue( zes_engine_handle_t hEngine, zes_engine_stats_t* pStats ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesEngineGetActivityEpilogue( zes_engine_handle_t hEngine, zes_engine_stats_t* pStats ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesEngineGetActivityEpilogue( zes_engine_handle_t hEngine, zes_engine_stats_t* pStats , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEventRegisterPrologue( zes_device_handle_t hDevice, zes_event_type_flags_t events ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEventRegisterEpilogue( zes_device_handle_t hDevice, zes_event_type_flags_t events ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEventRegisterEpilogue( zes_device_handle_t hDevice, zes_event_type_flags_t events , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDriverEventListenPrologue( ze_driver_handle_t hDriver, uint32_t timeout, uint32_t count, zes_device_handle_t* phDevices, uint32_t* pNumDeviceEvents, zes_event_type_flags_t* pEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDriverEventListenEpilogue( ze_driver_handle_t hDriver, uint32_t timeout, uint32_t count, zes_device_handle_t* phDevices, uint32_t* pNumDeviceEvents, zes_event_type_flags_t* pEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDriverEventListenEpilogue( ze_driver_handle_t hDriver, uint32_t timeout, uint32_t count, zes_device_handle_t* phDevices, uint32_t* pNumDeviceEvents, zes_event_type_flags_t* pEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDriverEventListenExPrologue( ze_driver_handle_t hDriver, uint64_t timeout, uint32_t count, zes_device_handle_t* phDevices, uint32_t* pNumDeviceEvents, zes_event_type_flags_t* pEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDriverEventListenExEpilogue( ze_driver_handle_t hDriver, uint64_t timeout, uint32_t count, zes_device_handle_t* phDevices, uint32_t* pNumDeviceEvents, zes_event_type_flags_t* pEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDriverEventListenExEpilogue( ze_driver_handle_t hDriver, uint64_t timeout, uint32_t count, zes_device_handle_t* phDevices, uint32_t* pNumDeviceEvents, zes_event_type_flags_t* pEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumFabricPortsPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_fabric_port_handle_t* phPort ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumFabricPortsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_fabric_port_handle_t* phPort ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumFabricPortsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_fabric_port_handle_t* phPort , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFabricPortGetPropertiesPrologue( zes_fabric_port_handle_t hPort, zes_fabric_port_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFabricPortGetPropertiesEpilogue( zes_fabric_port_handle_t hPort, zes_fabric_port_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFabricPortGetPropertiesEpilogue( zes_fabric_port_handle_t hPort, zes_fabric_port_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFabricPortGetLinkTypePrologue( zes_fabric_port_handle_t hPort, zes_fabric_link_type_t* pLinkType ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFabricPortGetLinkTypeEpilogue( zes_fabric_port_handle_t hPort, zes_fabric_link_type_t* pLinkType ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFabricPortGetLinkTypeEpilogue( zes_fabric_port_handle_t hPort, zes_fabric_link_type_t* pLinkType , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFabricPortGetConfigPrologue( zes_fabric_port_handle_t hPort, zes_fabric_port_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFabricPortGetConfigEpilogue( zes_fabric_port_handle_t hPort, zes_fabric_port_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFabricPortGetConfigEpilogue( zes_fabric_port_handle_t hPort, zes_fabric_port_config_t* pConfig , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFabricPortSetConfigPrologue( zes_fabric_port_handle_t hPort, const zes_fabric_port_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFabricPortSetConfigEpilogue( zes_fabric_port_handle_t hPort, const zes_fabric_port_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFabricPortSetConfigEpilogue( zes_fabric_port_handle_t hPort, const zes_fabric_port_config_t* pConfig , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFabricPortGetStatePrologue( zes_fabric_port_handle_t hPort, zes_fabric_port_state_t* pState ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFabricPortGetStateEpilogue( zes_fabric_port_handle_t hPort, zes_fabric_port_state_t* pState ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFabricPortGetStateEpilogue( zes_fabric_port_handle_t hPort, zes_fabric_port_state_t* pState , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFabricPortGetThroughputPrologue( zes_fabric_port_handle_t hPort, zes_fabric_port_throughput_t* pThroughput ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFabricPortGetThroughputEpilogue( zes_fabric_port_handle_t hPort, zes_fabric_port_throughput_t* pThroughput ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFabricPortGetThroughputEpilogue( zes_fabric_port_handle_t hPort, zes_fabric_port_throughput_t* pThroughput , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFabricPortGetFabricErrorCountersPrologue( zes_fabric_port_handle_t hPort, zes_fabric_port_error_counters_t* pErrors ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFabricPortGetFabricErrorCountersEpilogue( zes_fabric_port_handle_t hPort, zes_fabric_port_error_counters_t* pErrors ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFabricPortGetFabricErrorCountersEpilogue( zes_fabric_port_handle_t hPort, zes_fabric_port_error_counters_t* pErrors , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFabricPortGetMultiPortThroughputPrologue( zes_device_handle_t hDevice, uint32_t numPorts, zes_fabric_port_handle_t* phPort, zes_fabric_port_throughput_t** pThroughput ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFabricPortGetMultiPortThroughputEpilogue( zes_device_handle_t hDevice, uint32_t numPorts, zes_fabric_port_handle_t* phPort, zes_fabric_port_throughput_t** pThroughput ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFabricPortGetMultiPortThroughputEpilogue( zes_device_handle_t hDevice, uint32_t numPorts, zes_fabric_port_handle_t* phPort, zes_fabric_port_throughput_t** pThroughput , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumFansPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_fan_handle_t* phFan ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumFansEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_fan_handle_t* phFan ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumFansEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_fan_handle_t* phFan , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFanGetPropertiesPrologue( zes_fan_handle_t hFan, zes_fan_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFanGetPropertiesEpilogue( zes_fan_handle_t hFan, zes_fan_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFanGetPropertiesEpilogue( zes_fan_handle_t hFan, zes_fan_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFanGetConfigPrologue( zes_fan_handle_t hFan, zes_fan_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFanGetConfigEpilogue( zes_fan_handle_t hFan, zes_fan_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFanGetConfigEpilogue( zes_fan_handle_t hFan, zes_fan_config_t* pConfig , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFanSetDefaultModePrologue( zes_fan_handle_t hFan ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFanSetDefaultModeEpilogue( zes_fan_handle_t hFan ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFanSetDefaultModeEpilogue( zes_fan_handle_t hFan , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFanSetFixedSpeedModePrologue( zes_fan_handle_t hFan, const zes_fan_speed_t* speed ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFanSetFixedSpeedModeEpilogue( zes_fan_handle_t hFan, const zes_fan_speed_t* speed ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFanSetFixedSpeedModeEpilogue( zes_fan_handle_t hFan, const zes_fan_speed_t* speed , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFanSetSpeedTableModePrologue( zes_fan_handle_t hFan, const zes_fan_speed_table_t* speedTable ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFanSetSpeedTableModeEpilogue( zes_fan_handle_t hFan, const zes_fan_speed_table_t* speedTable ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFanSetSpeedTableModeEpilogue( zes_fan_handle_t hFan, const zes_fan_speed_table_t* speedTable , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFanGetStatePrologue( zes_fan_handle_t hFan, zes_fan_speed_units_t units, int32_t* pSpeed ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFanGetStateEpilogue( zes_fan_handle_t hFan, zes_fan_speed_units_t units, int32_t* pSpeed ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFanGetStateEpilogue( zes_fan_handle_t hFan, zes_fan_speed_units_t units, int32_t* pSpeed , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumFirmwaresPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_firmware_handle_t* phFirmware ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumFirmwaresEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_firmware_handle_t* phFirmware ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumFirmwaresEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_firmware_handle_t* phFirmware , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFirmwareGetPropertiesPrologue( zes_firmware_handle_t hFirmware, zes_firmware_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFirmwareGetPropertiesEpilogue( zes_firmware_handle_t hFirmware, zes_firmware_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFirmwareGetPropertiesEpilogue( zes_firmware_handle_t hFirmware, zes_firmware_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFirmwareFlashPrologue( zes_firmware_handle_t hFirmware, void* pImage, uint32_t size ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFirmwareFlashEpilogue( zes_firmware_handle_t hFirmware, void* pImage, uint32_t size ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFirmwareFlashEpilogue( zes_firmware_handle_t hFirmware, void* pImage, uint32_t size , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFirmwareGetFlashProgressPrologue( zes_firmware_handle_t hFirmware, uint32_t* pCompletionPercent ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFirmwareGetFlashProgressEpilogue( zes_firmware_handle_t hFirmware, uint32_t* pCompletionPercent ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFirmwareGetFlashProgressEpilogue( zes_firmware_handle_t hFirmware, uint32_t* pCompletionPercent , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFirmwareGetConsoleLogsPrologue( zes_firmware_handle_t hFirmware, size_t* pSize, char* pFirmwareLog ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFirmwareGetConsoleLogsEpilogue( zes_firmware_handle_t hFirmware, size_t* pSize, char* pFirmwareLog ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFirmwareGetConsoleLogsEpilogue( zes_firmware_handle_t hFirmware, size_t* pSize, char* pFirmwareLog , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumFrequencyDomainsPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_freq_handle_t* phFrequency ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumFrequencyDomainsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_freq_handle_t* phFrequency ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumFrequencyDomainsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_freq_handle_t* phFrequency , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyGetPropertiesPrologue( zes_freq_handle_t hFrequency, zes_freq_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyGetPropertiesEpilogue( zes_freq_handle_t hFrequency, zes_freq_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyGetPropertiesEpilogue( zes_freq_handle_t hFrequency, zes_freq_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyGetAvailableClocksPrologue( zes_freq_handle_t hFrequency, uint32_t* pCount, double* phFrequency ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyGetAvailableClocksEpilogue( zes_freq_handle_t hFrequency, uint32_t* pCount, double* phFrequency ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyGetAvailableClocksEpilogue( zes_freq_handle_t hFrequency, uint32_t* pCount, double* phFrequency , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyGetRangePrologue( zes_freq_handle_t hFrequency, zes_freq_range_t* pLimits ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyGetRangeEpilogue( zes_freq_handle_t hFrequency, zes_freq_range_t* pLimits ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyGetRangeEpilogue( zes_freq_handle_t hFrequency, zes_freq_range_t* pLimits , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencySetRangePrologue( zes_freq_handle_t hFrequency, const zes_freq_range_t* pLimits ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencySetRangeEpilogue( zes_freq_handle_t hFrequency, const zes_freq_range_t* pLimits ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencySetRangeEpilogue( zes_freq_handle_t hFrequency, const zes_freq_range_t* pLimits , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyGetStatePrologue( zes_freq_handle_t hFrequency, zes_freq_state_t* pState ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyGetStateEpilogue( zes_freq_handle_t hFrequency, zes_freq_state_t* pState ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyGetStateEpilogue( zes_freq_handle_t hFrequency, zes_freq_state_t* pState , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyGetThrottleTimePrologue( zes_freq_handle_t hFrequency, zes_freq_throttle_time_t* pThrottleTime ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyGetThrottleTimeEpilogue( zes_freq_handle_t hFrequency, zes_freq_throttle_time_t* pThrottleTime ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyGetThrottleTimeEpilogue( zes_freq_handle_t hFrequency, zes_freq_throttle_time_t* pThrottleTime , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyOcGetCapabilitiesPrologue( zes_freq_handle_t hFrequency, zes_oc_capabilities_t* pOcCapabilities ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyOcGetCapabilitiesEpilogue( zes_freq_handle_t hFrequency, zes_oc_capabilities_t* pOcCapabilities ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyOcGetCapabilitiesEpilogue( zes_freq_handle_t hFrequency, zes_oc_capabilities_t* pOcCapabilities , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyOcGetFrequencyTargetPrologue( zes_freq_handle_t hFrequency, double* pCurrentOcFrequency ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyOcGetFrequencyTargetEpilogue( zes_freq_handle_t hFrequency, double* pCurrentOcFrequency ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyOcGetFrequencyTargetEpilogue( zes_freq_handle_t hFrequency, double* pCurrentOcFrequency , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyOcSetFrequencyTargetPrologue( zes_freq_handle_t hFrequency, double CurrentOcFrequency ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyOcSetFrequencyTargetEpilogue( zes_freq_handle_t hFrequency, double CurrentOcFrequency ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyOcSetFrequencyTargetEpilogue( zes_freq_handle_t hFrequency, double CurrentOcFrequency , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyOcGetVoltageTargetPrologue( zes_freq_handle_t hFrequency, double* pCurrentVoltageTarget, double* pCurrentVoltageOffset ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyOcGetVoltageTargetEpilogue( zes_freq_handle_t hFrequency, double* pCurrentVoltageTarget, double* pCurrentVoltageOffset ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyOcGetVoltageTargetEpilogue( zes_freq_handle_t hFrequency, double* pCurrentVoltageTarget, double* pCurrentVoltageOffset , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyOcSetVoltageTargetPrologue( zes_freq_handle_t hFrequency, double CurrentVoltageTarget, double CurrentVoltageOffset ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyOcSetVoltageTargetEpilogue( zes_freq_handle_t hFrequency, double CurrentVoltageTarget, double CurrentVoltageOffset ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyOcSetVoltageTargetEpilogue( zes_freq_handle_t hFrequency, double CurrentVoltageTarget, double CurrentVoltageOffset , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyOcSetModePrologue( zes_freq_handle_t hFrequency, zes_oc_mode_t CurrentOcMode ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyOcSetModeEpilogue( zes_freq_handle_t hFrequency, zes_oc_mode_t CurrentOcMode ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyOcSetModeEpilogue( zes_freq_handle_t hFrequency, zes_oc_mode_t CurrentOcMode , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyOcGetModePrologue( zes_freq_handle_t hFrequency, zes_oc_mode_t* pCurrentOcMode ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyOcGetModeEpilogue( zes_freq_handle_t hFrequency, zes_oc_mode_t* pCurrentOcMode ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyOcGetModeEpilogue( zes_freq_handle_t hFrequency, zes_oc_mode_t* pCurrentOcMode , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyOcGetIccMaxPrologue( zes_freq_handle_t hFrequency, double* pOcIccMax ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyOcGetIccMaxEpilogue( zes_freq_handle_t hFrequency, double* pOcIccMax ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyOcGetIccMaxEpilogue( zes_freq_handle_t hFrequency, double* pOcIccMax , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyOcSetIccMaxPrologue( zes_freq_handle_t hFrequency, double ocIccMax ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyOcSetIccMaxEpilogue( zes_freq_handle_t hFrequency, double ocIccMax ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyOcSetIccMaxEpilogue( zes_freq_handle_t hFrequency, double ocIccMax , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyOcGetTjMaxPrologue( zes_freq_handle_t hFrequency, double* pOcTjMax ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyOcGetTjMaxEpilogue( zes_freq_handle_t hFrequency, double* pOcTjMax ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyOcGetTjMaxEpilogue( zes_freq_handle_t hFrequency, double* pOcTjMax , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFrequencyOcSetTjMaxPrologue( zes_freq_handle_t hFrequency, double ocTjMax ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFrequencyOcSetTjMaxEpilogue( zes_freq_handle_t hFrequency, double ocTjMax ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFrequencyOcSetTjMaxEpilogue( zes_freq_handle_t hFrequency, double ocTjMax , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumLedsPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_led_handle_t* phLed ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumLedsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_led_handle_t* phLed ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumLedsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_led_handle_t* phLed , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesLedGetPropertiesPrologue( zes_led_handle_t hLed, zes_led_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesLedGetPropertiesEpilogue( zes_led_handle_t hLed, zes_led_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesLedGetPropertiesEpilogue( zes_led_handle_t hLed, zes_led_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesLedGetStatePrologue( zes_led_handle_t hLed, zes_led_state_t* pState ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesLedGetStateEpilogue( zes_led_handle_t hLed, zes_led_state_t* pState ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesLedGetStateEpilogue( zes_led_handle_t hLed, zes_led_state_t* pState , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesLedSetStatePrologue( zes_led_handle_t hLed, ze_bool_t enable ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesLedSetStateEpilogue( zes_led_handle_t hLed, ze_bool_t enable ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesLedSetStateEpilogue( zes_led_handle_t hLed, ze_bool_t enable , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesLedSetColorPrologue( zes_led_handle_t hLed, const zes_led_color_t* pColor ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesLedSetColorEpilogue( zes_led_handle_t hLed, const zes_led_color_t* pColor ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesLedSetColorEpilogue( zes_led_handle_t hLed, const zes_led_color_t* pColor , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumMemoryModulesPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_mem_handle_t* phMemory ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumMemoryModulesEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_mem_handle_t* phMemory ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumMemoryModulesEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_mem_handle_t* phMemory , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesMemoryGetPropertiesPrologue( zes_mem_handle_t hMemory, zes_mem_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesMemoryGetPropertiesEpilogue( zes_mem_handle_t hMemory, zes_mem_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesMemoryGetPropertiesEpilogue( zes_mem_handle_t hMemory, zes_mem_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesMemoryGetStatePrologue( zes_mem_handle_t hMemory, zes_mem_state_t* pState ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesMemoryGetStateEpilogue( zes_mem_handle_t hMemory, zes_mem_state_t* pState ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesMemoryGetStateEpilogue( zes_mem_handle_t hMemory, zes_mem_state_t* pState , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesMemoryGetBandwidthPrologue( zes_mem_handle_t hMemory, zes_mem_bandwidth_t* pBandwidth ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesMemoryGetBandwidthEpilogue( zes_mem_handle_t hMemory, zes_mem_bandwidth_t* pBandwidth ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesMemoryGetBandwidthEpilogue( zes_mem_handle_t hMemory, zes_mem_bandwidth_t* pBandwidth , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumPerformanceFactorDomainsPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_perf_handle_t* phPerf ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumPerformanceFactorDomainsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_perf_handle_t* phPerf ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumPerformanceFactorDomainsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_perf_handle_t* phPerf , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPerformanceFactorGetPropertiesPrologue( zes_perf_handle_t hPerf, zes_perf_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPerformanceFactorGetPropertiesEpilogue( zes_perf_handle_t hPerf, zes_perf_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPerformanceFactorGetPropertiesEpilogue( zes_perf_handle_t hPerf, zes_perf_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPerformanceFactorGetConfigPrologue( zes_perf_handle_t hPerf, double* pFactor ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPerformanceFactorGetConfigEpilogue( zes_perf_handle_t hPerf, double* pFactor ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPerformanceFactorGetConfigEpilogue( zes_perf_handle_t hPerf, double* pFactor , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPerformanceFactorSetConfigPrologue( zes_perf_handle_t hPerf, double factor ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPerformanceFactorSetConfigEpilogue( zes_perf_handle_t hPerf, double factor ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPerformanceFactorSetConfigEpilogue( zes_perf_handle_t hPerf, double factor , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumPowerDomainsPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_pwr_handle_t* phPower ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumPowerDomainsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_pwr_handle_t* phPower ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumPowerDomainsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_pwr_handle_t* phPower , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceGetCardPowerDomainPrologue( zes_device_handle_t hDevice, zes_pwr_handle_t* phPower ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceGetCardPowerDomainEpilogue( zes_device_handle_t hDevice, zes_pwr_handle_t* phPower ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceGetCardPowerDomainEpilogue( zes_device_handle_t hDevice, zes_pwr_handle_t* phPower , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPowerGetPropertiesPrologue( zes_pwr_handle_t hPower, zes_power_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPowerGetPropertiesEpilogue( zes_pwr_handle_t hPower, zes_power_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPowerGetPropertiesEpilogue( zes_pwr_handle_t hPower, zes_power_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPowerGetEnergyCounterPrologue( zes_pwr_handle_t hPower, zes_power_energy_counter_t* pEnergy ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPowerGetEnergyCounterEpilogue( zes_pwr_handle_t hPower, zes_power_energy_counter_t* pEnergy ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPowerGetEnergyCounterEpilogue( zes_pwr_handle_t hPower, zes_power_energy_counter_t* pEnergy , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPowerGetLimitsPrologue( zes_pwr_handle_t hPower, zes_power_sustained_limit_t* pSustained, zes_power_burst_limit_t* pBurst, zes_power_peak_limit_t* pPeak ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPowerGetLimitsEpilogue( zes_pwr_handle_t hPower, zes_power_sustained_limit_t* pSustained, zes_power_burst_limit_t* pBurst, zes_power_peak_limit_t* pPeak ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPowerGetLimitsEpilogue( zes_pwr_handle_t hPower, zes_power_sustained_limit_t* pSustained, zes_power_burst_limit_t* pBurst, zes_power_peak_limit_t* pPeak , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPowerSetLimitsPrologue( zes_pwr_handle_t hPower, const zes_power_sustained_limit_t* pSustained, const zes_power_burst_limit_t* pBurst, const zes_power_peak_limit_t* pPeak ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPowerSetLimitsEpilogue( zes_pwr_handle_t hPower, const zes_power_sustained_limit_t* pSustained, const zes_power_burst_limit_t* pBurst, const zes_power_peak_limit_t* pPeak ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPowerSetLimitsEpilogue( zes_pwr_handle_t hPower, const zes_power_sustained_limit_t* pSustained, const zes_power_burst_limit_t* pBurst, const zes_power_peak_limit_t* pPeak , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPowerGetEnergyThresholdPrologue( zes_pwr_handle_t hPower, zes_energy_threshold_t* pThreshold ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPowerGetEnergyThresholdEpilogue( zes_pwr_handle_t hPower, zes_energy_threshold_t* pThreshold ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPowerGetEnergyThresholdEpilogue( zes_pwr_handle_t hPower, zes_energy_threshold_t* pThreshold , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPowerSetEnergyThresholdPrologue( zes_pwr_handle_t hPower, double threshold ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPowerSetEnergyThresholdEpilogue( zes_pwr_handle_t hPower, double threshold ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPowerSetEnergyThresholdEpilogue( zes_pwr_handle_t hPower, double threshold , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumPsusPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_psu_handle_t* phPsu ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumPsusEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_psu_handle_t* phPsu ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumPsusEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_psu_handle_t* phPsu , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPsuGetPropertiesPrologue( zes_psu_handle_t hPsu, zes_psu_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPsuGetPropertiesEpilogue( zes_psu_handle_t hPsu, zes_psu_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPsuGetPropertiesEpilogue( zes_psu_handle_t hPsu, zes_psu_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPsuGetStatePrologue( zes_psu_handle_t hPsu, zes_psu_state_t* pState ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPsuGetStateEpilogue( zes_psu_handle_t hPsu, zes_psu_state_t* pState ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPsuGetStateEpilogue( zes_psu_handle_t hPsu, zes_psu_state_t* pState , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumRasErrorSetsPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_ras_handle_t* phRas ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumRasErrorSetsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_ras_handle_t* phRas ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumRasErrorSetsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_ras_handle_t* phRas , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesRasGetPropertiesPrologue( zes_ras_handle_t hRas, zes_ras_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesRasGetPropertiesEpilogue( zes_ras_handle_t hRas, zes_ras_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesRasGetPropertiesEpilogue( zes_ras_handle_t hRas, zes_ras_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesRasGetConfigPrologue( zes_ras_handle_t hRas, zes_ras_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesRasGetConfigEpilogue( zes_ras_handle_t hRas, zes_ras_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesRasGetConfigEpilogue( zes_ras_handle_t hRas, zes_ras_config_t* pConfig , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesRasSetConfigPrologue( zes_ras_handle_t hRas, const zes_ras_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesRasSetConfigEpilogue( zes_ras_handle_t hRas, const zes_ras_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesRasSetConfigEpilogue( zes_ras_handle_t hRas, const zes_ras_config_t* pConfig , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesRasGetStatePrologue( zes_ras_handle_t hRas, ze_bool_t clear, zes_ras_state_t* pState ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesRasGetStateEpilogue( zes_ras_handle_t hRas, ze_bool_t clear, zes_ras_state_t* pState ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesRasGetStateEpilogue( zes_ras_handle_t hRas, ze_bool_t clear, zes_ras_state_t* pState , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumSchedulersPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_sched_handle_t* phScheduler ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumSchedulersEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_sched_handle_t* phScheduler ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumSchedulersEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_sched_handle_t* phScheduler , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesSchedulerGetPropertiesPrologue( zes_sched_handle_t hScheduler, zes_sched_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesSchedulerGetPropertiesEpilogue( zes_sched_handle_t hScheduler, zes_sched_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesSchedulerGetPropertiesEpilogue( zes_sched_handle_t hScheduler, zes_sched_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesSchedulerGetCurrentModePrologue( zes_sched_handle_t hScheduler, zes_sched_mode_t* pMode ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesSchedulerGetCurrentModeEpilogue( zes_sched_handle_t hScheduler, zes_sched_mode_t* pMode ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesSchedulerGetCurrentModeEpilogue( zes_sched_handle_t hScheduler, zes_sched_mode_t* pMode , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesSchedulerGetTimeoutModePropertiesPrologue( zes_sched_handle_t hScheduler, ze_bool_t getDefaults, zes_sched_timeout_properties_t* pConfig ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesSchedulerGetTimeoutModePropertiesEpilogue( zes_sched_handle_t hScheduler, ze_bool_t getDefaults, zes_sched_timeout_properties_t* pConfig ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesSchedulerGetTimeoutModePropertiesEpilogue( zes_sched_handle_t hScheduler, ze_bool_t getDefaults, zes_sched_timeout_properties_t* pConfig , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesSchedulerGetTimesliceModePropertiesPrologue( zes_sched_handle_t hScheduler, ze_bool_t getDefaults, zes_sched_timeslice_properties_t* pConfig ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesSchedulerGetTimesliceModePropertiesEpilogue( zes_sched_handle_t hScheduler, ze_bool_t getDefaults, zes_sched_timeslice_properties_t* pConfig ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesSchedulerGetTimesliceModePropertiesEpilogue( zes_sched_handle_t hScheduler, ze_bool_t getDefaults, zes_sched_timeslice_properties_t* pConfig , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesSchedulerSetTimeoutModePrologue( zes_sched_handle_t hScheduler, zes_sched_timeout_properties_t* pProperties, ze_bool_t* pNeedReload ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesSchedulerSetTimeoutModeEpilogue( zes_sched_handle_t hScheduler, zes_sched_timeout_properties_t* pProperties, ze_bool_t* pNeedReload ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesSchedulerSetTimeoutModeEpilogue( zes_sched_handle_t hScheduler, zes_sched_timeout_properties_t* pProperties, ze_bool_t* pNeedReload , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesSchedulerSetTimesliceModePrologue( zes_sched_handle_t hScheduler, zes_sched_timeslice_properties_t* pProperties, ze_bool_t* pNeedReload ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesSchedulerSetTimesliceModeEpilogue( zes_sched_handle_t hScheduler, zes_sched_timeslice_properties_t* pProperties, ze_bool_t* pNeedReload ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesSchedulerSetTimesliceModeEpilogue( zes_sched_handle_t hScheduler, zes_sched_timeslice_properties_t* pProperties, ze_bool_t* pNeedReload , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesSchedulerSetExclusiveModePrologue( zes_sched_handle_t hScheduler, ze_bool_t* pNeedReload ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesSchedulerSetExclusiveModeEpilogue( zes_sched_handle_t hScheduler, ze_bool_t* pNeedReload ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesSchedulerSetExclusiveModeEpilogue( zes_sched_handle_t hScheduler, ze_bool_t* pNeedReload , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesSchedulerSetComputeUnitDebugModePrologue( zes_sched_handle_t hScheduler, ze_bool_t* pNeedReload ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesSchedulerSetComputeUnitDebugModeEpilogue( zes_sched_handle_t hScheduler, ze_bool_t* pNeedReload ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesSchedulerSetComputeUnitDebugModeEpilogue( zes_sched_handle_t hScheduler, ze_bool_t* pNeedReload , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumStandbyDomainsPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_standby_handle_t* phStandby ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumStandbyDomainsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_standby_handle_t* phStandby ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumStandbyDomainsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_standby_handle_t* phStandby , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesStandbyGetPropertiesPrologue( zes_standby_handle_t hStandby, zes_standby_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesStandbyGetPropertiesEpilogue( zes_standby_handle_t hStandby, zes_standby_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesStandbyGetPropertiesEpilogue( zes_standby_handle_t hStandby, zes_standby_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesStandbyGetModePrologue( zes_standby_handle_t hStandby, zes_standby_promo_mode_t* pMode ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesStandbyGetModeEpilogue( zes_standby_handle_t hStandby, zes_standby_promo_mode_t* pMode ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesStandbyGetModeEpilogue( zes_standby_handle_t hStandby, zes_standby_promo_mode_t* pMode , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesStandbySetModePrologue( zes_standby_handle_t hStandby, zes_standby_promo_mode_t mode ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesStandbySetModeEpilogue( zes_standby_handle_t hStandby, zes_standby_promo_mode_t mode ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesStandbySetModeEpilogue( zes_standby_handle_t hStandby, zes_standby_promo_mode_t mode , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumTemperatureSensorsPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_temp_handle_t* phTemperature ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumTemperatureSensorsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_temp_handle_t* phTemperature ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumTemperatureSensorsEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_temp_handle_t* phTemperature , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesTemperatureGetPropertiesPrologue( zes_temp_handle_t hTemperature, zes_temp_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesTemperatureGetPropertiesEpilogue( zes_temp_handle_t hTemperature, zes_temp_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesTemperatureGetPropertiesEpilogue( zes_temp_handle_t hTemperature, zes_temp_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesTemperatureGetConfigPrologue( zes_temp_handle_t hTemperature, zes_temp_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesTemperatureGetConfigEpilogue( zes_temp_handle_t hTemperature, zes_temp_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesTemperatureGetConfigEpilogue( zes_temp_handle_t hTemperature, zes_temp_config_t* pConfig , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesTemperatureSetConfigPrologue( zes_temp_handle_t hTemperature, const zes_temp_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesTemperatureSetConfigEpilogue( zes_temp_handle_t hTemperature, const zes_temp_config_t* pConfig ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesTemperatureSetConfigEpilogue( zes_temp_handle_t hTemperature, const zes_temp_config_t* pConfig , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesTemperatureGetStatePrologue( zes_temp_handle_t hTemperature, double* pTemperature ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesTemperatureGetStateEpilogue( zes_temp_handle_t hTemperature, double* pTemperature ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesTemperatureGetStateEpilogue( zes_temp_handle_t hTemperature, double* pTemperature , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPowerGetLimitsExtPrologue( zes_pwr_handle_t hPower, uint32_t* pCount, zes_power_limit_ext_desc_t* pSustained ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPowerGetLimitsExtEpilogue( zes_pwr_handle_t hPower, uint32_t* pCount, zes_power_limit_ext_desc_t* pSustained ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPowerGetLimitsExtEpilogue( zes_pwr_handle_t hPower, uint32_t* pCount, zes_power_limit_ext_desc_t* pSustained , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesPowerSetLimitsExtPrologue( zes_pwr_handle_t hPower, uint32_t* pCount, zes_power_limit_ext_desc_t* pSustained ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesPowerSetLimitsExtEpilogue( zes_pwr_handle_t hPower, uint32_t* pCount, zes_power_limit_ext_desc_t* pSustained ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesPowerSetLimitsExtEpilogue( zes_pwr_handle_t hPower, uint32_t* pCount, zes_power_limit_ext_desc_t* pSustained , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesEngineGetActivityExtPrologue( zes_engine_handle_t hEngine, uint32_t* pCount, zes_engine_stats_t* pStats ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesEngineGetActivityExtEpilogue( zes_engine_handle_t hEngine, uint32_t* pCount, zes_engine_stats_t* pStats ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesEngineGetActivityExtEpilogue( zes_engine_handle_t hEngine, uint32_t* pCount, zes_engine_stats_t* pStats , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesRasGetStateExpPrologue( zes_ras_handle_t hRas, uint32_t* pCount, zes_ras_state_exp_t* pState ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesRasGetStateExpEpilogue( zes_ras_handle_t hRas, uint32_t* pCount, zes_ras_state_exp_t* pState ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesRasGetStateExpEpilogue( zes_ras_handle_t hRas, uint32_t* pCount, zes_ras_state_exp_t* pState , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesRasClearStateExpPrologue( zes_ras_handle_t hRas, zes_ras_error_category_exp_t category ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesRasClearStateExpEpilogue( zes_ras_handle_t hRas, zes_ras_error_category_exp_t category ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesRasClearStateExpEpilogue( zes_ras_handle_t hRas, zes_ras_error_category_exp_t category , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFirmwareGetSecurityVersionExpPrologue( zes_firmware_handle_t hFirmware, char* pVersion ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFirmwareGetSecurityVersionExpEpilogue( zes_firmware_handle_t hFirmware, char* pVersion ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFirmwareGetSecurityVersionExpEpilogue( zes_firmware_handle_t hFirmware, char* pVersion , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesFirmwareSetSecurityVersionExpPrologue( zes_firmware_handle_t hFirmware ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesFirmwareSetSecurityVersionExpEpilogue( zes_firmware_handle_t hFirmware ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesFirmwareSetSecurityVersionExpEpilogue( zes_firmware_handle_t hFirmware , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceGetSubDevicePropertiesExpPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_subdevice_exp_properties_t* pSubdeviceProps ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceGetSubDevicePropertiesExpEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_subdevice_exp_properties_t* pSubdeviceProps ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceGetSubDevicePropertiesExpEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_subdevice_exp_properties_t* pSubdeviceProps , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDriverGetDeviceByUuidExpPrologue( zes_driver_handle_t hDriver, zes_uuid_t uuid, zes_device_handle_t* phDevice, ze_bool_t* onSubdevice, uint32_t* subdeviceId ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDriverGetDeviceByUuidExpEpilogue( zes_driver_handle_t hDriver, zes_uuid_t uuid, zes_device_handle_t* phDevice, ze_bool_t* onSubdevice, uint32_t* subdeviceId ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDriverGetDeviceByUuidExpEpilogue( zes_driver_handle_t hDriver, zes_uuid_t uuid, zes_device_handle_t* phDevice, ze_bool_t* onSubdevice, uint32_t* subdeviceId , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumActiveVFExpPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_vf_handle_t* phVFhandle ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumActiveVFExpEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_vf_handle_t* phVFhandle ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumActiveVFExpEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_vf_handle_t* phVFhandle , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesVFManagementGetVFPropertiesExpPrologue( zes_vf_handle_t hVFhandle, zes_vf_exp_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesVFManagementGetVFPropertiesExpEpilogue( zes_vf_handle_t hVFhandle, zes_vf_exp_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesVFManagementGetVFPropertiesExpEpilogue( zes_vf_handle_t hVFhandle, zes_vf_exp_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesVFManagementGetVFMemoryUtilizationExpPrologue( zes_vf_handle_t hVFhandle, uint32_t* pCount, zes_vf_util_mem_exp_t* pMemUtil ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesVFManagementGetVFMemoryUtilizationExpEpilogue( zes_vf_handle_t hVFhandle, uint32_t* pCount, zes_vf_util_mem_exp_t* pMemUtil ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesVFManagementGetVFMemoryUtilizationExpEpilogue( zes_vf_handle_t hVFhandle, uint32_t* pCount, zes_vf_util_mem_exp_t* pMemUtil , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesVFManagementGetVFEngineUtilizationExpPrologue( zes_vf_handle_t hVFhandle, uint32_t* pCount, zes_vf_util_engine_exp_t* pEngineUtil ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesVFManagementGetVFEngineUtilizationExpEpilogue( zes_vf_handle_t hVFhandle, uint32_t* pCount, zes_vf_util_engine_exp_t* pEngineUtil ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesVFManagementGetVFEngineUtilizationExpEpilogue( zes_vf_handle_t hVFhandle, uint32_t* pCount, zes_vf_util_engine_exp_t* pEngineUtil , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesVFManagementSetVFTelemetryModeExpPrologue( zes_vf_handle_t hVFhandle, zes_vf_info_util_exp_flags_t flags, ze_bool_t enable ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesVFManagementSetVFTelemetryModeExpEpilogue( zes_vf_handle_t hVFhandle, zes_vf_info_util_exp_flags_t flags, ze_bool_t enable ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesVFManagementSetVFTelemetryModeExpEpilogue( zes_vf_handle_t hVFhandle, zes_vf_info_util_exp_flags_t flags, ze_bool_t enable , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesVFManagementSetVFTelemetrySamplingIntervalExpPrologue( zes_vf_handle_t hVFhandle, zes_vf_info_util_exp_flags_t flag, uint64_t samplingInterval ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesVFManagementSetVFTelemetrySamplingIntervalExpEpilogue( zes_vf_handle_t hVFhandle, zes_vf_info_util_exp_flags_t flag, uint64_t samplingInterval ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesVFManagementSetVFTelemetrySamplingIntervalExpEpilogue( zes_vf_handle_t hVFhandle, zes_vf_info_util_exp_flags_t flag, uint64_t samplingInterval , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesDeviceEnumEnabledVFExpPrologue( zes_device_handle_t hDevice, uint32_t* pCount, zes_vf_handle_t* phVFhandle ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesDeviceEnumEnabledVFExpEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_vf_handle_t* phVFhandle ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesDeviceEnumEnabledVFExpEpilogue( zes_device_handle_t hDevice, uint32_t* pCount, zes_vf_handle_t* phVFhandle , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesVFManagementGetVFCapabilitiesExpPrologue( zes_vf_handle_t hVFhandle, zes_vf_exp_capabilities_t* pCapability ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesVFManagementGetVFCapabilitiesExpEpilogue( zes_vf_handle_t hVFhandle, zes_vf_exp_capabilities_t* pCapability ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesVFManagementGetVFCapabilitiesExpEpilogue( zes_vf_handle_t hVFhandle, zes_vf_exp_capabilities_t* pCapability , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesVFManagementGetVFMemoryUtilizationExp2Prologue( zes_vf_handle_t hVFhandle, uint32_t* pCount, zes_vf_util_mem_exp2_t* pMemUtil ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesVFManagementGetVFMemoryUtilizationExp2Epilogue( zes_vf_handle_t hVFhandle, uint32_t* pCount, zes_vf_util_mem_exp2_t* pMemUtil ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesVFManagementGetVFMemoryUtilizationExp2Epilogue( zes_vf_handle_t hVFhandle, uint32_t* pCount, zes_vf_util_mem_exp2_t* pMemUtil , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zesVFManagementGetVFEngineUtilizationExp2Prologue( zes_vf_handle_t hVFhandle, uint32_t* pCount, zes_vf_util_engine_exp2_t* pEngineUtil ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zesVFManagementGetVFEngineUtilizationExp2Epilogue( zes_vf_handle_t hVFhandle, uint32_t* pCount, zes_vf_util_engine_exp2_t* pEngineUtil ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zesVFManagementGetVFEngineUtilizationExp2Epilogue( zes_vf_handle_t hVFhandle, uint32_t* pCount, zes_vf_util_engine_exp2_t* pEngineUtil , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ~ZESValidationEntryPoints() {} }; } \ No newline at end of file diff --git a/source/layers/validation/common/zet_entry_points.h b/source/layers/validation/common/zet_entry_points.h index ec5d5a40..1f3a3915 100644 --- a/source/layers/validation/common/zet_entry_points.h +++ b/source/layers/validation/common/zet_entry_points.h @@ -18,137 +18,137 @@ namespace validation_layer class ZETValidationEntryPoints { public: virtual ze_result_t zetModuleGetDebugInfoPrologue( zet_module_handle_t hModule, zet_module_debug_info_format_t format, size_t* pSize, uint8_t* pDebugInfo ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetModuleGetDebugInfoEpilogue( zet_module_handle_t hModule, zet_module_debug_info_format_t format, size_t* pSize, uint8_t* pDebugInfo ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetModuleGetDebugInfoEpilogue( zet_module_handle_t hModule, zet_module_debug_info_format_t format, size_t* pSize, uint8_t* pDebugInfo , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDeviceGetDebugPropertiesPrologue( zet_device_handle_t hDevice, zet_device_debug_properties_t* pDebugProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDeviceGetDebugPropertiesEpilogue( zet_device_handle_t hDevice, zet_device_debug_properties_t* pDebugProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDeviceGetDebugPropertiesEpilogue( zet_device_handle_t hDevice, zet_device_debug_properties_t* pDebugProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDebugAttachPrologue( zet_device_handle_t hDevice, const zet_debug_config_t* config, zet_debug_session_handle_t* phDebug ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDebugAttachEpilogue( zet_device_handle_t hDevice, const zet_debug_config_t* config, zet_debug_session_handle_t* phDebug ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDebugAttachEpilogue( zet_device_handle_t hDevice, const zet_debug_config_t* config, zet_debug_session_handle_t* phDebug , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDebugDetachPrologue( zet_debug_session_handle_t hDebug ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDebugDetachEpilogue( zet_debug_session_handle_t hDebug ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDebugDetachEpilogue( zet_debug_session_handle_t hDebug , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDebugReadEventPrologue( zet_debug_session_handle_t hDebug, uint64_t timeout, zet_debug_event_t* event ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDebugReadEventEpilogue( zet_debug_session_handle_t hDebug, uint64_t timeout, zet_debug_event_t* event ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDebugReadEventEpilogue( zet_debug_session_handle_t hDebug, uint64_t timeout, zet_debug_event_t* event , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDebugAcknowledgeEventPrologue( zet_debug_session_handle_t hDebug, const zet_debug_event_t* event ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDebugAcknowledgeEventEpilogue( zet_debug_session_handle_t hDebug, const zet_debug_event_t* event ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDebugAcknowledgeEventEpilogue( zet_debug_session_handle_t hDebug, const zet_debug_event_t* event , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDebugInterruptPrologue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDebugInterruptEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDebugInterruptEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDebugResumePrologue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDebugResumeEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDebugResumeEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDebugReadMemoryPrologue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, const zet_debug_memory_space_desc_t* desc, size_t size, void* buffer ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDebugReadMemoryEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, const zet_debug_memory_space_desc_t* desc, size_t size, void* buffer ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDebugReadMemoryEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, const zet_debug_memory_space_desc_t* desc, size_t size, void* buffer , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDebugWriteMemoryPrologue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, const zet_debug_memory_space_desc_t* desc, size_t size, const void* buffer ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDebugWriteMemoryEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, const zet_debug_memory_space_desc_t* desc, size_t size, const void* buffer ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDebugWriteMemoryEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, const zet_debug_memory_space_desc_t* desc, size_t size, const void* buffer , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDebugGetRegisterSetPropertiesPrologue( zet_device_handle_t hDevice, uint32_t* pCount, zet_debug_regset_properties_t* pRegisterSetProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDebugGetRegisterSetPropertiesEpilogue( zet_device_handle_t hDevice, uint32_t* pCount, zet_debug_regset_properties_t* pRegisterSetProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDebugGetRegisterSetPropertiesEpilogue( zet_device_handle_t hDevice, uint32_t* pCount, zet_debug_regset_properties_t* pRegisterSetProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDebugGetThreadRegisterSetPropertiesPrologue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, uint32_t* pCount, zet_debug_regset_properties_t* pRegisterSetProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDebugGetThreadRegisterSetPropertiesEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, uint32_t* pCount, zet_debug_regset_properties_t* pRegisterSetProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDebugGetThreadRegisterSetPropertiesEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, uint32_t* pCount, zet_debug_regset_properties_t* pRegisterSetProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDebugReadRegistersPrologue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, uint32_t type, uint32_t start, uint32_t count, void* pRegisterValues ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDebugReadRegistersEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, uint32_t type, uint32_t start, uint32_t count, void* pRegisterValues ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDebugReadRegistersEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, uint32_t type, uint32_t start, uint32_t count, void* pRegisterValues , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDebugWriteRegistersPrologue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, uint32_t type, uint32_t start, uint32_t count, void* pRegisterValues ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDebugWriteRegistersEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, uint32_t type, uint32_t start, uint32_t count, void* pRegisterValues ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDebugWriteRegistersEpilogue( zet_debug_session_handle_t hDebug, ze_device_thread_t thread, uint32_t type, uint32_t start, uint32_t count, void* pRegisterValues , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGroupGetPrologue( zet_device_handle_t hDevice, uint32_t* pCount, zet_metric_group_handle_t* phMetricGroups ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGroupGetEpilogue( zet_device_handle_t hDevice, uint32_t* pCount, zet_metric_group_handle_t* phMetricGroups ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGroupGetEpilogue( zet_device_handle_t hDevice, uint32_t* pCount, zet_metric_group_handle_t* phMetricGroups , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGroupGetPropertiesPrologue( zet_metric_group_handle_t hMetricGroup, zet_metric_group_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGroupGetPropertiesEpilogue( zet_metric_group_handle_t hMetricGroup, zet_metric_group_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGroupGetPropertiesEpilogue( zet_metric_group_handle_t hMetricGroup, zet_metric_group_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGroupCalculateMetricValuesPrologue( zet_metric_group_handle_t hMetricGroup, zet_metric_group_calculation_type_t type, size_t rawDataSize, const uint8_t* pRawData, uint32_t* pMetricValueCount, zet_typed_value_t* pMetricValues ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGroupCalculateMetricValuesEpilogue( zet_metric_group_handle_t hMetricGroup, zet_metric_group_calculation_type_t type, size_t rawDataSize, const uint8_t* pRawData, uint32_t* pMetricValueCount, zet_typed_value_t* pMetricValues ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGroupCalculateMetricValuesEpilogue( zet_metric_group_handle_t hMetricGroup, zet_metric_group_calculation_type_t type, size_t rawDataSize, const uint8_t* pRawData, uint32_t* pMetricValueCount, zet_typed_value_t* pMetricValues , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGetPrologue( zet_metric_group_handle_t hMetricGroup, uint32_t* pCount, zet_metric_handle_t* phMetrics ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGetEpilogue( zet_metric_group_handle_t hMetricGroup, uint32_t* pCount, zet_metric_handle_t* phMetrics ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGetEpilogue( zet_metric_group_handle_t hMetricGroup, uint32_t* pCount, zet_metric_handle_t* phMetrics , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGetPropertiesPrologue( zet_metric_handle_t hMetric, zet_metric_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGetPropertiesEpilogue( zet_metric_handle_t hMetric, zet_metric_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGetPropertiesEpilogue( zet_metric_handle_t hMetric, zet_metric_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetContextActivateMetricGroupsPrologue( zet_context_handle_t hContext, zet_device_handle_t hDevice, uint32_t count, zet_metric_group_handle_t* phMetricGroups ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetContextActivateMetricGroupsEpilogue( zet_context_handle_t hContext, zet_device_handle_t hDevice, uint32_t count, zet_metric_group_handle_t* phMetricGroups ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetContextActivateMetricGroupsEpilogue( zet_context_handle_t hContext, zet_device_handle_t hDevice, uint32_t count, zet_metric_group_handle_t* phMetricGroups , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricStreamerOpenPrologue( zet_context_handle_t hContext, zet_device_handle_t hDevice, zet_metric_group_handle_t hMetricGroup, zet_metric_streamer_desc_t* desc, ze_event_handle_t hNotificationEvent, zet_metric_streamer_handle_t* phMetricStreamer ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricStreamerOpenEpilogue( zet_context_handle_t hContext, zet_device_handle_t hDevice, zet_metric_group_handle_t hMetricGroup, zet_metric_streamer_desc_t* desc, ze_event_handle_t hNotificationEvent, zet_metric_streamer_handle_t* phMetricStreamer ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricStreamerOpenEpilogue( zet_context_handle_t hContext, zet_device_handle_t hDevice, zet_metric_group_handle_t hMetricGroup, zet_metric_streamer_desc_t* desc, ze_event_handle_t hNotificationEvent, zet_metric_streamer_handle_t* phMetricStreamer , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetCommandListAppendMetricStreamerMarkerPrologue( zet_command_list_handle_t hCommandList, zet_metric_streamer_handle_t hMetricStreamer, uint32_t value ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetCommandListAppendMetricStreamerMarkerEpilogue( zet_command_list_handle_t hCommandList, zet_metric_streamer_handle_t hMetricStreamer, uint32_t value ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetCommandListAppendMetricStreamerMarkerEpilogue( zet_command_list_handle_t hCommandList, zet_metric_streamer_handle_t hMetricStreamer, uint32_t value , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricStreamerClosePrologue( zet_metric_streamer_handle_t hMetricStreamer ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricStreamerCloseEpilogue( zet_metric_streamer_handle_t hMetricStreamer ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricStreamerCloseEpilogue( zet_metric_streamer_handle_t hMetricStreamer , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricStreamerReadDataPrologue( zet_metric_streamer_handle_t hMetricStreamer, uint32_t maxReportCount, size_t* pRawDataSize, uint8_t* pRawData ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricStreamerReadDataEpilogue( zet_metric_streamer_handle_t hMetricStreamer, uint32_t maxReportCount, size_t* pRawDataSize, uint8_t* pRawData ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricStreamerReadDataEpilogue( zet_metric_streamer_handle_t hMetricStreamer, uint32_t maxReportCount, size_t* pRawDataSize, uint8_t* pRawData , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricQueryPoolCreatePrologue( zet_context_handle_t hContext, zet_device_handle_t hDevice, zet_metric_group_handle_t hMetricGroup, const zet_metric_query_pool_desc_t* desc, zet_metric_query_pool_handle_t* phMetricQueryPool ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricQueryPoolCreateEpilogue( zet_context_handle_t hContext, zet_device_handle_t hDevice, zet_metric_group_handle_t hMetricGroup, const zet_metric_query_pool_desc_t* desc, zet_metric_query_pool_handle_t* phMetricQueryPool ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricQueryPoolCreateEpilogue( zet_context_handle_t hContext, zet_device_handle_t hDevice, zet_metric_group_handle_t hMetricGroup, const zet_metric_query_pool_desc_t* desc, zet_metric_query_pool_handle_t* phMetricQueryPool , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricQueryPoolDestroyPrologue( zet_metric_query_pool_handle_t hMetricQueryPool ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricQueryPoolDestroyEpilogue( zet_metric_query_pool_handle_t hMetricQueryPool ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricQueryPoolDestroyEpilogue( zet_metric_query_pool_handle_t hMetricQueryPool , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricQueryCreatePrologue( zet_metric_query_pool_handle_t hMetricQueryPool, uint32_t index, zet_metric_query_handle_t* phMetricQuery ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricQueryCreateEpilogue( zet_metric_query_pool_handle_t hMetricQueryPool, uint32_t index, zet_metric_query_handle_t* phMetricQuery ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricQueryCreateEpilogue( zet_metric_query_pool_handle_t hMetricQueryPool, uint32_t index, zet_metric_query_handle_t* phMetricQuery , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricQueryDestroyPrologue( zet_metric_query_handle_t hMetricQuery ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricQueryDestroyEpilogue( zet_metric_query_handle_t hMetricQuery ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricQueryDestroyEpilogue( zet_metric_query_handle_t hMetricQuery , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricQueryResetPrologue( zet_metric_query_handle_t hMetricQuery ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricQueryResetEpilogue( zet_metric_query_handle_t hMetricQuery ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricQueryResetEpilogue( zet_metric_query_handle_t hMetricQuery , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetCommandListAppendMetricQueryBeginPrologue( zet_command_list_handle_t hCommandList, zet_metric_query_handle_t hMetricQuery ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetCommandListAppendMetricQueryBeginEpilogue( zet_command_list_handle_t hCommandList, zet_metric_query_handle_t hMetricQuery ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetCommandListAppendMetricQueryBeginEpilogue( zet_command_list_handle_t hCommandList, zet_metric_query_handle_t hMetricQuery , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetCommandListAppendMetricQueryEndPrologue( zet_command_list_handle_t hCommandList, zet_metric_query_handle_t hMetricQuery, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetCommandListAppendMetricQueryEndEpilogue( zet_command_list_handle_t hCommandList, zet_metric_query_handle_t hMetricQuery, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetCommandListAppendMetricQueryEndEpilogue( zet_command_list_handle_t hCommandList, zet_metric_query_handle_t hMetricQuery, ze_event_handle_t hSignalEvent, uint32_t numWaitEvents, ze_event_handle_t* phWaitEvents , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetCommandListAppendMetricMemoryBarrierPrologue( zet_command_list_handle_t hCommandList ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetCommandListAppendMetricMemoryBarrierEpilogue( zet_command_list_handle_t hCommandList ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetCommandListAppendMetricMemoryBarrierEpilogue( zet_command_list_handle_t hCommandList , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricQueryGetDataPrologue( zet_metric_query_handle_t hMetricQuery, size_t* pRawDataSize, uint8_t* pRawData ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricQueryGetDataEpilogue( zet_metric_query_handle_t hMetricQuery, size_t* pRawDataSize, uint8_t* pRawData ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricQueryGetDataEpilogue( zet_metric_query_handle_t hMetricQuery, size_t* pRawDataSize, uint8_t* pRawData , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetKernelGetProfileInfoPrologue( zet_kernel_handle_t hKernel, zet_profile_properties_t* pProfileProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetKernelGetProfileInfoEpilogue( zet_kernel_handle_t hKernel, zet_profile_properties_t* pProfileProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetKernelGetProfileInfoEpilogue( zet_kernel_handle_t hKernel, zet_profile_properties_t* pProfileProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetTracerExpCreatePrologue( zet_context_handle_t hContext, const zet_tracer_exp_desc_t* desc, zet_tracer_exp_handle_t* phTracer ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetTracerExpCreateEpilogue( zet_context_handle_t hContext, const zet_tracer_exp_desc_t* desc, zet_tracer_exp_handle_t* phTracer ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetTracerExpCreateEpilogue( zet_context_handle_t hContext, const zet_tracer_exp_desc_t* desc, zet_tracer_exp_handle_t* phTracer , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetTracerExpDestroyPrologue( zet_tracer_exp_handle_t hTracer ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetTracerExpDestroyEpilogue( zet_tracer_exp_handle_t hTracer ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetTracerExpDestroyEpilogue( zet_tracer_exp_handle_t hTracer , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetTracerExpSetProloguesPrologue( zet_tracer_exp_handle_t hTracer, zet_core_callbacks_t* pCoreCbs ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetTracerExpSetProloguesEpilogue( zet_tracer_exp_handle_t hTracer, zet_core_callbacks_t* pCoreCbs ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetTracerExpSetProloguesEpilogue( zet_tracer_exp_handle_t hTracer, zet_core_callbacks_t* pCoreCbs , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetTracerExpSetEpiloguesPrologue( zet_tracer_exp_handle_t hTracer, zet_core_callbacks_t* pCoreCbs ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetTracerExpSetEpiloguesEpilogue( zet_tracer_exp_handle_t hTracer, zet_core_callbacks_t* pCoreCbs ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetTracerExpSetEpiloguesEpilogue( zet_tracer_exp_handle_t hTracer, zet_core_callbacks_t* pCoreCbs , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetTracerExpSetEnabledPrologue( zet_tracer_exp_handle_t hTracer, ze_bool_t enable ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetTracerExpSetEnabledEpilogue( zet_tracer_exp_handle_t hTracer, ze_bool_t enable ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetTracerExpSetEnabledEpilogue( zet_tracer_exp_handle_t hTracer, ze_bool_t enable , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDeviceGetConcurrentMetricGroupsExpPrologue( zet_device_handle_t hDevice, uint32_t metricGroupCount, zet_metric_group_handle_t * phMetricGroups, uint32_t * pMetricGroupsCountPerConcurrentGroup, uint32_t * pConcurrentGroupCount ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDeviceGetConcurrentMetricGroupsExpEpilogue( zet_device_handle_t hDevice, uint32_t metricGroupCount, zet_metric_group_handle_t * phMetricGroups, uint32_t * pMetricGroupsCountPerConcurrentGroup, uint32_t * pConcurrentGroupCount ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDeviceGetConcurrentMetricGroupsExpEpilogue( zet_device_handle_t hDevice, uint32_t metricGroupCount, zet_metric_group_handle_t * phMetricGroups, uint32_t * pMetricGroupsCountPerConcurrentGroup, uint32_t * pConcurrentGroupCount , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricTracerCreateExpPrologue( zet_context_handle_t hContext, zet_device_handle_t hDevice, uint32_t metricGroupCount, zet_metric_group_handle_t* phMetricGroups, zet_metric_tracer_exp_desc_t* desc, ze_event_handle_t hNotificationEvent, zet_metric_tracer_exp_handle_t* phMetricTracer ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricTracerCreateExpEpilogue( zet_context_handle_t hContext, zet_device_handle_t hDevice, uint32_t metricGroupCount, zet_metric_group_handle_t* phMetricGroups, zet_metric_tracer_exp_desc_t* desc, ze_event_handle_t hNotificationEvent, zet_metric_tracer_exp_handle_t* phMetricTracer ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricTracerCreateExpEpilogue( zet_context_handle_t hContext, zet_device_handle_t hDevice, uint32_t metricGroupCount, zet_metric_group_handle_t* phMetricGroups, zet_metric_tracer_exp_desc_t* desc, ze_event_handle_t hNotificationEvent, zet_metric_tracer_exp_handle_t* phMetricTracer , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricTracerDestroyExpPrologue( zet_metric_tracer_exp_handle_t hMetricTracer ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricTracerDestroyExpEpilogue( zet_metric_tracer_exp_handle_t hMetricTracer ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricTracerDestroyExpEpilogue( zet_metric_tracer_exp_handle_t hMetricTracer , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricTracerEnableExpPrologue( zet_metric_tracer_exp_handle_t hMetricTracer, ze_bool_t synchronous ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricTracerEnableExpEpilogue( zet_metric_tracer_exp_handle_t hMetricTracer, ze_bool_t synchronous ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricTracerEnableExpEpilogue( zet_metric_tracer_exp_handle_t hMetricTracer, ze_bool_t synchronous , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricTracerDisableExpPrologue( zet_metric_tracer_exp_handle_t hMetricTracer, ze_bool_t synchronous ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricTracerDisableExpEpilogue( zet_metric_tracer_exp_handle_t hMetricTracer, ze_bool_t synchronous ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricTracerDisableExpEpilogue( zet_metric_tracer_exp_handle_t hMetricTracer, ze_bool_t synchronous , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricTracerReadDataExpPrologue( zet_metric_tracer_exp_handle_t hMetricTracer, size_t* pRawDataSize, uint8_t* pRawData ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricTracerReadDataExpEpilogue( zet_metric_tracer_exp_handle_t hMetricTracer, size_t* pRawDataSize, uint8_t* pRawData ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricTracerReadDataExpEpilogue( zet_metric_tracer_exp_handle_t hMetricTracer, size_t* pRawDataSize, uint8_t* pRawData , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricDecoderCreateExpPrologue( zet_metric_tracer_exp_handle_t hMetricTracer, zet_metric_decoder_exp_handle_t* phMetricDecoder ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricDecoderCreateExpEpilogue( zet_metric_tracer_exp_handle_t hMetricTracer, zet_metric_decoder_exp_handle_t* phMetricDecoder ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricDecoderCreateExpEpilogue( zet_metric_tracer_exp_handle_t hMetricTracer, zet_metric_decoder_exp_handle_t* phMetricDecoder , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricDecoderDestroyExpPrologue( zet_metric_decoder_exp_handle_t phMetricDecoder ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricDecoderDestroyExpEpilogue( zet_metric_decoder_exp_handle_t phMetricDecoder ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricDecoderDestroyExpEpilogue( zet_metric_decoder_exp_handle_t phMetricDecoder , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricDecoderGetDecodableMetricsExpPrologue( zet_metric_decoder_exp_handle_t hMetricDecoder, uint32_t* pCount, zet_metric_handle_t* phMetrics ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricDecoderGetDecodableMetricsExpEpilogue( zet_metric_decoder_exp_handle_t hMetricDecoder, uint32_t* pCount, zet_metric_handle_t* phMetrics ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricDecoderGetDecodableMetricsExpEpilogue( zet_metric_decoder_exp_handle_t hMetricDecoder, uint32_t* pCount, zet_metric_handle_t* phMetrics , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricTracerDecodeExpPrologue( zet_metric_decoder_exp_handle_t phMetricDecoder, size_t* pRawDataSize, uint8_t* pRawData, uint32_t metricsCount, zet_metric_handle_t* phMetrics, uint32_t* pSetCount, uint32_t* pMetricEntriesCountPerSet, uint32_t* pMetricEntriesCount, zet_metric_entry_exp_t* pMetricEntries ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricTracerDecodeExpEpilogue( zet_metric_decoder_exp_handle_t phMetricDecoder, size_t* pRawDataSize, uint8_t* pRawData, uint32_t metricsCount, zet_metric_handle_t* phMetrics, uint32_t* pSetCount, uint32_t* pMetricEntriesCountPerSet, uint32_t* pMetricEntriesCount, zet_metric_entry_exp_t* pMetricEntries ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricTracerDecodeExpEpilogue( zet_metric_decoder_exp_handle_t phMetricDecoder, size_t* pRawDataSize, uint8_t* pRawData, uint32_t metricsCount, zet_metric_handle_t* phMetrics, uint32_t* pSetCount, uint32_t* pMetricEntriesCountPerSet, uint32_t* pMetricEntriesCount, zet_metric_entry_exp_t* pMetricEntries , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGroupCalculateMultipleMetricValuesExpPrologue( zet_metric_group_handle_t hMetricGroup, zet_metric_group_calculation_type_t type, size_t rawDataSize, const uint8_t* pRawData, uint32_t* pSetCount, uint32_t* pTotalMetricValueCount, uint32_t* pMetricCounts, zet_typed_value_t* pMetricValues ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGroupCalculateMultipleMetricValuesExpEpilogue( zet_metric_group_handle_t hMetricGroup, zet_metric_group_calculation_type_t type, size_t rawDataSize, const uint8_t* pRawData, uint32_t* pSetCount, uint32_t* pTotalMetricValueCount, uint32_t* pMetricCounts, zet_typed_value_t* pMetricValues ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGroupCalculateMultipleMetricValuesExpEpilogue( zet_metric_group_handle_t hMetricGroup, zet_metric_group_calculation_type_t type, size_t rawDataSize, const uint8_t* pRawData, uint32_t* pSetCount, uint32_t* pTotalMetricValueCount, uint32_t* pMetricCounts, zet_typed_value_t* pMetricValues , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGroupGetGlobalTimestampsExpPrologue( zet_metric_group_handle_t hMetricGroup, ze_bool_t synchronizedWithHost, uint64_t* globalTimestamp, uint64_t* metricTimestamp ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGroupGetGlobalTimestampsExpEpilogue( zet_metric_group_handle_t hMetricGroup, ze_bool_t synchronizedWithHost, uint64_t* globalTimestamp, uint64_t* metricTimestamp ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGroupGetGlobalTimestampsExpEpilogue( zet_metric_group_handle_t hMetricGroup, ze_bool_t synchronizedWithHost, uint64_t* globalTimestamp, uint64_t* metricTimestamp , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGroupGetExportDataExpPrologue( zet_metric_group_handle_t hMetricGroup, const uint8_t* pRawData, size_t rawDataSize, size_t* pExportDataSize, uint8_t * pExportData ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGroupGetExportDataExpEpilogue( zet_metric_group_handle_t hMetricGroup, const uint8_t* pRawData, size_t rawDataSize, size_t* pExportDataSize, uint8_t * pExportData ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGroupGetExportDataExpEpilogue( zet_metric_group_handle_t hMetricGroup, const uint8_t* pRawData, size_t rawDataSize, size_t* pExportDataSize, uint8_t * pExportData , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGroupCalculateMetricExportDataExpPrologue( ze_driver_handle_t hDriver, zet_metric_group_calculation_type_t type, size_t exportDataSize, const uint8_t* pExportData, zet_metric_calculate_exp_desc_t* pCalculateDescriptor, uint32_t* pSetCount, uint32_t* pTotalMetricValueCount, uint32_t* pMetricCounts, zet_typed_value_t* pMetricValues ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGroupCalculateMetricExportDataExpEpilogue( ze_driver_handle_t hDriver, zet_metric_group_calculation_type_t type, size_t exportDataSize, const uint8_t* pExportData, zet_metric_calculate_exp_desc_t* pCalculateDescriptor, uint32_t* pSetCount, uint32_t* pTotalMetricValueCount, uint32_t* pMetricCounts, zet_typed_value_t* pMetricValues ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGroupCalculateMetricExportDataExpEpilogue( ze_driver_handle_t hDriver, zet_metric_group_calculation_type_t type, size_t exportDataSize, const uint8_t* pExportData, zet_metric_calculate_exp_desc_t* pCalculateDescriptor, uint32_t* pSetCount, uint32_t* pTotalMetricValueCount, uint32_t* pMetricCounts, zet_typed_value_t* pMetricValues , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricProgrammableGetExpPrologue( zet_device_handle_t hDevice, uint32_t* pCount, zet_metric_programmable_exp_handle_t* phMetricProgrammables ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricProgrammableGetExpEpilogue( zet_device_handle_t hDevice, uint32_t* pCount, zet_metric_programmable_exp_handle_t* phMetricProgrammables ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricProgrammableGetExpEpilogue( zet_device_handle_t hDevice, uint32_t* pCount, zet_metric_programmable_exp_handle_t* phMetricProgrammables , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricProgrammableGetPropertiesExpPrologue( zet_metric_programmable_exp_handle_t hMetricProgrammable, zet_metric_programmable_exp_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricProgrammableGetPropertiesExpEpilogue( zet_metric_programmable_exp_handle_t hMetricProgrammable, zet_metric_programmable_exp_properties_t* pProperties ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricProgrammableGetPropertiesExpEpilogue( zet_metric_programmable_exp_handle_t hMetricProgrammable, zet_metric_programmable_exp_properties_t* pProperties , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricProgrammableGetParamInfoExpPrologue( zet_metric_programmable_exp_handle_t hMetricProgrammable, uint32_t* pParameterCount, zet_metric_programmable_param_info_exp_t* pParameterInfo ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricProgrammableGetParamInfoExpEpilogue( zet_metric_programmable_exp_handle_t hMetricProgrammable, uint32_t* pParameterCount, zet_metric_programmable_param_info_exp_t* pParameterInfo ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricProgrammableGetParamInfoExpEpilogue( zet_metric_programmable_exp_handle_t hMetricProgrammable, uint32_t* pParameterCount, zet_metric_programmable_param_info_exp_t* pParameterInfo , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricProgrammableGetParamValueInfoExpPrologue( zet_metric_programmable_exp_handle_t hMetricProgrammable, uint32_t parameterOrdinal, uint32_t* pValueInfoCount, zet_metric_programmable_param_value_info_exp_t* pValueInfo ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricProgrammableGetParamValueInfoExpEpilogue( zet_metric_programmable_exp_handle_t hMetricProgrammable, uint32_t parameterOrdinal, uint32_t* pValueInfoCount, zet_metric_programmable_param_value_info_exp_t* pValueInfo ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricProgrammableGetParamValueInfoExpEpilogue( zet_metric_programmable_exp_handle_t hMetricProgrammable, uint32_t parameterOrdinal, uint32_t* pValueInfoCount, zet_metric_programmable_param_value_info_exp_t* pValueInfo , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricCreateFromProgrammableExp2Prologue( zet_metric_programmable_exp_handle_t hMetricProgrammable, uint32_t parameterCount, zet_metric_programmable_param_value_exp_t* pParameterValues, const char* pName, const char* pDescription, uint32_t* pMetricHandleCount, zet_metric_handle_t* phMetricHandles ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricCreateFromProgrammableExp2Epilogue( zet_metric_programmable_exp_handle_t hMetricProgrammable, uint32_t parameterCount, zet_metric_programmable_param_value_exp_t* pParameterValues, const char* pName, const char* pDescription, uint32_t* pMetricHandleCount, zet_metric_handle_t* phMetricHandles ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricCreateFromProgrammableExp2Epilogue( zet_metric_programmable_exp_handle_t hMetricProgrammable, uint32_t parameterCount, zet_metric_programmable_param_value_exp_t* pParameterValues, const char* pName, const char* pDescription, uint32_t* pMetricHandleCount, zet_metric_handle_t* phMetricHandles , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricCreateFromProgrammableExpPrologue( zet_metric_programmable_exp_handle_t hMetricProgrammable, zet_metric_programmable_param_value_exp_t* pParameterValues, uint32_t parameterCount, const char* pName, const char* pDescription, uint32_t* pMetricHandleCount, zet_metric_handle_t* phMetricHandles ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricCreateFromProgrammableExpEpilogue( zet_metric_programmable_exp_handle_t hMetricProgrammable, zet_metric_programmable_param_value_exp_t* pParameterValues, uint32_t parameterCount, const char* pName, const char* pDescription, uint32_t* pMetricHandleCount, zet_metric_handle_t* phMetricHandles ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricCreateFromProgrammableExpEpilogue( zet_metric_programmable_exp_handle_t hMetricProgrammable, zet_metric_programmable_param_value_exp_t* pParameterValues, uint32_t parameterCount, const char* pName, const char* pDescription, uint32_t* pMetricHandleCount, zet_metric_handle_t* phMetricHandles , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetDeviceCreateMetricGroupsFromMetricsExpPrologue( zet_device_handle_t hDevice, uint32_t metricCount, zet_metric_handle_t * phMetrics, const char * pMetricGroupNamePrefix, const char * pDescription, uint32_t * pMetricGroupCount, zet_metric_group_handle_t* phMetricGroup ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetDeviceCreateMetricGroupsFromMetricsExpEpilogue( zet_device_handle_t hDevice, uint32_t metricCount, zet_metric_handle_t * phMetrics, const char * pMetricGroupNamePrefix, const char * pDescription, uint32_t * pMetricGroupCount, zet_metric_group_handle_t* phMetricGroup ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetDeviceCreateMetricGroupsFromMetricsExpEpilogue( zet_device_handle_t hDevice, uint32_t metricCount, zet_metric_handle_t * phMetrics, const char * pMetricGroupNamePrefix, const char * pDescription, uint32_t * pMetricGroupCount, zet_metric_group_handle_t* phMetricGroup , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGroupCreateExpPrologue( zet_device_handle_t hDevice, const char* pName, const char* pDescription, zet_metric_group_sampling_type_flags_t samplingType, zet_metric_group_handle_t* phMetricGroup ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGroupCreateExpEpilogue( zet_device_handle_t hDevice, const char* pName, const char* pDescription, zet_metric_group_sampling_type_flags_t samplingType, zet_metric_group_handle_t* phMetricGroup ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGroupCreateExpEpilogue( zet_device_handle_t hDevice, const char* pName, const char* pDescription, zet_metric_group_sampling_type_flags_t samplingType, zet_metric_group_handle_t* phMetricGroup , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGroupAddMetricExpPrologue( zet_metric_group_handle_t hMetricGroup, zet_metric_handle_t hMetric, size_t * pErrorStringSize, char* pErrorString ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGroupAddMetricExpEpilogue( zet_metric_group_handle_t hMetricGroup, zet_metric_handle_t hMetric, size_t * pErrorStringSize, char* pErrorString ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGroupAddMetricExpEpilogue( zet_metric_group_handle_t hMetricGroup, zet_metric_handle_t hMetric, size_t * pErrorStringSize, char* pErrorString , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGroupRemoveMetricExpPrologue( zet_metric_group_handle_t hMetricGroup, zet_metric_handle_t hMetric ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGroupRemoveMetricExpEpilogue( zet_metric_group_handle_t hMetricGroup, zet_metric_handle_t hMetric ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGroupRemoveMetricExpEpilogue( zet_metric_group_handle_t hMetricGroup, zet_metric_handle_t hMetric , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGroupCloseExpPrologue( zet_metric_group_handle_t hMetricGroup ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGroupCloseExpEpilogue( zet_metric_group_handle_t hMetricGroup ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGroupCloseExpEpilogue( zet_metric_group_handle_t hMetricGroup , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricGroupDestroyExpPrologue( zet_metric_group_handle_t hMetricGroup ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricGroupDestroyExpEpilogue( zet_metric_group_handle_t hMetricGroup ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricGroupDestroyExpEpilogue( zet_metric_group_handle_t hMetricGroup , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ze_result_t zetMetricDestroyExpPrologue( zet_metric_handle_t hMetric ) {return ZE_RESULT_SUCCESS;} - virtual ze_result_t zetMetricDestroyExpEpilogue( zet_metric_handle_t hMetric ) {return ZE_RESULT_SUCCESS;} + virtual ze_result_t zetMetricDestroyExpEpilogue( zet_metric_handle_t hMetric , ze_result_t result) {return ZE_RESULT_SUCCESS;} virtual ~ZETValidationEntryPoints() {} }; } \ No newline at end of file diff --git a/source/layers/validation/ze_valddi.cpp b/source/layers/validation/ze_valddi.cpp index c639f521..bf6d7229 100644 --- a/source/layers/validation/ze_valddi.cpp +++ b/source/layers/validation/ze_valddi.cpp @@ -43,10 +43,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnInit( flags ); + auto driver_result = pfnInit( flags ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeInitEpilogue( flags ); + auto result = context.validationHandlers[i]->zeValidation->zeInitEpilogue( flags ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -89,10 +90,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGet( pCount, phDrivers ); + auto driver_result = pfnGet( pCount, phDrivers ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDriverGetEpilogue( pCount, phDrivers ); + auto result = context.validationHandlers[i]->zeValidation->zeDriverGetEpilogue( pCount, phDrivers ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -147,10 +149,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnInitDrivers( pCount, phDrivers, desc ); + auto driver_result = pfnInitDrivers( pCount, phDrivers, desc ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeInitDriversEpilogue( pCount, phDrivers, desc ); + auto result = context.validationHandlers[i]->zeValidation->zeInitDriversEpilogue( pCount, phDrivers, desc ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -187,10 +190,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetApiVersion( hDriver, version ); + auto driver_result = pfnGetApiVersion( hDriver, version ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDriverGetApiVersionEpilogue( hDriver, version ); + auto result = context.validationHandlers[i]->zeValidation->zeDriverGetApiVersionEpilogue( hDriver, version ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -227,10 +231,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hDriver, pDriverProperties ); + auto driver_result = pfnGetProperties( hDriver, pDriverProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDriverGetPropertiesEpilogue( hDriver, pDriverProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDriverGetPropertiesEpilogue( hDriver, pDriverProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -267,10 +272,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetIpcProperties( hDriver, pIpcProperties ); + auto driver_result = pfnGetIpcProperties( hDriver, pIpcProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDriverGetIpcPropertiesEpilogue( hDriver, pIpcProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDriverGetIpcPropertiesEpilogue( hDriver, pIpcProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -316,10 +322,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetExtensionProperties( hDriver, pCount, pExtensionProperties ); + auto driver_result = pfnGetExtensionProperties( hDriver, pCount, pExtensionProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDriverGetExtensionPropertiesEpilogue( hDriver, pCount, pExtensionProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDriverGetExtensionPropertiesEpilogue( hDriver, pCount, pExtensionProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -357,10 +364,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetExtensionFunctionAddress( hDriver, name, ppFunctionAddress ); + auto driver_result = pfnGetExtensionFunctionAddress( hDriver, name, ppFunctionAddress ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDriverGetExtensionFunctionAddressEpilogue( hDriver, name, ppFunctionAddress ); + auto result = context.validationHandlers[i]->zeValidation->zeDriverGetExtensionFunctionAddressEpilogue( hDriver, name, ppFunctionAddress ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -398,10 +406,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetLastErrorDescription( hDriver, ppString ); + auto driver_result = pfnGetLastErrorDescription( hDriver, ppString ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDriverGetLastErrorDescriptionEpilogue( hDriver, ppString ); + auto result = context.validationHandlers[i]->zeValidation->zeDriverGetLastErrorDescriptionEpilogue( hDriver, ppString ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -445,10 +454,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGet( hDriver, pCount, phDevices ); + auto driver_result = pfnGet( hDriver, pCount, phDevices ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetEpilogue( hDriver, pCount, phDevices ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetEpilogue( hDriver, pCount, phDevices ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -495,10 +505,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetRootDevice( hDevice, phRootDevice ); + auto driver_result = pfnGetRootDevice( hDevice, phRootDevice ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetRootDeviceEpilogue( hDevice, phRootDevice ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetRootDeviceEpilogue( hDevice, phRootDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -542,10 +553,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetSubDevices( hDevice, pCount, phSubdevices ); + auto driver_result = pfnGetSubDevices( hDevice, pCount, phSubdevices ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetSubDevicesEpilogue( hDevice, pCount, phSubdevices ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetSubDevicesEpilogue( hDevice, pCount, phSubdevices ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -592,10 +604,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hDevice, pDeviceProperties ); + auto driver_result = pfnGetProperties( hDevice, pDeviceProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetPropertiesEpilogue( hDevice, pDeviceProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetPropertiesEpilogue( hDevice, pDeviceProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -632,10 +645,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetComputeProperties( hDevice, pComputeProperties ); + auto driver_result = pfnGetComputeProperties( hDevice, pComputeProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetComputePropertiesEpilogue( hDevice, pComputeProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetComputePropertiesEpilogue( hDevice, pComputeProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -672,10 +686,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetModuleProperties( hDevice, pModuleProperties ); + auto driver_result = pfnGetModuleProperties( hDevice, pModuleProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetModulePropertiesEpilogue( hDevice, pModuleProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetModulePropertiesEpilogue( hDevice, pModuleProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -722,10 +737,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetCommandQueueGroupProperties( hDevice, pCount, pCommandQueueGroupProperties ); + auto driver_result = pfnGetCommandQueueGroupProperties( hDevice, pCount, pCommandQueueGroupProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetCommandQueueGroupPropertiesEpilogue( hDevice, pCount, pCommandQueueGroupProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetCommandQueueGroupPropertiesEpilogue( hDevice, pCount, pCommandQueueGroupProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -771,10 +787,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetMemoryProperties( hDevice, pCount, pMemProperties ); + auto driver_result = pfnGetMemoryProperties( hDevice, pCount, pMemProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetMemoryPropertiesEpilogue( hDevice, pCount, pMemProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetMemoryPropertiesEpilogue( hDevice, pCount, pMemProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -811,10 +828,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetMemoryAccessProperties( hDevice, pMemAccessProperties ); + auto driver_result = pfnGetMemoryAccessProperties( hDevice, pMemAccessProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetMemoryAccessPropertiesEpilogue( hDevice, pMemAccessProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetMemoryAccessPropertiesEpilogue( hDevice, pMemAccessProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -859,10 +877,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetCacheProperties( hDevice, pCount, pCacheProperties ); + auto driver_result = pfnGetCacheProperties( hDevice, pCount, pCacheProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetCachePropertiesEpilogue( hDevice, pCount, pCacheProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetCachePropertiesEpilogue( hDevice, pCount, pCacheProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -899,10 +918,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetImageProperties( hDevice, pImageProperties ); + auto driver_result = pfnGetImageProperties( hDevice, pImageProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetImagePropertiesEpilogue( hDevice, pImageProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetImagePropertiesEpilogue( hDevice, pImageProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -939,10 +959,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetExternalMemoryProperties( hDevice, pExternalMemoryProperties ); + auto driver_result = pfnGetExternalMemoryProperties( hDevice, pExternalMemoryProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetExternalMemoryPropertiesEpilogue( hDevice, pExternalMemoryProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetExternalMemoryPropertiesEpilogue( hDevice, pExternalMemoryProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -980,10 +1001,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetP2PProperties( hDevice, hPeerDevice, pP2PProperties ); + auto driver_result = pfnGetP2PProperties( hDevice, hPeerDevice, pP2PProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetP2PPropertiesEpilogue( hDevice, hPeerDevice, pP2PProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetP2PPropertiesEpilogue( hDevice, hPeerDevice, pP2PProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1021,10 +1043,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCanAccessPeer( hDevice, hPeerDevice, value ); + auto driver_result = pfnCanAccessPeer( hDevice, hPeerDevice, value ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceCanAccessPeerEpilogue( hDevice, hPeerDevice, value ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceCanAccessPeerEpilogue( hDevice, hPeerDevice, value ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1060,10 +1083,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetStatus( hDevice ); + auto driver_result = pfnGetStatus( hDevice ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetStatusEpilogue( hDevice ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetStatusEpilogue( hDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1103,10 +1127,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetGlobalTimestamps( hDevice, hostTimestamp, deviceTimestamp ); + auto driver_result = pfnGetGlobalTimestamps( hDevice, hostTimestamp, deviceTimestamp ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetGlobalTimestampsEpilogue( hDevice, hostTimestamp, deviceTimestamp ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetGlobalTimestampsEpilogue( hDevice, hostTimestamp, deviceTimestamp ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1144,10 +1169,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hDriver, desc, phContext ); + auto driver_result = pfnCreate( hDriver, desc, phContext ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeContextCreateEpilogue( hDriver, desc, phContext ); + auto result = context.validationHandlers[i]->zeValidation->zeContextCreateEpilogue( hDriver, desc, phContext ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1204,10 +1230,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreateEx( hDriver, desc, numDevices, phDevices, phContext ); + auto driver_result = pfnCreateEx( hDriver, desc, numDevices, phDevices, phContext ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeContextCreateExEpilogue( hDriver, desc, numDevices, phDevices, phContext ); + auto result = context.validationHandlers[i]->zeValidation->zeContextCreateExEpilogue( hDriver, desc, numDevices, phDevices, phContext ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1252,10 +1279,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hContext ); + auto driver_result = pfnDestroy( hContext ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeContextDestroyEpilogue( hContext ); + auto result = context.validationHandlers[i]->zeValidation->zeContextDestroyEpilogue( hContext ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1291,10 +1319,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetStatus( hContext ); + auto driver_result = pfnGetStatus( hContext ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeContextGetStatusEpilogue( hContext ); + auto result = context.validationHandlers[i]->zeValidation->zeContextGetStatusEpilogue( hContext ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1333,10 +1362,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hContext, hDevice, desc, phCommandQueue ); + auto driver_result = pfnCreate( hContext, hDevice, desc, phCommandQueue ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueCreateEpilogue( hContext, hDevice, desc, phCommandQueue ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueCreateEpilogue( hContext, hDevice, desc, phCommandQueue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1381,10 +1411,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hCommandQueue ); + auto driver_result = pfnDestroy( hCommandQueue ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueDestroyEpilogue( hCommandQueue ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueDestroyEpilogue( hCommandQueue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1424,10 +1455,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnExecuteCommandLists( hCommandQueue, numCommandLists, phCommandLists, hFence ); + auto driver_result = pfnExecuteCommandLists( hCommandQueue, numCommandLists, phCommandLists, hFence ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueExecuteCommandListsEpilogue( hCommandQueue, numCommandLists, phCommandLists, hFence ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueExecuteCommandListsEpilogue( hCommandQueue, numCommandLists, phCommandLists, hFence ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1470,10 +1502,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSynchronize( hCommandQueue, timeout ); + auto driver_result = pfnSynchronize( hCommandQueue, timeout ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueSynchronizeEpilogue( hCommandQueue, timeout ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueSynchronizeEpilogue( hCommandQueue, timeout ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1510,10 +1543,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetOrdinal( hCommandQueue, pOrdinal ); + auto driver_result = pfnGetOrdinal( hCommandQueue, pOrdinal ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueGetOrdinalEpilogue( hCommandQueue, pOrdinal ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueGetOrdinalEpilogue( hCommandQueue, pOrdinal ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1550,10 +1584,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetIndex( hCommandQueue, pIndex ); + auto driver_result = pfnGetIndex( hCommandQueue, pIndex ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueGetIndexEpilogue( hCommandQueue, pIndex ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueGetIndexEpilogue( hCommandQueue, pIndex ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1592,10 +1627,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hContext, hDevice, desc, phCommandList ); + auto driver_result = pfnCreate( hContext, hDevice, desc, phCommandList ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListCreateEpilogue( hContext, hDevice, desc, phCommandList ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListCreateEpilogue( hContext, hDevice, desc, phCommandList ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1643,10 +1679,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreateImmediate( hContext, hDevice, altdesc, phCommandList ); + auto driver_result = pfnCreateImmediate( hContext, hDevice, altdesc, phCommandList ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListCreateImmediateEpilogue( hContext, hDevice, altdesc, phCommandList ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListCreateImmediateEpilogue( hContext, hDevice, altdesc, phCommandList ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1689,10 +1726,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hCommandList ); + auto driver_result = pfnDestroy( hCommandList ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListDestroyEpilogue( hCommandList ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListDestroyEpilogue( hCommandList ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1728,10 +1766,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnClose( hCommandList ); + auto driver_result = pfnClose( hCommandList ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListCloseEpilogue( hCommandList ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListCloseEpilogue( hCommandList ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1767,10 +1806,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnReset( hCommandList ); + auto driver_result = pfnReset( hCommandList ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListResetEpilogue( hCommandList ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListResetEpilogue( hCommandList ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1813,10 +1853,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendWriteGlobalTimestamp( hCommandList, dstptr, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendWriteGlobalTimestamp( hCommandList, dstptr, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendWriteGlobalTimestampEpilogue( hCommandList, dstptr, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendWriteGlobalTimestampEpilogue( hCommandList, dstptr, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1859,10 +1900,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnHostSynchronize( hCommandList, timeout ); + auto driver_result = pfnHostSynchronize( hCommandList, timeout ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListHostSynchronizeEpilogue( hCommandList, timeout ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListHostSynchronizeEpilogue( hCommandList, timeout ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1899,10 +1941,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetDeviceHandle( hCommandList, phDevice ); + auto driver_result = pfnGetDeviceHandle( hCommandList, phDevice ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetDeviceHandleEpilogue( hCommandList, phDevice ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetDeviceHandleEpilogue( hCommandList, phDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1939,10 +1982,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetContextHandle( hCommandList, phContext ); + auto driver_result = pfnGetContextHandle( hCommandList, phContext ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetContextHandleEpilogue( hCommandList, phContext ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetContextHandleEpilogue( hCommandList, phContext ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1979,10 +2023,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetOrdinal( hCommandList, pOrdinal ); + auto driver_result = pfnGetOrdinal( hCommandList, pOrdinal ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetOrdinalEpilogue( hCommandList, pOrdinal ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetOrdinalEpilogue( hCommandList, pOrdinal ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2020,10 +2065,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnImmediateGetIndex( hCommandListImmediate, pIndex ); + auto driver_result = pfnImmediateGetIndex( hCommandListImmediate, pIndex ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListImmediateGetIndexEpilogue( hCommandListImmediate, pIndex ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListImmediateGetIndexEpilogue( hCommandListImmediate, pIndex ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2061,10 +2107,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnIsImmediate( hCommandList, pIsImmediate ); + auto driver_result = pfnIsImmediate( hCommandList, pIsImmediate ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListIsImmediateEpilogue( hCommandList, pIsImmediate ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListIsImmediateEpilogue( hCommandList, pIsImmediate ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2105,10 +2152,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendBarrier( hCommandList, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendBarrier( hCommandList, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendBarrierEpilogue( hCommandList, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendBarrierEpilogue( hCommandList, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2152,10 +2200,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendMemoryRangesBarrier( hCommandList, numRanges, pRangeSizes, pRanges, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendMemoryRangesBarrier( hCommandList, numRanges, pRangeSizes, pRanges, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryRangesBarrierEpilogue( hCommandList, numRanges, pRangeSizes, pRanges, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryRangesBarrierEpilogue( hCommandList, numRanges, pRangeSizes, pRanges, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2192,10 +2241,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSystemBarrier( hContext, hDevice ); + auto driver_result = pfnSystemBarrier( hContext, hDevice ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeContextSystemBarrierEpilogue( hContext, hDevice ); + auto result = context.validationHandlers[i]->zeValidation->zeContextSystemBarrierEpilogue( hContext, hDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2239,10 +2289,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendMemoryCopy( hCommandList, dstptr, srcptr, size, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendMemoryCopy( hCommandList, dstptr, srcptr, size, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryCopyEpilogue( hCommandList, dstptr, srcptr, size, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryCopyEpilogue( hCommandList, dstptr, srcptr, size, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2287,10 +2338,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendMemoryFill( hCommandList, ptr, pattern, pattern_size, size, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendMemoryFill( hCommandList, ptr, pattern, pattern_size, size, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryFillEpilogue( hCommandList, ptr, pattern, pattern_size, size, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryFillEpilogue( hCommandList, ptr, pattern, pattern_size, size, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2343,10 +2395,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendMemoryCopyRegion( hCommandList, dstptr, dstRegion, dstPitch, dstSlicePitch, srcptr, srcRegion, srcPitch, srcSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendMemoryCopyRegion( hCommandList, dstptr, dstRegion, dstPitch, dstSlicePitch, srcptr, srcRegion, srcPitch, srcSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryCopyRegionEpilogue( hCommandList, dstptr, dstRegion, dstPitch, dstSlicePitch, srcptr, srcRegion, srcPitch, srcSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryCopyRegionEpilogue( hCommandList, dstptr, dstRegion, dstPitch, dstSlicePitch, srcptr, srcRegion, srcPitch, srcSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2391,10 +2444,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendMemoryCopyFromContext( hCommandList, dstptr, hContextSrc, srcptr, size, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendMemoryCopyFromContext( hCommandList, dstptr, hContextSrc, srcptr, size, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryCopyFromContextEpilogue( hCommandList, dstptr, hContextSrc, srcptr, size, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryCopyFromContextEpilogue( hCommandList, dstptr, hContextSrc, srcptr, size, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2437,10 +2491,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendImageCopy( hCommandList, hDstImage, hSrcImage, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendImageCopy( hCommandList, hDstImage, hSrcImage, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyEpilogue( hCommandList, hDstImage, hSrcImage, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyEpilogue( hCommandList, hDstImage, hSrcImage, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2485,10 +2540,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendImageCopyRegion( hCommandList, hDstImage, hSrcImage, pDstRegion, pSrcRegion, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendImageCopyRegion( hCommandList, hDstImage, hSrcImage, pDstRegion, pSrcRegion, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyRegionEpilogue( hCommandList, hDstImage, hSrcImage, pDstRegion, pSrcRegion, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyRegionEpilogue( hCommandList, hDstImage, hSrcImage, pDstRegion, pSrcRegion, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2532,10 +2588,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendImageCopyToMemory( hCommandList, dstptr, hSrcImage, pSrcRegion, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendImageCopyToMemory( hCommandList, dstptr, hSrcImage, pSrcRegion, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyToMemoryEpilogue( hCommandList, dstptr, hSrcImage, pSrcRegion, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyToMemoryEpilogue( hCommandList, dstptr, hSrcImage, pSrcRegion, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2579,10 +2636,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendImageCopyFromMemory( hCommandList, hDstImage, srcptr, pDstRegion, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendImageCopyFromMemory( hCommandList, hDstImage, srcptr, pDstRegion, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyFromMemoryEpilogue( hCommandList, hDstImage, srcptr, pDstRegion, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyFromMemoryEpilogue( hCommandList, hDstImage, srcptr, pDstRegion, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2620,10 +2678,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendMemoryPrefetch( hCommandList, ptr, size ); + auto driver_result = pfnAppendMemoryPrefetch( hCommandList, ptr, size ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryPrefetchEpilogue( hCommandList, ptr, size ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryPrefetchEpilogue( hCommandList, ptr, size ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2663,10 +2722,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendMemAdvise( hCommandList, hDevice, ptr, size, advice ); + auto driver_result = pfnAppendMemAdvise( hCommandList, hDevice, ptr, size, advice ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemAdviseEpilogue( hCommandList, hDevice, ptr, size, advice ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemAdviseEpilogue( hCommandList, hDevice, ptr, size, advice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2710,10 +2770,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hContext, desc, numDevices, phDevices, phEventPool ); + auto driver_result = pfnCreate( hContext, desc, numDevices, phDevices, phEventPool ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventPoolCreateEpilogue( hContext, desc, numDevices, phDevices, phEventPool ); + auto result = context.validationHandlers[i]->zeValidation->zeEventPoolCreateEpilogue( hContext, desc, numDevices, phDevices, phEventPool ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2758,10 +2819,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hEventPool ); + auto driver_result = pfnDestroy( hEventPool ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventPoolDestroyEpilogue( hEventPool ); + auto result = context.validationHandlers[i]->zeValidation->zeEventPoolDestroyEpilogue( hEventPool ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2799,10 +2861,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hEventPool, desc, phEvent ); + auto driver_result = pfnCreate( hEventPool, desc, phEvent ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventCreateEpilogue( hEventPool, desc, phEvent ); + auto result = context.validationHandlers[i]->zeValidation->zeEventCreateEpilogue( hEventPool, desc, phEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2847,10 +2910,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hEvent ); + auto driver_result = pfnDestroy( hEvent ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventDestroyEpilogue( hEvent ); + auto result = context.validationHandlers[i]->zeValidation->zeEventDestroyEpilogue( hEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2887,10 +2951,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetIpcHandle( hEventPool, phIpc ); + auto driver_result = pfnGetIpcHandle( hEventPool, phIpc ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventPoolGetIpcHandleEpilogue( hEventPool, phIpc ); + auto result = context.validationHandlers[i]->zeValidation->zeEventPoolGetIpcHandleEpilogue( hEventPool, phIpc ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2932,10 +2997,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnPutIpcHandle( hContext, hIpc ); + auto driver_result = pfnPutIpcHandle( hContext, hIpc ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventPoolPutIpcHandleEpilogue( hContext, hIpc ); + auto result = context.validationHandlers[i]->zeValidation->zeEventPoolPutIpcHandleEpilogue( hContext, hIpc ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2974,10 +3040,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOpenIpcHandle( hContext, hIpc, phEventPool ); + auto driver_result = pfnOpenIpcHandle( hContext, hIpc, phEventPool ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventPoolOpenIpcHandleEpilogue( hContext, hIpc, phEventPool ); + auto result = context.validationHandlers[i]->zeValidation->zeEventPoolOpenIpcHandleEpilogue( hContext, hIpc, phEventPool ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3013,10 +3080,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCloseIpcHandle( hEventPool ); + auto driver_result = pfnCloseIpcHandle( hEventPool ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventPoolCloseIpcHandleEpilogue( hEventPool ); + auto result = context.validationHandlers[i]->zeValidation->zeEventPoolCloseIpcHandleEpilogue( hEventPool ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3053,10 +3121,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendSignalEvent( hCommandList, hEvent ); + auto driver_result = pfnAppendSignalEvent( hCommandList, hEvent ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendSignalEventEpilogue( hCommandList, hEvent ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendSignalEventEpilogue( hCommandList, hEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3095,10 +3164,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendWaitOnEvents( hCommandList, numEvents, phEvents ); + auto driver_result = pfnAppendWaitOnEvents( hCommandList, numEvents, phEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendWaitOnEventsEpilogue( hCommandList, numEvents, phEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendWaitOnEventsEpilogue( hCommandList, numEvents, phEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3134,10 +3204,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnHostSignal( hEvent ); + auto driver_result = pfnHostSignal( hEvent ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventHostSignalEpilogue( hEvent ); + auto result = context.validationHandlers[i]->zeValidation->zeEventHostSignalEpilogue( hEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3180,10 +3251,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnHostSynchronize( hEvent, timeout ); + auto driver_result = pfnHostSynchronize( hEvent, timeout ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventHostSynchronizeEpilogue( hEvent, timeout ); + auto result = context.validationHandlers[i]->zeValidation->zeEventHostSynchronizeEpilogue( hEvent, timeout ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3219,10 +3291,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnQueryStatus( hEvent ); + auto driver_result = pfnQueryStatus( hEvent ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventQueryStatusEpilogue( hEvent ); + auto result = context.validationHandlers[i]->zeValidation->zeEventQueryStatusEpilogue( hEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3259,10 +3332,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendEventReset( hCommandList, hEvent ); + auto driver_result = pfnAppendEventReset( hCommandList, hEvent ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendEventResetEpilogue( hCommandList, hEvent ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendEventResetEpilogue( hCommandList, hEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3298,10 +3372,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnHostReset( hEvent ); + auto driver_result = pfnHostReset( hEvent ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventHostResetEpilogue( hEvent ); + auto result = context.validationHandlers[i]->zeValidation->zeEventHostResetEpilogue( hEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3338,10 +3413,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnQueryKernelTimestamp( hEvent, dstptr ); + auto driver_result = pfnQueryKernelTimestamp( hEvent, dstptr ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventQueryKernelTimestampEpilogue( hEvent, dstptr ); + auto result = context.validationHandlers[i]->zeValidation->zeEventQueryKernelTimestampEpilogue( hEvent, dstptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3389,10 +3465,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendQueryKernelTimestamps( hCommandList, numEvents, phEvents, dstptr, pOffsets, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendQueryKernelTimestamps( hCommandList, numEvents, phEvents, dstptr, pOffsets, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendQueryKernelTimestampsEpilogue( hCommandList, numEvents, phEvents, dstptr, pOffsets, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendQueryKernelTimestampsEpilogue( hCommandList, numEvents, phEvents, dstptr, pOffsets, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3429,10 +3506,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetEventPool( hEvent, phEventPool ); + auto driver_result = pfnGetEventPool( hEvent, phEventPool ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventGetEventPoolEpilogue( hEvent, phEventPool ); + auto result = context.validationHandlers[i]->zeValidation->zeEventGetEventPoolEpilogue( hEvent, phEventPool ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3471,10 +3549,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetSignalScope( hEvent, pSignalScope ); + auto driver_result = pfnGetSignalScope( hEvent, pSignalScope ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventGetSignalScopeEpilogue( hEvent, pSignalScope ); + auto result = context.validationHandlers[i]->zeValidation->zeEventGetSignalScopeEpilogue( hEvent, pSignalScope ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3513,10 +3592,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetWaitScope( hEvent, pWaitScope ); + auto driver_result = pfnGetWaitScope( hEvent, pWaitScope ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventGetWaitScopeEpilogue( hEvent, pWaitScope ); + auto result = context.validationHandlers[i]->zeValidation->zeEventGetWaitScopeEpilogue( hEvent, pWaitScope ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3553,10 +3633,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetContextHandle( hEventPool, phContext ); + auto driver_result = pfnGetContextHandle( hEventPool, phContext ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventPoolGetContextHandleEpilogue( hEventPool, phContext ); + auto result = context.validationHandlers[i]->zeValidation->zeEventPoolGetContextHandleEpilogue( hEventPool, phContext ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3594,10 +3675,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetFlags( hEventPool, pFlags ); + auto driver_result = pfnGetFlags( hEventPool, pFlags ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventPoolGetFlagsEpilogue( hEventPool, pFlags ); + auto result = context.validationHandlers[i]->zeValidation->zeEventPoolGetFlagsEpilogue( hEventPool, pFlags ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3635,10 +3717,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hCommandQueue, desc, phFence ); + auto driver_result = pfnCreate( hCommandQueue, desc, phFence ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeFenceCreateEpilogue( hCommandQueue, desc, phFence ); + auto result = context.validationHandlers[i]->zeValidation->zeFenceCreateEpilogue( hCommandQueue, desc, phFence ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3683,10 +3766,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hFence ); + auto driver_result = pfnDestroy( hFence ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeFenceDestroyEpilogue( hFence ); + auto result = context.validationHandlers[i]->zeValidation->zeFenceDestroyEpilogue( hFence ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3729,10 +3813,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnHostSynchronize( hFence, timeout ); + auto driver_result = pfnHostSynchronize( hFence, timeout ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeFenceHostSynchronizeEpilogue( hFence, timeout ); + auto result = context.validationHandlers[i]->zeValidation->zeFenceHostSynchronizeEpilogue( hFence, timeout ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3768,10 +3853,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnQueryStatus( hFence ); + auto driver_result = pfnQueryStatus( hFence ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeFenceQueryStatusEpilogue( hFence ); + auto result = context.validationHandlers[i]->zeValidation->zeFenceQueryStatusEpilogue( hFence ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3807,10 +3893,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnReset( hFence ); + auto driver_result = pfnReset( hFence ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeFenceResetEpilogue( hFence ); + auto result = context.validationHandlers[i]->zeValidation->zeFenceResetEpilogue( hFence ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3848,10 +3935,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hDevice, desc, pImageProperties ); + auto driver_result = pfnGetProperties( hDevice, desc, pImageProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeImageGetPropertiesEpilogue( hDevice, desc, pImageProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeImageGetPropertiesEpilogue( hDevice, desc, pImageProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3890,10 +3978,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hContext, hDevice, desc, phImage ); + auto driver_result = pfnCreate( hContext, hDevice, desc, phImage ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeImageCreateEpilogue( hContext, hDevice, desc, phImage ); + auto result = context.validationHandlers[i]->zeValidation->zeImageCreateEpilogue( hContext, hDevice, desc, phImage ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3938,10 +4027,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hImage ); + auto driver_result = pfnDestroy( hImage ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeImageDestroyEpilogue( hImage ); + auto result = context.validationHandlers[i]->zeValidation->zeImageDestroyEpilogue( hImage ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3985,10 +4075,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAllocShared( hContext, device_desc, host_desc, size, alignment, hDevice, pptr ); + auto driver_result = pfnAllocShared( hContext, device_desc, host_desc, size, alignment, hDevice, pptr ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemAllocSharedEpilogue( hContext, device_desc, host_desc, size, alignment, hDevice, pptr ); + auto result = context.validationHandlers[i]->zeValidation->zeMemAllocSharedEpilogue( hContext, device_desc, host_desc, size, alignment, hDevice, pptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4031,10 +4122,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAllocDevice( hContext, device_desc, size, alignment, hDevice, pptr ); + auto driver_result = pfnAllocDevice( hContext, device_desc, size, alignment, hDevice, pptr ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemAllocDeviceEpilogue( hContext, device_desc, size, alignment, hDevice, pptr ); + auto result = context.validationHandlers[i]->zeValidation->zeMemAllocDeviceEpilogue( hContext, device_desc, size, alignment, hDevice, pptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4076,10 +4168,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAllocHost( hContext, host_desc, size, alignment, pptr ); + auto driver_result = pfnAllocHost( hContext, host_desc, size, alignment, pptr ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemAllocHostEpilogue( hContext, host_desc, size, alignment, pptr ); + auto result = context.validationHandlers[i]->zeValidation->zeMemAllocHostEpilogue( hContext, host_desc, size, alignment, pptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4116,10 +4209,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnFree( hContext, ptr ); + auto driver_result = pfnFree( hContext, ptr ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemFreeEpilogue( hContext, ptr ); + auto result = context.validationHandlers[i]->zeValidation->zeMemFreeEpilogue( hContext, ptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4158,10 +4252,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetAllocProperties( hContext, ptr, pMemAllocProperties, phDevice ); + auto driver_result = pfnGetAllocProperties( hContext, ptr, pMemAllocProperties, phDevice ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemGetAllocPropertiesEpilogue( hContext, ptr, pMemAllocProperties, phDevice ); + auto result = context.validationHandlers[i]->zeValidation->zeMemGetAllocPropertiesEpilogue( hContext, ptr, pMemAllocProperties, phDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4200,10 +4295,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetAddressRange( hContext, ptr, pBase, pSize ); + auto driver_result = pfnGetAddressRange( hContext, ptr, pBase, pSize ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemGetAddressRangeEpilogue( hContext, ptr, pBase, pSize ); + auto result = context.validationHandlers[i]->zeValidation->zeMemGetAddressRangeEpilogue( hContext, ptr, pBase, pSize ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4241,10 +4337,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetIpcHandle( hContext, ptr, pIpcHandle ); + auto driver_result = pfnGetIpcHandle( hContext, ptr, pIpcHandle ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemGetIpcHandleEpilogue( hContext, ptr, pIpcHandle ); + auto result = context.validationHandlers[i]->zeValidation->zeMemGetIpcHandleEpilogue( hContext, ptr, pIpcHandle ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4286,10 +4383,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetIpcHandleFromFileDescriptorExp( hContext, handle, pIpcHandle ); + auto driver_result = pfnGetIpcHandleFromFileDescriptorExp( hContext, handle, pIpcHandle ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemGetIpcHandleFromFileDescriptorExpEpilogue( hContext, handle, pIpcHandle ); + auto result = context.validationHandlers[i]->zeValidation->zeMemGetIpcHandleFromFileDescriptorExpEpilogue( hContext, handle, pIpcHandle ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4331,10 +4429,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetFileDescriptorFromIpcHandleExp( hContext, ipcHandle, pHandle ); + auto driver_result = pfnGetFileDescriptorFromIpcHandleExp( hContext, ipcHandle, pHandle ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemGetFileDescriptorFromIpcHandleExpEpilogue( hContext, ipcHandle, pHandle ); + auto result = context.validationHandlers[i]->zeValidation->zeMemGetFileDescriptorFromIpcHandleExpEpilogue( hContext, ipcHandle, pHandle ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4375,10 +4474,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnPutIpcHandle( hContext, handle ); + auto driver_result = pfnPutIpcHandle( hContext, handle ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemPutIpcHandleEpilogue( hContext, handle ); + auto result = context.validationHandlers[i]->zeValidation->zeMemPutIpcHandleEpilogue( hContext, handle ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4419,10 +4519,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOpenIpcHandle( hContext, hDevice, handle, flags, pptr ); + auto driver_result = pfnOpenIpcHandle( hContext, hDevice, handle, flags, pptr ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemOpenIpcHandleEpilogue( hContext, hDevice, handle, flags, pptr ); + auto result = context.validationHandlers[i]->zeValidation->zeMemOpenIpcHandleEpilogue( hContext, hDevice, handle, flags, pptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4459,10 +4560,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCloseIpcHandle( hContext, ptr ); + auto driver_result = pfnCloseIpcHandle( hContext, ptr ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemCloseIpcHandleEpilogue( hContext, ptr ); + auto result = context.validationHandlers[i]->zeValidation->zeMemCloseIpcHandleEpilogue( hContext, ptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4503,10 +4605,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetAtomicAccessAttributeExp( hContext, hDevice, ptr, size, attr ); + auto driver_result = pfnSetAtomicAccessAttributeExp( hContext, hDevice, ptr, size, attr ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemSetAtomicAccessAttributeExpEpilogue( hContext, hDevice, ptr, size, attr ); + auto result = context.validationHandlers[i]->zeValidation->zeMemSetAtomicAccessAttributeExpEpilogue( hContext, hDevice, ptr, size, attr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4546,10 +4649,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetAtomicAccessAttributeExp( hContext, hDevice, ptr, size, pAttr ); + auto driver_result = pfnGetAtomicAccessAttributeExp( hContext, hDevice, ptr, size, pAttr ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemGetAtomicAccessAttributeExpEpilogue( hContext, hDevice, ptr, size, pAttr ); + auto result = context.validationHandlers[i]->zeValidation->zeMemGetAtomicAccessAttributeExpEpilogue( hContext, hDevice, ptr, size, pAttr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4593,10 +4697,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hContext, hDevice, desc, phModule, phBuildLog ); + auto driver_result = pfnCreate( hContext, hDevice, desc, phModule, phBuildLog ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeModuleCreateEpilogue( hContext, hDevice, desc, phModule, phBuildLog ); + auto result = context.validationHandlers[i]->zeValidation->zeModuleCreateEpilogue( hContext, hDevice, desc, phModule, phBuildLog ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4646,10 +4751,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hModule ); + auto driver_result = pfnDestroy( hModule ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeModuleDestroyEpilogue( hModule ); + auto result = context.validationHandlers[i]->zeValidation->zeModuleDestroyEpilogue( hModule ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4688,10 +4794,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDynamicLink( numModules, phModules, phLinkLog ); + auto driver_result = pfnDynamicLink( numModules, phModules, phLinkLog ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeModuleDynamicLinkEpilogue( numModules, phModules, phLinkLog ); + auto result = context.validationHandlers[i]->zeValidation->zeModuleDynamicLinkEpilogue( numModules, phModules, phLinkLog ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4727,10 +4834,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hModuleBuildLog ); + auto driver_result = pfnDestroy( hModuleBuildLog ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeModuleBuildLogDestroyEpilogue( hModuleBuildLog ); + auto result = context.validationHandlers[i]->zeValidation->zeModuleBuildLogDestroyEpilogue( hModuleBuildLog ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4768,10 +4876,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetString( hModuleBuildLog, pSize, pBuildLog ); + auto driver_result = pfnGetString( hModuleBuildLog, pSize, pBuildLog ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeModuleBuildLogGetStringEpilogue( hModuleBuildLog, pSize, pBuildLog ); + auto result = context.validationHandlers[i]->zeValidation->zeModuleBuildLogGetStringEpilogue( hModuleBuildLog, pSize, pBuildLog ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4809,10 +4918,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetNativeBinary( hModule, pSize, pModuleNativeBinary ); + auto driver_result = pfnGetNativeBinary( hModule, pSize, pModuleNativeBinary ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeModuleGetNativeBinaryEpilogue( hModule, pSize, pModuleNativeBinary ); + auto result = context.validationHandlers[i]->zeValidation->zeModuleGetNativeBinaryEpilogue( hModule, pSize, pModuleNativeBinary ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4851,10 +4961,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetGlobalPointer( hModule, pGlobalName, pSize, pptr ); + auto driver_result = pfnGetGlobalPointer( hModule, pGlobalName, pSize, pptr ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeModuleGetGlobalPointerEpilogue( hModule, pGlobalName, pSize, pptr ); + auto result = context.validationHandlers[i]->zeValidation->zeModuleGetGlobalPointerEpilogue( hModule, pGlobalName, pSize, pptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4898,10 +5009,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetKernelNames( hModule, pCount, pNames ); + auto driver_result = pfnGetKernelNames( hModule, pCount, pNames ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeModuleGetKernelNamesEpilogue( hModule, pCount, pNames ); + auto result = context.validationHandlers[i]->zeValidation->zeModuleGetKernelNamesEpilogue( hModule, pCount, pNames ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4938,10 +5050,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hModule, pModuleProperties ); + auto driver_result = pfnGetProperties( hModule, pModuleProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeModuleGetPropertiesEpilogue( hModule, pModuleProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeModuleGetPropertiesEpilogue( hModule, pModuleProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4979,10 +5092,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hModule, desc, phKernel ); + auto driver_result = pfnCreate( hModule, desc, phKernel ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelCreateEpilogue( hModule, desc, phKernel ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelCreateEpilogue( hModule, desc, phKernel ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5027,10 +5141,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hKernel ); + auto driver_result = pfnDestroy( hKernel ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelDestroyEpilogue( hKernel ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelDestroyEpilogue( hKernel ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5068,10 +5183,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetFunctionPointer( hModule, pFunctionName, pfnFunction ); + auto driver_result = pfnGetFunctionPointer( hModule, pFunctionName, pfnFunction ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeModuleGetFunctionPointerEpilogue( hModule, pFunctionName, pfnFunction ); + auto result = context.validationHandlers[i]->zeValidation->zeModuleGetFunctionPointerEpilogue( hModule, pFunctionName, pfnFunction ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5110,10 +5226,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetGroupSize( hKernel, groupSizeX, groupSizeY, groupSizeZ ); + auto driver_result = pfnSetGroupSize( hKernel, groupSizeX, groupSizeY, groupSizeZ ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelSetGroupSizeEpilogue( hKernel, groupSizeX, groupSizeY, groupSizeZ ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelSetGroupSizeEpilogue( hKernel, groupSizeX, groupSizeY, groupSizeZ ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5155,10 +5272,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSuggestGroupSize( hKernel, globalSizeX, globalSizeY, globalSizeZ, groupSizeX, groupSizeY, groupSizeZ ); + auto driver_result = pfnSuggestGroupSize( hKernel, globalSizeX, globalSizeY, globalSizeZ, groupSizeX, groupSizeY, groupSizeZ ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelSuggestGroupSizeEpilogue( hKernel, globalSizeX, globalSizeY, globalSizeZ, groupSizeX, groupSizeY, groupSizeZ ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelSuggestGroupSizeEpilogue( hKernel, globalSizeX, globalSizeY, globalSizeZ, groupSizeX, groupSizeY, groupSizeZ ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5195,10 +5313,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSuggestMaxCooperativeGroupCount( hKernel, totalGroupCount ); + auto driver_result = pfnSuggestMaxCooperativeGroupCount( hKernel, totalGroupCount ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelSuggestMaxCooperativeGroupCountEpilogue( hKernel, totalGroupCount ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelSuggestMaxCooperativeGroupCountEpilogue( hKernel, totalGroupCount ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5238,10 +5357,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetArgumentValue( hKernel, argIndex, argSize, pArgValue ); + auto driver_result = pfnSetArgumentValue( hKernel, argIndex, argSize, pArgValue ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelSetArgumentValueEpilogue( hKernel, argIndex, argSize, pArgValue ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelSetArgumentValueEpilogue( hKernel, argIndex, argSize, pArgValue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5278,10 +5398,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetIndirectAccess( hKernel, flags ); + auto driver_result = pfnSetIndirectAccess( hKernel, flags ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelSetIndirectAccessEpilogue( hKernel, flags ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelSetIndirectAccessEpilogue( hKernel, flags ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5318,10 +5439,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetIndirectAccess( hKernel, pFlags ); + auto driver_result = pfnGetIndirectAccess( hKernel, pFlags ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelGetIndirectAccessEpilogue( hKernel, pFlags ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelGetIndirectAccessEpilogue( hKernel, pFlags ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5366,10 +5488,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetSourceAttributes( hKernel, pSize, pString ); + auto driver_result = pfnGetSourceAttributes( hKernel, pSize, pString ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelGetSourceAttributesEpilogue( hKernel, pSize, pString ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelGetSourceAttributesEpilogue( hKernel, pSize, pString ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5407,10 +5530,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetCacheConfig( hKernel, flags ); + auto driver_result = pfnSetCacheConfig( hKernel, flags ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelSetCacheConfigEpilogue( hKernel, flags ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelSetCacheConfigEpilogue( hKernel, flags ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5447,10 +5571,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hKernel, pKernelProperties ); + auto driver_result = pfnGetProperties( hKernel, pKernelProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelGetPropertiesEpilogue( hKernel, pKernelProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelGetPropertiesEpilogue( hKernel, pKernelProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5489,10 +5614,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetName( hKernel, pSize, pName ); + auto driver_result = pfnGetName( hKernel, pSize, pName ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelGetNameEpilogue( hKernel, pSize, pName ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelGetNameEpilogue( hKernel, pSize, pName ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5535,10 +5661,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendLaunchKernel( hCommandList, hKernel, pLaunchFuncArgs, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendLaunchKernel( hCommandList, hKernel, pLaunchFuncArgs, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendLaunchKernelEpilogue( hCommandList, hKernel, pLaunchFuncArgs, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendLaunchKernelEpilogue( hCommandList, hKernel, pLaunchFuncArgs, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5581,10 +5708,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendLaunchCooperativeKernel( hCommandList, hKernel, pLaunchFuncArgs, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendLaunchCooperativeKernel( hCommandList, hKernel, pLaunchFuncArgs, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendLaunchCooperativeKernelEpilogue( hCommandList, hKernel, pLaunchFuncArgs, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendLaunchCooperativeKernelEpilogue( hCommandList, hKernel, pLaunchFuncArgs, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5628,10 +5756,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendLaunchKernelIndirect( hCommandList, hKernel, pLaunchArgumentsBuffer, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendLaunchKernelIndirect( hCommandList, hKernel, pLaunchArgumentsBuffer, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendLaunchKernelIndirectEpilogue( hCommandList, hKernel, pLaunchArgumentsBuffer, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendLaunchKernelIndirectEpilogue( hCommandList, hKernel, pLaunchArgumentsBuffer, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5679,10 +5808,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendLaunchMultipleKernelsIndirect( hCommandList, numKernels, phKernels, pCountBuffer, pLaunchArgumentsBuffer, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendLaunchMultipleKernelsIndirect( hCommandList, numKernels, phKernels, pCountBuffer, pLaunchArgumentsBuffer, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendLaunchMultipleKernelsIndirectEpilogue( hCommandList, numKernels, phKernels, pCountBuffer, pLaunchArgumentsBuffer, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendLaunchMultipleKernelsIndirectEpilogue( hCommandList, numKernels, phKernels, pCountBuffer, pLaunchArgumentsBuffer, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5721,10 +5851,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnMakeMemoryResident( hContext, hDevice, ptr, size ); + auto driver_result = pfnMakeMemoryResident( hContext, hDevice, ptr, size ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeContextMakeMemoryResidentEpilogue( hContext, hDevice, ptr, size ); + auto result = context.validationHandlers[i]->zeValidation->zeContextMakeMemoryResidentEpilogue( hContext, hDevice, ptr, size ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5763,10 +5894,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEvictMemory( hContext, hDevice, ptr, size ); + auto driver_result = pfnEvictMemory( hContext, hDevice, ptr, size ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeContextEvictMemoryEpilogue( hContext, hDevice, ptr, size ); + auto result = context.validationHandlers[i]->zeValidation->zeContextEvictMemoryEpilogue( hContext, hDevice, ptr, size ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5804,10 +5936,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnMakeImageResident( hContext, hDevice, hImage ); + auto driver_result = pfnMakeImageResident( hContext, hDevice, hImage ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeContextMakeImageResidentEpilogue( hContext, hDevice, hImage ); + auto result = context.validationHandlers[i]->zeValidation->zeContextMakeImageResidentEpilogue( hContext, hDevice, hImage ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5845,10 +5978,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEvictImage( hContext, hDevice, hImage ); + auto driver_result = pfnEvictImage( hContext, hDevice, hImage ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeContextEvictImageEpilogue( hContext, hDevice, hImage ); + auto result = context.validationHandlers[i]->zeValidation->zeContextEvictImageEpilogue( hContext, hDevice, hImage ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5887,10 +6021,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hContext, hDevice, desc, phSampler ); + auto driver_result = pfnCreate( hContext, hDevice, desc, phSampler ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeSamplerCreateEpilogue( hContext, hDevice, desc, phSampler ); + auto result = context.validationHandlers[i]->zeValidation->zeSamplerCreateEpilogue( hContext, hDevice, desc, phSampler ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5935,10 +6070,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hSampler ); + auto driver_result = pfnDestroy( hSampler ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeSamplerDestroyEpilogue( hSampler ); + auto result = context.validationHandlers[i]->zeValidation->zeSamplerDestroyEpilogue( hSampler ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5978,10 +6114,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnReserve( hContext, pStart, size, pptr ); + auto driver_result = pfnReserve( hContext, pStart, size, pptr ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemReserveEpilogue( hContext, pStart, size, pptr ); + auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemReserveEpilogue( hContext, pStart, size, pptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6019,10 +6156,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnFree( hContext, ptr, size ); + auto driver_result = pfnFree( hContext, ptr, size ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemFreeEpilogue( hContext, ptr, size ); + auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemFreeEpilogue( hContext, ptr, size ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6062,10 +6200,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnQueryPageSize( hContext, hDevice, size, pagesize ); + auto driver_result = pfnQueryPageSize( hContext, hDevice, size, pagesize ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemQueryPageSizeEpilogue( hContext, hDevice, size, pagesize ); + auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemQueryPageSizeEpilogue( hContext, hDevice, size, pagesize ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6105,10 +6244,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hContext, hDevice, desc, phPhysicalMemory ); + auto driver_result = pfnCreate( hContext, hDevice, desc, phPhysicalMemory ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zePhysicalMemCreateEpilogue( hContext, hDevice, desc, phPhysicalMemory ); + auto result = context.validationHandlers[i]->zeValidation->zePhysicalMemCreateEpilogue( hContext, hDevice, desc, phPhysicalMemory ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6154,10 +6294,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hContext, hPhysicalMemory ); + auto driver_result = pfnDestroy( hContext, hPhysicalMemory ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zePhysicalMemDestroyEpilogue( hContext, hPhysicalMemory ); + auto result = context.validationHandlers[i]->zeValidation->zePhysicalMemDestroyEpilogue( hContext, hPhysicalMemory ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6201,10 +6342,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnMap( hContext, ptr, size, hPhysicalMemory, offset, access ); + auto driver_result = pfnMap( hContext, ptr, size, hPhysicalMemory, offset, access ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemMapEpilogue( hContext, ptr, size, hPhysicalMemory, offset, access ); + auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemMapEpilogue( hContext, ptr, size, hPhysicalMemory, offset, access ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6242,10 +6384,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnUnmap( hContext, ptr, size ); + auto driver_result = pfnUnmap( hContext, ptr, size ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemUnmapEpilogue( hContext, ptr, size ); + auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemUnmapEpilogue( hContext, ptr, size ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6285,10 +6428,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetAccessAttribute( hContext, ptr, size, access ); + auto driver_result = pfnSetAccessAttribute( hContext, ptr, size, access ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemSetAccessAttributeEpilogue( hContext, ptr, size, access ); + auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemSetAccessAttributeEpilogue( hContext, ptr, size, access ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6329,10 +6473,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetAccessAttribute( hContext, ptr, size, access, outSize ); + auto driver_result = pfnGetAccessAttribute( hContext, ptr, size, access, outSize ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemGetAccessAttributeEpilogue( hContext, ptr, size, access, outSize ); + auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemGetAccessAttributeEpilogue( hContext, ptr, size, access, outSize ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6371,10 +6516,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetGlobalOffsetExp( hKernel, offsetX, offsetY, offsetZ ); + auto driver_result = pfnSetGlobalOffsetExp( hKernel, offsetX, offsetY, offsetZ ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelSetGlobalOffsetExpEpilogue( hKernel, offsetX, offsetY, offsetZ ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelSetGlobalOffsetExpEpilogue( hKernel, offsetX, offsetY, offsetZ ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6412,10 +6558,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetBinaryExp( hKernel, pSize, pKernelBinary ); + auto driver_result = pfnGetBinaryExp( hKernel, pSize, pKernelBinary ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelGetBinaryExpEpilogue( hKernel, pSize, pKernelBinary ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelGetBinaryExpEpilogue( hKernel, pSize, pKernelBinary ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6460,10 +6607,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnReserveCacheExt( hDevice, cacheLevel, cacheReservationSize ); + auto driver_result = pfnReserveCacheExt( hDevice, cacheLevel, cacheReservationSize ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceReserveCacheExtEpilogue( hDevice, cacheLevel, cacheReservationSize ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceReserveCacheExtEpilogue( hDevice, cacheLevel, cacheReservationSize ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6502,10 +6650,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetCacheAdviceExt( hDevice, ptr, regionSize, cacheRegion ); + auto driver_result = pfnSetCacheAdviceExt( hDevice, ptr, regionSize, cacheRegion ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceSetCacheAdviceExtEpilogue( hDevice, ptr, regionSize, cacheRegion ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceSetCacheAdviceExtEpilogue( hDevice, ptr, regionSize, cacheRegion ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6550,10 +6699,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnQueryTimestampsExp( hEvent, hDevice, pCount, pTimestamps ); + auto driver_result = pfnQueryTimestampsExp( hEvent, hDevice, pCount, pTimestamps ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventQueryTimestampsExpEpilogue( hEvent, hDevice, pCount, pTimestamps ); + auto result = context.validationHandlers[i]->zeValidation->zeEventQueryTimestampsExpEpilogue( hEvent, hDevice, pCount, pTimestamps ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6590,10 +6740,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetMemoryPropertiesExp( hImage, pMemoryProperties ); + auto driver_result = pfnGetMemoryPropertiesExp( hImage, pMemoryProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeImageGetMemoryPropertiesExpEpilogue( hImage, pMemoryProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeImageGetMemoryPropertiesExpEpilogue( hImage, pMemoryProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6637,10 +6788,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnViewCreateExt( hContext, hDevice, desc, hImage, phImageView ); + auto driver_result = pfnViewCreateExt( hContext, hDevice, desc, hImage, phImageView ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeImageViewCreateExtEpilogue( hContext, hDevice, desc, hImage, phImageView ); + auto result = context.validationHandlers[i]->zeValidation->zeImageViewCreateExtEpilogue( hContext, hDevice, desc, hImage, phImageView ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6689,10 +6841,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnViewCreateExp( hContext, hDevice, desc, hImage, phImageView ); + auto driver_result = pfnViewCreateExp( hContext, hDevice, desc, hImage, phImageView ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeImageViewCreateExpEpilogue( hContext, hDevice, desc, hImage, phImageView ); + auto result = context.validationHandlers[i]->zeValidation->zeImageViewCreateExpEpilogue( hContext, hDevice, desc, hImage, phImageView ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6738,10 +6891,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSchedulingHintExp( hKernel, pHint ); + auto driver_result = pfnSchedulingHintExp( hKernel, pHint ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeKernelSchedulingHintExpEpilogue( hKernel, pHint ); + auto result = context.validationHandlers[i]->zeValidation->zeKernelSchedulingHintExpEpilogue( hKernel, pHint ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6778,10 +6932,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnPciGetPropertiesExt( hDevice, pPciProperties ); + auto driver_result = pfnPciGetPropertiesExt( hDevice, pPciProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDevicePciGetPropertiesExtEpilogue( hDevice, pPciProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeDevicePciGetPropertiesExtEpilogue( hDevice, pPciProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6829,10 +6984,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendImageCopyToMemoryExt( hCommandList, dstptr, hSrcImage, pSrcRegion, destRowPitch, destSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendImageCopyToMemoryExt( hCommandList, dstptr, hSrcImage, pSrcRegion, destRowPitch, destSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyToMemoryExtEpilogue( hCommandList, dstptr, hSrcImage, pSrcRegion, destRowPitch, destSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyToMemoryExtEpilogue( hCommandList, dstptr, hSrcImage, pSrcRegion, destRowPitch, destSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6880,10 +7036,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendImageCopyFromMemoryExt( hCommandList, hDstImage, srcptr, pDstRegion, srcRowPitch, srcSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendImageCopyFromMemoryExt( hCommandList, hDstImage, srcptr, pDstRegion, srcRowPitch, srcSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyFromMemoryExtEpilogue( hCommandList, hDstImage, srcptr, pDstRegion, srcRowPitch, srcSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyFromMemoryExtEpilogue( hCommandList, hDstImage, srcptr, pDstRegion, srcRowPitch, srcSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6921,10 +7078,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetAllocPropertiesExt( hContext, hImage, pImageAllocProperties ); + auto driver_result = pfnGetAllocPropertiesExt( hContext, hImage, pImageAllocProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeImageGetAllocPropertiesExtEpilogue( hContext, hImage, pImageAllocProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeImageGetAllocPropertiesExtEpilogue( hContext, hImage, pImageAllocProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6965,10 +7123,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnInspectLinkageExt( pInspectDesc, numModules, phModules, phLog ); + auto driver_result = pfnInspectLinkageExt( pInspectDesc, numModules, phModules, phLog ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeModuleInspectLinkageExtEpilogue( pInspectDesc, numModules, phModules, phLog ); + auto result = context.validationHandlers[i]->zeValidation->zeModuleInspectLinkageExtEpilogue( pInspectDesc, numModules, phModules, phLog ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7006,10 +7165,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnFreeExt( hContext, pMemFreeDesc, ptr ); + auto driver_result = pfnFreeExt( hContext, pMemFreeDesc, ptr ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemFreeExtEpilogue( hContext, pMemFreeDesc, ptr ); + auto result = context.validationHandlers[i]->zeValidation->zeMemFreeExtEpilogue( hContext, pMemFreeDesc, ptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7054,10 +7214,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetExp( hDriver, pCount, phVertices ); + auto driver_result = pfnGetExp( hDriver, pCount, phVertices ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeFabricVertexGetExpEpilogue( hDriver, pCount, phVertices ); + auto result = context.validationHandlers[i]->zeValidation->zeFabricVertexGetExpEpilogue( hDriver, pCount, phVertices ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7112,10 +7273,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetSubVerticesExp( hVertex, pCount, phSubvertices ); + auto driver_result = pfnGetSubVerticesExp( hVertex, pCount, phSubvertices ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeFabricVertexGetSubVerticesExpEpilogue( hVertex, pCount, phSubvertices ); + auto result = context.validationHandlers[i]->zeValidation->zeFabricVertexGetSubVerticesExpEpilogue( hVertex, pCount, phSubvertices ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7162,10 +7324,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetPropertiesExp( hVertex, pVertexProperties ); + auto driver_result = pfnGetPropertiesExp( hVertex, pVertexProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeFabricVertexGetPropertiesExpEpilogue( hVertex, pVertexProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeFabricVertexGetPropertiesExpEpilogue( hVertex, pVertexProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7206,10 +7369,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetDeviceExp( hVertex, phDevice ); + auto driver_result = pfnGetDeviceExp( hVertex, phDevice ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeFabricVertexGetDeviceExpEpilogue( hVertex, phDevice ); + auto result = context.validationHandlers[i]->zeValidation->zeFabricVertexGetDeviceExpEpilogue( hVertex, phDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7255,10 +7419,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetFabricVertexExp( hDevice, phVertex ); + auto driver_result = pfnGetFabricVertexExp( hDevice, phVertex ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetFabricVertexExpEpilogue( hDevice, phVertex ); + auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetFabricVertexExpEpilogue( hDevice, phVertex ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7313,10 +7478,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetExp( hVertexA, hVertexB, pCount, phEdges ); + auto driver_result = pfnGetExp( hVertexA, hVertexB, pCount, phEdges ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeFabricEdgeGetExpEpilogue( hVertexA, hVertexB, pCount, phEdges ); + auto result = context.validationHandlers[i]->zeValidation->zeFabricEdgeGetExpEpilogue( hVertexA, hVertexB, pCount, phEdges ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7364,10 +7530,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetVerticesExp( hEdge, phVertexA, phVertexB ); + auto driver_result = pfnGetVerticesExp( hEdge, phVertexA, phVertexB ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeFabricEdgeGetVerticesExpEpilogue( hEdge, phVertexA, phVertexB ); + auto result = context.validationHandlers[i]->zeValidation->zeFabricEdgeGetVerticesExpEpilogue( hEdge, phVertexA, phVertexB ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7418,10 +7585,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetPropertiesExp( hEdge, pEdgeProperties ); + auto driver_result = pfnGetPropertiesExp( hEdge, pEdgeProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeFabricEdgeGetPropertiesExpEpilogue( hEdge, pEdgeProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeFabricEdgeGetPropertiesExpEpilogue( hEdge, pEdgeProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7477,10 +7645,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnQueryKernelTimestampsExt( hEvent, hDevice, pCount, pResults ); + auto driver_result = pfnQueryKernelTimestampsExt( hEvent, hDevice, pCount, pResults ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeEventQueryKernelTimestampsExtEpilogue( hEvent, hDevice, pCount, pResults ); + auto result = context.validationHandlers[i]->zeValidation->zeEventQueryKernelTimestampsExtEpilogue( hEvent, hDevice, pCount, pResults ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7518,10 +7687,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreateExp( hDriver, pDescriptor, phBuilder ); + auto driver_result = pfnCreateExp( hDriver, pDescriptor, phBuilder ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeRTASBuilderCreateExpEpilogue( hDriver, pDescriptor, phBuilder ); + auto result = context.validationHandlers[i]->zeValidation->zeRTASBuilderCreateExpEpilogue( hDriver, pDescriptor, phBuilder ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7568,10 +7738,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetBuildPropertiesExp( hBuilder, pBuildOpDescriptor, pProperties ); + auto driver_result = pfnGetBuildPropertiesExp( hBuilder, pBuildOpDescriptor, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeRTASBuilderGetBuildPropertiesExpEpilogue( hBuilder, pBuildOpDescriptor, pProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeRTASBuilderGetBuildPropertiesExpEpilogue( hBuilder, pBuildOpDescriptor, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7613,10 +7784,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnRTASFormatCompatibilityCheckExp( hDriver, rtasFormatA, rtasFormatB ); + auto driver_result = pfnRTASFormatCompatibilityCheckExp( hDriver, rtasFormatA, rtasFormatB ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeDriverRTASFormatCompatibilityCheckExpEpilogue( hDriver, rtasFormatA, rtasFormatB ); + auto result = context.validationHandlers[i]->zeValidation->zeDriverRTASFormatCompatibilityCheckExpEpilogue( hDriver, rtasFormatA, rtasFormatB ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7664,10 +7836,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnBuildExp( hBuilder, pBuildOpDescriptor, pScratchBuffer, scratchBufferSizeBytes, pRtasBuffer, rtasBufferSizeBytes, hParallelOperation, pBuildUserPtr, pBounds, pRtasBufferSizeBytes ); + auto driver_result = pfnBuildExp( hBuilder, pBuildOpDescriptor, pScratchBuffer, scratchBufferSizeBytes, pRtasBuffer, rtasBufferSizeBytes, hParallelOperation, pBuildUserPtr, pBounds, pRtasBufferSizeBytes ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeRTASBuilderBuildExpEpilogue( hBuilder, pBuildOpDescriptor, pScratchBuffer, scratchBufferSizeBytes, pRtasBuffer, rtasBufferSizeBytes, hParallelOperation, pBuildUserPtr, pBounds, pRtasBufferSizeBytes ); + auto result = context.validationHandlers[i]->zeValidation->zeRTASBuilderBuildExpEpilogue( hBuilder, pBuildOpDescriptor, pScratchBuffer, scratchBufferSizeBytes, pRtasBuffer, rtasBufferSizeBytes, hParallelOperation, pBuildUserPtr, pBounds, pRtasBufferSizeBytes ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7703,10 +7876,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroyExp( hBuilder ); + auto driver_result = pfnDestroyExp( hBuilder ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeRTASBuilderDestroyExpEpilogue( hBuilder ); + auto result = context.validationHandlers[i]->zeValidation->zeRTASBuilderDestroyExpEpilogue( hBuilder ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7743,10 +7917,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreateExp( hDriver, phParallelOperation ); + auto driver_result = pfnCreateExp( hDriver, phParallelOperation ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeRTASParallelOperationCreateExpEpilogue( hDriver, phParallelOperation ); + auto result = context.validationHandlers[i]->zeValidation->zeRTASParallelOperationCreateExpEpilogue( hDriver, phParallelOperation ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7792,10 +7967,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetPropertiesExp( hParallelOperation, pProperties ); + auto driver_result = pfnGetPropertiesExp( hParallelOperation, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeRTASParallelOperationGetPropertiesExpEpilogue( hParallelOperation, pProperties ); + auto result = context.validationHandlers[i]->zeValidation->zeRTASParallelOperationGetPropertiesExpEpilogue( hParallelOperation, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7835,10 +8011,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnJoinExp( hParallelOperation ); + auto driver_result = pfnJoinExp( hParallelOperation ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeRTASParallelOperationJoinExpEpilogue( hParallelOperation ); + auto result = context.validationHandlers[i]->zeValidation->zeRTASParallelOperationJoinExpEpilogue( hParallelOperation ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7874,10 +8051,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroyExp( hParallelOperation ); + auto driver_result = pfnDestroyExp( hParallelOperation ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeRTASParallelOperationDestroyExpEpilogue( hParallelOperation ); + auto result = context.validationHandlers[i]->zeValidation->zeRTASParallelOperationDestroyExpEpilogue( hParallelOperation ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7918,10 +8096,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetPitchFor2dImage( hContext, hDevice, imageWidth, imageHeight, elementSizeInBytes, rowPitch ); + auto driver_result = pfnGetPitchFor2dImage( hContext, hDevice, imageWidth, imageHeight, elementSizeInBytes, rowPitch ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeMemGetPitchFor2dImageEpilogue( hContext, hDevice, imageWidth, imageHeight, elementSizeInBytes, rowPitch ); + auto result = context.validationHandlers[i]->zeValidation->zeMemGetPitchFor2dImageEpilogue( hContext, hDevice, imageWidth, imageHeight, elementSizeInBytes, rowPitch ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -7958,10 +8137,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetDeviceOffsetExp( hImage, pDeviceOffset ); + auto driver_result = pfnGetDeviceOffsetExp( hImage, pDeviceOffset ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeImageGetDeviceOffsetExpEpilogue( hImage, pDeviceOffset ); + auto result = context.validationHandlers[i]->zeValidation->zeImageGetDeviceOffsetExpEpilogue( hImage, pDeviceOffset ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -8002,10 +8182,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreateCloneExp( hCommandList, phClonedCommandList ); + auto driver_result = pfnCreateCloneExp( hCommandList, phClonedCommandList ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListCreateCloneExpEpilogue( hCommandList, phClonedCommandList ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListCreateCloneExpEpilogue( hCommandList, phClonedCommandList ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -8061,10 +8242,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnImmediateAppendCommandListsExp( hCommandListImmediate, numCommandLists, phCommandLists, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnImmediateAppendCommandListsExp( hCommandListImmediate, numCommandLists, phCommandLists, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListImmediateAppendCommandListsExpEpilogue( hCommandListImmediate, numCommandLists, phCommandLists, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListImmediateAppendCommandListsExpEpilogue( hCommandListImmediate, numCommandLists, phCommandLists, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -8102,10 +8284,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetNextCommandIdExp( hCommandList, desc, pCommandId ); + auto driver_result = pfnGetNextCommandIdExp( hCommandList, desc, pCommandId ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetNextCommandIdExpEpilogue( hCommandList, desc, pCommandId ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetNextCommandIdExpEpilogue( hCommandList, desc, pCommandId ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -8151,10 +8334,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetNextCommandIdWithKernelsExp( hCommandList, desc, numKernels, phKernels, pCommandId ); + auto driver_result = pfnGetNextCommandIdWithKernelsExp( hCommandList, desc, numKernels, phKernels, pCommandId ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetNextCommandIdWithKernelsExpEpilogue( hCommandList, desc, numKernels, phKernels, pCommandId ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetNextCommandIdWithKernelsExpEpilogue( hCommandList, desc, numKernels, phKernels, pCommandId ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -8196,10 +8380,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnUpdateMutableCommandsExp( hCommandList, desc ); + auto driver_result = pfnUpdateMutableCommandsExp( hCommandList, desc ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListUpdateMutableCommandsExpEpilogue( hCommandList, desc ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListUpdateMutableCommandsExpEpilogue( hCommandList, desc ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -8237,10 +8422,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnUpdateMutableCommandSignalEventExp( hCommandList, commandId, hSignalEvent ); + auto driver_result = pfnUpdateMutableCommandSignalEventExp( hCommandList, commandId, hSignalEvent ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListUpdateMutableCommandSignalEventExpEpilogue( hCommandList, commandId, hSignalEvent ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListUpdateMutableCommandSignalEventExpEpilogue( hCommandList, commandId, hSignalEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -8280,10 +8466,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnUpdateMutableCommandWaitEventsExp( hCommandList, commandId, numWaitEvents, phWaitEvents ); + auto driver_result = pfnUpdateMutableCommandWaitEventsExp( hCommandList, commandId, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListUpdateMutableCommandWaitEventsExpEpilogue( hCommandList, commandId, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListUpdateMutableCommandWaitEventsExpEpilogue( hCommandList, commandId, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -8323,10 +8510,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnUpdateMutableCommandKernelsExp( hCommandList, numKernels, pCommandId, phKernels ); + auto driver_result = pfnUpdateMutableCommandKernelsExp( hCommandList, numKernels, pCommandId, phKernels ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zeValidation->zeCommandListUpdateMutableCommandKernelsExpEpilogue( hCommandList, numKernels, pCommandId, phKernels ); + auto result = context.validationHandlers[i]->zeValidation->zeCommandListUpdateMutableCommandKernelsExpEpilogue( hCommandList, numKernels, pCommandId, phKernels ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } diff --git a/source/layers/validation/zes_valddi.cpp b/source/layers/validation/zes_valddi.cpp index e2a94ba2..f292b3ba 100644 --- a/source/layers/validation/zes_valddi.cpp +++ b/source/layers/validation/zes_valddi.cpp @@ -43,10 +43,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnInit( flags ); + auto driver_result = pfnInit( flags ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesInitEpilogue( flags ); + auto result = context.validationHandlers[i]->zesValidation->zesInitEpilogue( flags ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -90,10 +91,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGet( pCount, phDrivers ); + auto driver_result = pfnGet( pCount, phDrivers ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDriverGetEpilogue( pCount, phDrivers ); + auto result = context.validationHandlers[i]->zesValidation->zesDriverGetEpilogue( pCount, phDrivers ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -149,10 +151,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetExtensionProperties( hDriver, pCount, pExtensionProperties ); + auto driver_result = pfnGetExtensionProperties( hDriver, pCount, pExtensionProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDriverGetExtensionPropertiesEpilogue( hDriver, pCount, pExtensionProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesDriverGetExtensionPropertiesEpilogue( hDriver, pCount, pExtensionProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -190,10 +193,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetExtensionFunctionAddress( hDriver, name, ppFunctionAddress ); + auto driver_result = pfnGetExtensionFunctionAddress( hDriver, name, ppFunctionAddress ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDriverGetExtensionFunctionAddressEpilogue( hDriver, name, ppFunctionAddress ); + auto result = context.validationHandlers[i]->zesValidation->zesDriverGetExtensionFunctionAddressEpilogue( hDriver, name, ppFunctionAddress ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -238,10 +242,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGet( hDriver, pCount, phDevices ); + auto driver_result = pfnGet( hDriver, pCount, phDevices ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetEpilogue( hDriver, pCount, phDevices ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetEpilogue( hDriver, pCount, phDevices ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -288,10 +293,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hDevice, pProperties ); + auto driver_result = pfnGetProperties( hDevice, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetPropertiesEpilogue( hDevice, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetPropertiesEpilogue( hDevice, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -328,10 +334,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetState( hDevice, pState ); + auto driver_result = pfnGetState( hDevice, pState ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetStateEpilogue( hDevice, pState ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetStateEpilogue( hDevice, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -369,10 +376,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnReset( hDevice, force ); + auto driver_result = pfnReset( hDevice, force ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceResetEpilogue( hDevice, force ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceResetEpilogue( hDevice, force ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -409,10 +417,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnResetExt( hDevice, pProperties ); + auto driver_result = pfnResetExt( hDevice, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceResetExtEpilogue( hDevice, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceResetExtEpilogue( hDevice, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -458,10 +467,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnProcessesGetState( hDevice, pCount, pProcesses ); + auto driver_result = pfnProcessesGetState( hDevice, pCount, pProcesses ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceProcessesGetStateEpilogue( hDevice, pCount, pProcesses ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceProcessesGetStateEpilogue( hDevice, pCount, pProcesses ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -498,10 +508,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnPciGetProperties( hDevice, pProperties ); + auto driver_result = pfnPciGetProperties( hDevice, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDevicePciGetPropertiesEpilogue( hDevice, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesDevicePciGetPropertiesEpilogue( hDevice, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -538,10 +549,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnPciGetState( hDevice, pState ); + auto driver_result = pfnPciGetState( hDevice, pState ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDevicePciGetStateEpilogue( hDevice, pState ); + auto result = context.validationHandlers[i]->zesValidation->zesDevicePciGetStateEpilogue( hDevice, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -586,10 +598,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnPciGetBars( hDevice, pCount, pProperties ); + auto driver_result = pfnPciGetBars( hDevice, pCount, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDevicePciGetBarsEpilogue( hDevice, pCount, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesDevicePciGetBarsEpilogue( hDevice, pCount, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -626,10 +639,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnPciGetStats( hDevice, pStats ); + auto driver_result = pfnPciGetStats( hDevice, pStats ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDevicePciGetStatsEpilogue( hDevice, pStats ); + auto result = context.validationHandlers[i]->zesValidation->zesDevicePciGetStatsEpilogue( hDevice, pStats ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -665,10 +679,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetOverclockWaiver( hDevice ); + auto driver_result = pfnSetOverclockWaiver( hDevice ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceSetOverclockWaiverEpilogue( hDevice ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceSetOverclockWaiverEpilogue( hDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -707,10 +722,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetOverclockDomains( hDevice, pOverclockDomains ); + auto driver_result = pfnGetOverclockDomains( hDevice, pOverclockDomains ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetOverclockDomainsEpilogue( hDevice, pOverclockDomains ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetOverclockDomainsEpilogue( hDevice, pOverclockDomains ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -750,10 +766,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetOverclockControls( hDevice, domainType, pAvailableControls ); + auto driver_result = pfnGetOverclockControls( hDevice, domainType, pAvailableControls ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetOverclockControlsEpilogue( hDevice, domainType, pAvailableControls ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetOverclockControlsEpilogue( hDevice, domainType, pAvailableControls ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -791,10 +808,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnResetOverclockSettings( hDevice, onShippedState ); + auto driver_result = pfnResetOverclockSettings( hDevice, onShippedState ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceResetOverclockSettingsEpilogue( hDevice, onShippedState ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceResetOverclockSettingsEpilogue( hDevice, onShippedState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -836,10 +854,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnReadOverclockState( hDevice, pOverclockMode, pWaiverSetting, pOverclockState, pPendingAction, pPendingReset ); + auto driver_result = pfnReadOverclockState( hDevice, pOverclockMode, pWaiverSetting, pOverclockState, pPendingAction, pPendingReset ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceReadOverclockStateEpilogue( hDevice, pOverclockMode, pWaiverSetting, pOverclockState, pPendingAction, pPendingReset ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceReadOverclockStateEpilogue( hDevice, pOverclockMode, pWaiverSetting, pOverclockState, pPendingAction, pPendingReset ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -886,10 +905,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumOverclockDomains( hDevice, pCount, phDomainHandle ); + auto driver_result = pfnEnumOverclockDomains( hDevice, pCount, phDomainHandle ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumOverclockDomainsEpilogue( hDevice, pCount, phDomainHandle ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumOverclockDomainsEpilogue( hDevice, pCount, phDomainHandle ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -926,10 +946,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetDomainProperties( hDomainHandle, pDomainProperties ); + auto driver_result = pfnGetDomainProperties( hDomainHandle, pDomainProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetDomainPropertiesEpilogue( hDomainHandle, pDomainProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetDomainPropertiesEpilogue( hDomainHandle, pDomainProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -966,10 +987,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetDomainVFProperties( hDomainHandle, pVFProperties ); + auto driver_result = pfnGetDomainVFProperties( hDomainHandle, pVFProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetDomainVFPropertiesEpilogue( hDomainHandle, pVFProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetDomainVFPropertiesEpilogue( hDomainHandle, pVFProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1007,10 +1029,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetDomainControlProperties( hDomainHandle, DomainControl, pControlProperties ); + auto driver_result = pfnGetDomainControlProperties( hDomainHandle, DomainControl, pControlProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetDomainControlPropertiesEpilogue( hDomainHandle, DomainControl, pControlProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetDomainControlPropertiesEpilogue( hDomainHandle, DomainControl, pControlProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1048,10 +1071,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetControlCurrentValue( hDomainHandle, DomainControl, pValue ); + auto driver_result = pfnGetControlCurrentValue( hDomainHandle, DomainControl, pValue ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetControlCurrentValueEpilogue( hDomainHandle, DomainControl, pValue ); + auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetControlCurrentValueEpilogue( hDomainHandle, DomainControl, pValue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1090,10 +1114,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetControlPendingValue( hDomainHandle, DomainControl, pValue ); + auto driver_result = pfnGetControlPendingValue( hDomainHandle, DomainControl, pValue ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetControlPendingValueEpilogue( hDomainHandle, DomainControl, pValue ); + auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetControlPendingValueEpilogue( hDomainHandle, DomainControl, pValue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1133,10 +1158,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetControlUserValue( hDomainHandle, DomainControl, pValue, pPendingAction ); + auto driver_result = pfnSetControlUserValue( hDomainHandle, DomainControl, pValue, pPendingAction ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesOverclockSetControlUserValueEpilogue( hDomainHandle, DomainControl, pValue, pPendingAction ); + auto result = context.validationHandlers[i]->zesValidation->zesOverclockSetControlUserValueEpilogue( hDomainHandle, DomainControl, pValue, pPendingAction ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1175,10 +1201,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetControlState( hDomainHandle, DomainControl, pControlState, pPendingAction ); + auto driver_result = pfnGetControlState( hDomainHandle, DomainControl, pControlState, pPendingAction ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetControlStateEpilogue( hDomainHandle, DomainControl, pControlState, pPendingAction ); + auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetControlStateEpilogue( hDomainHandle, DomainControl, pControlState, pPendingAction ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1219,10 +1246,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetVFPointValues( hDomainHandle, VFType, VFArrayType, PointIndex, PointValue ); + auto driver_result = pfnGetVFPointValues( hDomainHandle, VFType, VFArrayType, PointIndex, PointValue ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetVFPointValuesEpilogue( hDomainHandle, VFType, VFArrayType, PointIndex, PointValue ); + auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetVFPointValuesEpilogue( hDomainHandle, VFType, VFArrayType, PointIndex, PointValue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1262,10 +1290,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetVFPointValues( hDomainHandle, VFType, PointIndex, PointValue ); + auto driver_result = pfnSetVFPointValues( hDomainHandle, VFType, PointIndex, PointValue ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesOverclockSetVFPointValuesEpilogue( hDomainHandle, VFType, PointIndex, PointValue ); + auto result = context.validationHandlers[i]->zesValidation->zesOverclockSetVFPointValuesEpilogue( hDomainHandle, VFType, PointIndex, PointValue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1312,10 +1341,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumDiagnosticTestSuites( hDevice, pCount, phDiagnostics ); + auto driver_result = pfnEnumDiagnosticTestSuites( hDevice, pCount, phDiagnostics ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumDiagnosticTestSuitesEpilogue( hDevice, pCount, phDiagnostics ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumDiagnosticTestSuitesEpilogue( hDevice, pCount, phDiagnostics ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1353,10 +1383,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hDiagnostics, pProperties ); + auto driver_result = pfnGetProperties( hDiagnostics, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDiagnosticsGetPropertiesEpilogue( hDiagnostics, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesDiagnosticsGetPropertiesEpilogue( hDiagnostics, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1401,10 +1432,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetTests( hDiagnostics, pCount, pTests ); + auto driver_result = pfnGetTests( hDiagnostics, pCount, pTests ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDiagnosticsGetTestsEpilogue( hDiagnostics, pCount, pTests ); + auto result = context.validationHandlers[i]->zesValidation->zesDiagnosticsGetTestsEpilogue( hDiagnostics, pCount, pTests ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1445,10 +1477,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnRunTests( hDiagnostics, startIndex, endIndex, pResult ); + auto driver_result = pfnRunTests( hDiagnostics, startIndex, endIndex, pResult ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDiagnosticsRunTestsEpilogue( hDiagnostics, startIndex, endIndex, pResult ); + auto result = context.validationHandlers[i]->zesValidation->zesDiagnosticsRunTestsEpilogue( hDiagnostics, startIndex, endIndex, pResult ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1485,10 +1518,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEccAvailable( hDevice, pAvailable ); + auto driver_result = pfnEccAvailable( hDevice, pAvailable ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEccAvailableEpilogue( hDevice, pAvailable ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEccAvailableEpilogue( hDevice, pAvailable ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1525,10 +1559,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEccConfigurable( hDevice, pConfigurable ); + auto driver_result = pfnEccConfigurable( hDevice, pConfigurable ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEccConfigurableEpilogue( hDevice, pConfigurable ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEccConfigurableEpilogue( hDevice, pConfigurable ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1565,10 +1600,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetEccState( hDevice, pState ); + auto driver_result = pfnGetEccState( hDevice, pState ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetEccStateEpilogue( hDevice, pState ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetEccStateEpilogue( hDevice, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1606,10 +1642,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetEccState( hDevice, newState, pState ); + auto driver_result = pfnSetEccState( hDevice, newState, pState ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceSetEccStateEpilogue( hDevice, newState, pState ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceSetEccStateEpilogue( hDevice, newState, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1656,10 +1693,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumEngineGroups( hDevice, pCount, phEngine ); + auto driver_result = pfnEnumEngineGroups( hDevice, pCount, phEngine ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumEngineGroupsEpilogue( hDevice, pCount, phEngine ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumEngineGroupsEpilogue( hDevice, pCount, phEngine ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1696,10 +1734,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hEngine, pProperties ); + auto driver_result = pfnGetProperties( hEngine, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesEngineGetPropertiesEpilogue( hEngine, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesEngineGetPropertiesEpilogue( hEngine, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1737,10 +1776,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetActivity( hEngine, pStats ); + auto driver_result = pfnGetActivity( hEngine, pStats ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesEngineGetActivityEpilogue( hEngine, pStats ); + auto result = context.validationHandlers[i]->zesValidation->zesEngineGetActivityEpilogue( hEngine, pStats ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1777,10 +1817,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEventRegister( hDevice, events ); + auto driver_result = pfnEventRegister( hDevice, events ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEventRegisterEpilogue( hDevice, events ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEventRegisterEpilogue( hDevice, events ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1833,10 +1874,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEventListen( hDriver, timeout, count, phDevices, pNumDeviceEvents, pEvents ); + auto driver_result = pfnEventListen( hDriver, timeout, count, phDevices, pNumDeviceEvents, pEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDriverEventListenEpilogue( hDriver, timeout, count, phDevices, pNumDeviceEvents, pEvents ); + auto result = context.validationHandlers[i]->zesValidation->zesDriverEventListenEpilogue( hDriver, timeout, count, phDevices, pNumDeviceEvents, pEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1889,10 +1931,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEventListenEx( hDriver, timeout, count, phDevices, pNumDeviceEvents, pEvents ); + auto driver_result = pfnEventListenEx( hDriver, timeout, count, phDevices, pNumDeviceEvents, pEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDriverEventListenExEpilogue( hDriver, timeout, count, phDevices, pNumDeviceEvents, pEvents ); + auto result = context.validationHandlers[i]->zesValidation->zesDriverEventListenExEpilogue( hDriver, timeout, count, phDevices, pNumDeviceEvents, pEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1939,10 +1982,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumFabricPorts( hDevice, pCount, phPort ); + auto driver_result = pfnEnumFabricPorts( hDevice, pCount, phPort ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumFabricPortsEpilogue( hDevice, pCount, phPort ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumFabricPortsEpilogue( hDevice, pCount, phPort ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1979,10 +2023,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hPort, pProperties ); + auto driver_result = pfnGetProperties( hPort, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetPropertiesEpilogue( hPort, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetPropertiesEpilogue( hPort, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2020,10 +2065,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetLinkType( hPort, pLinkType ); + auto driver_result = pfnGetLinkType( hPort, pLinkType ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetLinkTypeEpilogue( hPort, pLinkType ); + auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetLinkTypeEpilogue( hPort, pLinkType ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2060,10 +2106,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetConfig( hPort, pConfig ); + auto driver_result = pfnGetConfig( hPort, pConfig ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetConfigEpilogue( hPort, pConfig ); + auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetConfigEpilogue( hPort, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2100,10 +2147,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetConfig( hPort, pConfig ); + auto driver_result = pfnSetConfig( hPort, pConfig ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFabricPortSetConfigEpilogue( hPort, pConfig ); + auto result = context.validationHandlers[i]->zesValidation->zesFabricPortSetConfigEpilogue( hPort, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2140,10 +2188,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetState( hPort, pState ); + auto driver_result = pfnGetState( hPort, pState ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetStateEpilogue( hPort, pState ); + auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetStateEpilogue( hPort, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2180,10 +2229,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetThroughput( hPort, pThroughput ); + auto driver_result = pfnGetThroughput( hPort, pThroughput ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetThroughputEpilogue( hPort, pThroughput ); + auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetThroughputEpilogue( hPort, pThroughput ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2220,10 +2270,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetFabricErrorCounters( hPort, pErrors ); + auto driver_result = pfnGetFabricErrorCounters( hPort, pErrors ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetFabricErrorCountersEpilogue( hPort, pErrors ); + auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetFabricErrorCountersEpilogue( hPort, pErrors ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2264,10 +2315,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetMultiPortThroughput( hDevice, numPorts, phPort, pThroughput ); + auto driver_result = pfnGetMultiPortThroughput( hDevice, numPorts, phPort, pThroughput ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetMultiPortThroughputEpilogue( hDevice, numPorts, phPort, pThroughput ); + auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetMultiPortThroughputEpilogue( hDevice, numPorts, phPort, pThroughput ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2314,10 +2366,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumFans( hDevice, pCount, phFan ); + auto driver_result = pfnEnumFans( hDevice, pCount, phFan ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumFansEpilogue( hDevice, pCount, phFan ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumFansEpilogue( hDevice, pCount, phFan ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2354,10 +2407,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hFan, pProperties ); + auto driver_result = pfnGetProperties( hFan, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFanGetPropertiesEpilogue( hFan, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesFanGetPropertiesEpilogue( hFan, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2394,10 +2448,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetConfig( hFan, pConfig ); + auto driver_result = pfnGetConfig( hFan, pConfig ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFanGetConfigEpilogue( hFan, pConfig ); + auto result = context.validationHandlers[i]->zesValidation->zesFanGetConfigEpilogue( hFan, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2433,10 +2488,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetDefaultMode( hFan ); + auto driver_result = pfnSetDefaultMode( hFan ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFanSetDefaultModeEpilogue( hFan ); + auto result = context.validationHandlers[i]->zesValidation->zesFanSetDefaultModeEpilogue( hFan ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2473,10 +2529,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetFixedSpeedMode( hFan, speed ); + auto driver_result = pfnSetFixedSpeedMode( hFan, speed ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFanSetFixedSpeedModeEpilogue( hFan, speed ); + auto result = context.validationHandlers[i]->zesValidation->zesFanSetFixedSpeedModeEpilogue( hFan, speed ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2513,10 +2570,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetSpeedTableMode( hFan, speedTable ); + auto driver_result = pfnSetSpeedTableMode( hFan, speedTable ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFanSetSpeedTableModeEpilogue( hFan, speedTable ); + auto result = context.validationHandlers[i]->zesValidation->zesFanSetSpeedTableModeEpilogue( hFan, speedTable ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2556,10 +2614,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetState( hFan, units, pSpeed ); + auto driver_result = pfnGetState( hFan, units, pSpeed ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFanGetStateEpilogue( hFan, units, pSpeed ); + auto result = context.validationHandlers[i]->zesValidation->zesFanGetStateEpilogue( hFan, units, pSpeed ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2606,10 +2665,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumFirmwares( hDevice, pCount, phFirmware ); + auto driver_result = pfnEnumFirmwares( hDevice, pCount, phFirmware ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumFirmwaresEpilogue( hDevice, pCount, phFirmware ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumFirmwaresEpilogue( hDevice, pCount, phFirmware ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2647,10 +2707,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hFirmware, pProperties ); + auto driver_result = pfnGetProperties( hFirmware, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFirmwareGetPropertiesEpilogue( hFirmware, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesFirmwareGetPropertiesEpilogue( hFirmware, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2688,10 +2749,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnFlash( hFirmware, pImage, size ); + auto driver_result = pfnFlash( hFirmware, pImage, size ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFirmwareFlashEpilogue( hFirmware, pImage, size ); + auto result = context.validationHandlers[i]->zesValidation->zesFirmwareFlashEpilogue( hFirmware, pImage, size ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2728,10 +2790,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetFlashProgress( hFirmware, pCompletionPercent ); + auto driver_result = pfnGetFlashProgress( hFirmware, pCompletionPercent ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFirmwareGetFlashProgressEpilogue( hFirmware, pCompletionPercent ); + auto result = context.validationHandlers[i]->zesValidation->zesFirmwareGetFlashProgressEpilogue( hFirmware, pCompletionPercent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2769,10 +2832,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetConsoleLogs( hFirmware, pSize, pFirmwareLog ); + auto driver_result = pfnGetConsoleLogs( hFirmware, pSize, pFirmwareLog ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFirmwareGetConsoleLogsEpilogue( hFirmware, pSize, pFirmwareLog ); + auto result = context.validationHandlers[i]->zesValidation->zesFirmwareGetConsoleLogsEpilogue( hFirmware, pSize, pFirmwareLog ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2819,10 +2883,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumFrequencyDomains( hDevice, pCount, phFrequency ); + auto driver_result = pfnEnumFrequencyDomains( hDevice, pCount, phFrequency ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumFrequencyDomainsEpilogue( hDevice, pCount, phFrequency ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumFrequencyDomainsEpilogue( hDevice, pCount, phFrequency ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2859,10 +2924,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hFrequency, pProperties ); + auto driver_result = pfnGetProperties( hFrequency, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetPropertiesEpilogue( hFrequency, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetPropertiesEpilogue( hFrequency, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2907,10 +2973,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetAvailableClocks( hFrequency, pCount, phFrequency ); + auto driver_result = pfnGetAvailableClocks( hFrequency, pCount, phFrequency ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetAvailableClocksEpilogue( hFrequency, pCount, phFrequency ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetAvailableClocksEpilogue( hFrequency, pCount, phFrequency ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2948,10 +3015,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetRange( hFrequency, pLimits ); + auto driver_result = pfnGetRange( hFrequency, pLimits ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetRangeEpilogue( hFrequency, pLimits ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetRangeEpilogue( hFrequency, pLimits ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2989,10 +3057,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetRange( hFrequency, pLimits ); + auto driver_result = pfnSetRange( hFrequency, pLimits ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencySetRangeEpilogue( hFrequency, pLimits ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencySetRangeEpilogue( hFrequency, pLimits ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3029,10 +3098,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetState( hFrequency, pState ); + auto driver_result = pfnGetState( hFrequency, pState ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetStateEpilogue( hFrequency, pState ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetStateEpilogue( hFrequency, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3070,10 +3140,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetThrottleTime( hFrequency, pThrottleTime ); + auto driver_result = pfnGetThrottleTime( hFrequency, pThrottleTime ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetThrottleTimeEpilogue( hFrequency, pThrottleTime ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetThrottleTimeEpilogue( hFrequency, pThrottleTime ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3110,10 +3181,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOcGetCapabilities( hFrequency, pOcCapabilities ); + auto driver_result = pfnOcGetCapabilities( hFrequency, pOcCapabilities ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetCapabilitiesEpilogue( hFrequency, pOcCapabilities ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetCapabilitiesEpilogue( hFrequency, pOcCapabilities ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3153,10 +3225,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOcGetFrequencyTarget( hFrequency, pCurrentOcFrequency ); + auto driver_result = pfnOcGetFrequencyTarget( hFrequency, pCurrentOcFrequency ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetFrequencyTargetEpilogue( hFrequency, pCurrentOcFrequency ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetFrequencyTargetEpilogue( hFrequency, pCurrentOcFrequency ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3196,10 +3269,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOcSetFrequencyTarget( hFrequency, CurrentOcFrequency ); + auto driver_result = pfnOcSetFrequencyTarget( hFrequency, CurrentOcFrequency ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetFrequencyTargetEpilogue( hFrequency, CurrentOcFrequency ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetFrequencyTargetEpilogue( hFrequency, CurrentOcFrequency ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3241,10 +3315,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOcGetVoltageTarget( hFrequency, pCurrentVoltageTarget, pCurrentVoltageOffset ); + auto driver_result = pfnOcGetVoltageTarget( hFrequency, pCurrentVoltageTarget, pCurrentVoltageOffset ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetVoltageTargetEpilogue( hFrequency, pCurrentVoltageTarget, pCurrentVoltageOffset ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetVoltageTargetEpilogue( hFrequency, pCurrentVoltageTarget, pCurrentVoltageOffset ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3286,10 +3361,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOcSetVoltageTarget( hFrequency, CurrentVoltageTarget, CurrentVoltageOffset ); + auto driver_result = pfnOcSetVoltageTarget( hFrequency, CurrentVoltageTarget, CurrentVoltageOffset ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetVoltageTargetEpilogue( hFrequency, CurrentVoltageTarget, CurrentVoltageOffset ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetVoltageTargetEpilogue( hFrequency, CurrentVoltageTarget, CurrentVoltageOffset ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3326,10 +3402,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOcSetMode( hFrequency, CurrentOcMode ); + auto driver_result = pfnOcSetMode( hFrequency, CurrentOcMode ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetModeEpilogue( hFrequency, CurrentOcMode ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetModeEpilogue( hFrequency, CurrentOcMode ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3366,10 +3443,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOcGetMode( hFrequency, pCurrentOcMode ); + auto driver_result = pfnOcGetMode( hFrequency, pCurrentOcMode ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetModeEpilogue( hFrequency, pCurrentOcMode ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetModeEpilogue( hFrequency, pCurrentOcMode ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3407,10 +3485,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOcGetIccMax( hFrequency, pOcIccMax ); + auto driver_result = pfnOcGetIccMax( hFrequency, pOcIccMax ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetIccMaxEpilogue( hFrequency, pOcIccMax ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetIccMaxEpilogue( hFrequency, pOcIccMax ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3447,10 +3526,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOcSetIccMax( hFrequency, ocIccMax ); + auto driver_result = pfnOcSetIccMax( hFrequency, ocIccMax ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetIccMaxEpilogue( hFrequency, ocIccMax ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetIccMaxEpilogue( hFrequency, ocIccMax ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3488,10 +3568,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOcGetTjMax( hFrequency, pOcTjMax ); + auto driver_result = pfnOcGetTjMax( hFrequency, pOcTjMax ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetTjMaxEpilogue( hFrequency, pOcTjMax ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetTjMaxEpilogue( hFrequency, pOcTjMax ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3528,10 +3609,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOcSetTjMax( hFrequency, ocTjMax ); + auto driver_result = pfnOcSetTjMax( hFrequency, ocTjMax ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetTjMaxEpilogue( hFrequency, ocTjMax ); + auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetTjMaxEpilogue( hFrequency, ocTjMax ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3578,10 +3660,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumLeds( hDevice, pCount, phLed ); + auto driver_result = pfnEnumLeds( hDevice, pCount, phLed ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumLedsEpilogue( hDevice, pCount, phLed ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumLedsEpilogue( hDevice, pCount, phLed ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3618,10 +3701,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hLed, pProperties ); + auto driver_result = pfnGetProperties( hLed, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesLedGetPropertiesEpilogue( hLed, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesLedGetPropertiesEpilogue( hLed, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3658,10 +3742,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetState( hLed, pState ); + auto driver_result = pfnGetState( hLed, pState ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesLedGetStateEpilogue( hLed, pState ); + auto result = context.validationHandlers[i]->zesValidation->zesLedGetStateEpilogue( hLed, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3698,10 +3783,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetState( hLed, enable ); + auto driver_result = pfnSetState( hLed, enable ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesLedSetStateEpilogue( hLed, enable ); + auto result = context.validationHandlers[i]->zesValidation->zesLedSetStateEpilogue( hLed, enable ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3738,10 +3824,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetColor( hLed, pColor ); + auto driver_result = pfnSetColor( hLed, pColor ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesLedSetColorEpilogue( hLed, pColor ); + auto result = context.validationHandlers[i]->zesValidation->zesLedSetColorEpilogue( hLed, pColor ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3788,10 +3875,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumMemoryModules( hDevice, pCount, phMemory ); + auto driver_result = pfnEnumMemoryModules( hDevice, pCount, phMemory ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumMemoryModulesEpilogue( hDevice, pCount, phMemory ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumMemoryModulesEpilogue( hDevice, pCount, phMemory ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3828,10 +3916,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hMemory, pProperties ); + auto driver_result = pfnGetProperties( hMemory, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesMemoryGetPropertiesEpilogue( hMemory, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesMemoryGetPropertiesEpilogue( hMemory, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3868,10 +3957,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetState( hMemory, pState ); + auto driver_result = pfnGetState( hMemory, pState ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesMemoryGetStateEpilogue( hMemory, pState ); + auto result = context.validationHandlers[i]->zesValidation->zesMemoryGetStateEpilogue( hMemory, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3909,10 +3999,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetBandwidth( hMemory, pBandwidth ); + auto driver_result = pfnGetBandwidth( hMemory, pBandwidth ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesMemoryGetBandwidthEpilogue( hMemory, pBandwidth ); + auto result = context.validationHandlers[i]->zesValidation->zesMemoryGetBandwidthEpilogue( hMemory, pBandwidth ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3959,10 +4050,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumPerformanceFactorDomains( hDevice, pCount, phPerf ); + auto driver_result = pfnEnumPerformanceFactorDomains( hDevice, pCount, phPerf ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumPerformanceFactorDomainsEpilogue( hDevice, pCount, phPerf ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumPerformanceFactorDomainsEpilogue( hDevice, pCount, phPerf ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4000,10 +4092,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hPerf, pProperties ); + auto driver_result = pfnGetProperties( hPerf, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPerformanceFactorGetPropertiesEpilogue( hPerf, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesPerformanceFactorGetPropertiesEpilogue( hPerf, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4041,10 +4134,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetConfig( hPerf, pFactor ); + auto driver_result = pfnGetConfig( hPerf, pFactor ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPerformanceFactorGetConfigEpilogue( hPerf, pFactor ); + auto result = context.validationHandlers[i]->zesValidation->zesPerformanceFactorGetConfigEpilogue( hPerf, pFactor ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4081,10 +4175,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetConfig( hPerf, factor ); + auto driver_result = pfnSetConfig( hPerf, factor ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPerformanceFactorSetConfigEpilogue( hPerf, factor ); + auto result = context.validationHandlers[i]->zesValidation->zesPerformanceFactorSetConfigEpilogue( hPerf, factor ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4131,10 +4226,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumPowerDomains( hDevice, pCount, phPower ); + auto driver_result = pfnEnumPowerDomains( hDevice, pCount, phPower ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumPowerDomainsEpilogue( hDevice, pCount, phPower ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumPowerDomainsEpilogue( hDevice, pCount, phPower ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4171,10 +4267,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetCardPowerDomain( hDevice, phPower ); + auto driver_result = pfnGetCardPowerDomain( hDevice, phPower ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetCardPowerDomainEpilogue( hDevice, phPower ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetCardPowerDomainEpilogue( hDevice, phPower ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4211,10 +4308,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hPower, pProperties ); + auto driver_result = pfnGetProperties( hPower, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPowerGetPropertiesEpilogue( hPower, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesPowerGetPropertiesEpilogue( hPower, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4252,10 +4350,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetEnergyCounter( hPower, pEnergy ); + auto driver_result = pfnGetEnergyCounter( hPower, pEnergy ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPowerGetEnergyCounterEpilogue( hPower, pEnergy ); + auto result = context.validationHandlers[i]->zesValidation->zesPowerGetEnergyCounterEpilogue( hPower, pEnergy ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4297,10 +4396,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetLimits( hPower, pSustained, pBurst, pPeak ); + auto driver_result = pfnGetLimits( hPower, pSustained, pBurst, pPeak ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPowerGetLimitsEpilogue( hPower, pSustained, pBurst, pPeak ); + auto result = context.validationHandlers[i]->zesValidation->zesPowerGetLimitsEpilogue( hPower, pSustained, pBurst, pPeak ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4342,10 +4442,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetLimits( hPower, pSustained, pBurst, pPeak ); + auto driver_result = pfnSetLimits( hPower, pSustained, pBurst, pPeak ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPowerSetLimitsEpilogue( hPower, pSustained, pBurst, pPeak ); + auto result = context.validationHandlers[i]->zesValidation->zesPowerSetLimitsEpilogue( hPower, pSustained, pBurst, pPeak ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4383,10 +4484,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetEnergyThreshold( hPower, pThreshold ); + auto driver_result = pfnGetEnergyThreshold( hPower, pThreshold ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPowerGetEnergyThresholdEpilogue( hPower, pThreshold ); + auto result = context.validationHandlers[i]->zesValidation->zesPowerGetEnergyThresholdEpilogue( hPower, pThreshold ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4423,10 +4525,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetEnergyThreshold( hPower, threshold ); + auto driver_result = pfnSetEnergyThreshold( hPower, threshold ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPowerSetEnergyThresholdEpilogue( hPower, threshold ); + auto result = context.validationHandlers[i]->zesValidation->zesPowerSetEnergyThresholdEpilogue( hPower, threshold ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4473,10 +4576,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumPsus( hDevice, pCount, phPsu ); + auto driver_result = pfnEnumPsus( hDevice, pCount, phPsu ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumPsusEpilogue( hDevice, pCount, phPsu ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumPsusEpilogue( hDevice, pCount, phPsu ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4513,10 +4617,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hPsu, pProperties ); + auto driver_result = pfnGetProperties( hPsu, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPsuGetPropertiesEpilogue( hPsu, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesPsuGetPropertiesEpilogue( hPsu, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4553,10 +4658,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetState( hPsu, pState ); + auto driver_result = pfnGetState( hPsu, pState ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPsuGetStateEpilogue( hPsu, pState ); + auto result = context.validationHandlers[i]->zesValidation->zesPsuGetStateEpilogue( hPsu, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4603,10 +4709,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumRasErrorSets( hDevice, pCount, phRas ); + auto driver_result = pfnEnumRasErrorSets( hDevice, pCount, phRas ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumRasErrorSetsEpilogue( hDevice, pCount, phRas ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumRasErrorSetsEpilogue( hDevice, pCount, phRas ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4643,10 +4750,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hRas, pProperties ); + auto driver_result = pfnGetProperties( hRas, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesRasGetPropertiesEpilogue( hRas, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesRasGetPropertiesEpilogue( hRas, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4684,10 +4792,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetConfig( hRas, pConfig ); + auto driver_result = pfnGetConfig( hRas, pConfig ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesRasGetConfigEpilogue( hRas, pConfig ); + auto result = context.validationHandlers[i]->zesValidation->zesRasGetConfigEpilogue( hRas, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4724,10 +4833,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetConfig( hRas, pConfig ); + auto driver_result = pfnSetConfig( hRas, pConfig ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesRasSetConfigEpilogue( hRas, pConfig ); + auto result = context.validationHandlers[i]->zesValidation->zesRasSetConfigEpilogue( hRas, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4765,10 +4875,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetState( hRas, clear, pState ); + auto driver_result = pfnGetState( hRas, clear, pState ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesRasGetStateEpilogue( hRas, clear, pState ); + auto result = context.validationHandlers[i]->zesValidation->zesRasGetStateEpilogue( hRas, clear, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4815,10 +4926,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumSchedulers( hDevice, pCount, phScheduler ); + auto driver_result = pfnEnumSchedulers( hDevice, pCount, phScheduler ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumSchedulersEpilogue( hDevice, pCount, phScheduler ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumSchedulersEpilogue( hDevice, pCount, phScheduler ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4855,10 +4967,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hScheduler, pProperties ); + auto driver_result = pfnGetProperties( hScheduler, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesSchedulerGetPropertiesEpilogue( hScheduler, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesSchedulerGetPropertiesEpilogue( hScheduler, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4895,10 +5008,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetCurrentMode( hScheduler, pMode ); + auto driver_result = pfnGetCurrentMode( hScheduler, pMode ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesSchedulerGetCurrentModeEpilogue( hScheduler, pMode ); + auto result = context.validationHandlers[i]->zesValidation->zesSchedulerGetCurrentModeEpilogue( hScheduler, pMode ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4937,10 +5051,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetTimeoutModeProperties( hScheduler, getDefaults, pConfig ); + auto driver_result = pfnGetTimeoutModeProperties( hScheduler, getDefaults, pConfig ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesSchedulerGetTimeoutModePropertiesEpilogue( hScheduler, getDefaults, pConfig ); + auto result = context.validationHandlers[i]->zesValidation->zesSchedulerGetTimeoutModePropertiesEpilogue( hScheduler, getDefaults, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -4979,10 +5094,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetTimesliceModeProperties( hScheduler, getDefaults, pConfig ); + auto driver_result = pfnGetTimesliceModeProperties( hScheduler, getDefaults, pConfig ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesSchedulerGetTimesliceModePropertiesEpilogue( hScheduler, getDefaults, pConfig ); + auto result = context.validationHandlers[i]->zesValidation->zesSchedulerGetTimesliceModePropertiesEpilogue( hScheduler, getDefaults, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5021,10 +5137,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetTimeoutMode( hScheduler, pProperties, pNeedReload ); + auto driver_result = pfnSetTimeoutMode( hScheduler, pProperties, pNeedReload ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesSchedulerSetTimeoutModeEpilogue( hScheduler, pProperties, pNeedReload ); + auto result = context.validationHandlers[i]->zesValidation->zesSchedulerSetTimeoutModeEpilogue( hScheduler, pProperties, pNeedReload ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5063,10 +5180,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetTimesliceMode( hScheduler, pProperties, pNeedReload ); + auto driver_result = pfnSetTimesliceMode( hScheduler, pProperties, pNeedReload ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesSchedulerSetTimesliceModeEpilogue( hScheduler, pProperties, pNeedReload ); + auto result = context.validationHandlers[i]->zesValidation->zesSchedulerSetTimesliceModeEpilogue( hScheduler, pProperties, pNeedReload ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5104,10 +5222,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetExclusiveMode( hScheduler, pNeedReload ); + auto driver_result = pfnSetExclusiveMode( hScheduler, pNeedReload ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesSchedulerSetExclusiveModeEpilogue( hScheduler, pNeedReload ); + auto result = context.validationHandlers[i]->zesValidation->zesSchedulerSetExclusiveModeEpilogue( hScheduler, pNeedReload ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5145,10 +5264,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetComputeUnitDebugMode( hScheduler, pNeedReload ); + auto driver_result = pfnSetComputeUnitDebugMode( hScheduler, pNeedReload ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesSchedulerSetComputeUnitDebugModeEpilogue( hScheduler, pNeedReload ); + auto result = context.validationHandlers[i]->zesValidation->zesSchedulerSetComputeUnitDebugModeEpilogue( hScheduler, pNeedReload ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5195,10 +5315,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumStandbyDomains( hDevice, pCount, phStandby ); + auto driver_result = pfnEnumStandbyDomains( hDevice, pCount, phStandby ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumStandbyDomainsEpilogue( hDevice, pCount, phStandby ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumStandbyDomainsEpilogue( hDevice, pCount, phStandby ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5235,10 +5356,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hStandby, pProperties ); + auto driver_result = pfnGetProperties( hStandby, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesStandbyGetPropertiesEpilogue( hStandby, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesStandbyGetPropertiesEpilogue( hStandby, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5275,10 +5397,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetMode( hStandby, pMode ); + auto driver_result = pfnGetMode( hStandby, pMode ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesStandbyGetModeEpilogue( hStandby, pMode ); + auto result = context.validationHandlers[i]->zesValidation->zesStandbyGetModeEpilogue( hStandby, pMode ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5315,10 +5438,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetMode( hStandby, mode ); + auto driver_result = pfnSetMode( hStandby, mode ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesStandbySetModeEpilogue( hStandby, mode ); + auto result = context.validationHandlers[i]->zesValidation->zesStandbySetModeEpilogue( hStandby, mode ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5365,10 +5489,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumTemperatureSensors( hDevice, pCount, phTemperature ); + auto driver_result = pfnEnumTemperatureSensors( hDevice, pCount, phTemperature ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumTemperatureSensorsEpilogue( hDevice, pCount, phTemperature ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumTemperatureSensorsEpilogue( hDevice, pCount, phTemperature ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5405,10 +5530,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hTemperature, pProperties ); + auto driver_result = pfnGetProperties( hTemperature, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesTemperatureGetPropertiesEpilogue( hTemperature, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesTemperatureGetPropertiesEpilogue( hTemperature, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5445,10 +5571,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetConfig( hTemperature, pConfig ); + auto driver_result = pfnGetConfig( hTemperature, pConfig ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesTemperatureGetConfigEpilogue( hTemperature, pConfig ); + auto result = context.validationHandlers[i]->zesValidation->zesTemperatureGetConfigEpilogue( hTemperature, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5485,10 +5612,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetConfig( hTemperature, pConfig ); + auto driver_result = pfnSetConfig( hTemperature, pConfig ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesTemperatureSetConfigEpilogue( hTemperature, pConfig ); + auto result = context.validationHandlers[i]->zesValidation->zesTemperatureSetConfigEpilogue( hTemperature, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5526,10 +5654,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetState( hTemperature, pTemperature ); + auto driver_result = pfnGetState( hTemperature, pTemperature ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesTemperatureGetStateEpilogue( hTemperature, pTemperature ); + auto result = context.validationHandlers[i]->zesValidation->zesTemperatureGetStateEpilogue( hTemperature, pTemperature ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5574,10 +5703,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetLimitsExt( hPower, pCount, pSustained ); + auto driver_result = pfnGetLimitsExt( hPower, pCount, pSustained ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPowerGetLimitsExtEpilogue( hPower, pCount, pSustained ); + auto result = context.validationHandlers[i]->zesValidation->zesPowerGetLimitsExtEpilogue( hPower, pCount, pSustained ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5615,10 +5745,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetLimitsExt( hPower, pCount, pSustained ); + auto driver_result = pfnSetLimitsExt( hPower, pCount, pSustained ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesPowerSetLimitsExtEpilogue( hPower, pCount, pSustained ); + auto result = context.validationHandlers[i]->zesValidation->zesPowerSetLimitsExtEpilogue( hPower, pCount, pSustained ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5668,10 +5799,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetActivityExt( hEngine, pCount, pStats ); + auto driver_result = pfnGetActivityExt( hEngine, pCount, pStats ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesEngineGetActivityExtEpilogue( hEngine, pCount, pStats ); + auto result = context.validationHandlers[i]->zesValidation->zesEngineGetActivityExtEpilogue( hEngine, pCount, pStats ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5716,10 +5848,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetStateExp( hRas, pCount, pState ); + auto driver_result = pfnGetStateExp( hRas, pCount, pState ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesRasGetStateExpEpilogue( hRas, pCount, pState ); + auto result = context.validationHandlers[i]->zesValidation->zesRasGetStateExpEpilogue( hRas, pCount, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5760,10 +5893,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnClearStateExp( hRas, category ); + auto driver_result = pfnClearStateExp( hRas, category ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesRasClearStateExpEpilogue( hRas, category ); + auto result = context.validationHandlers[i]->zesValidation->zesRasClearStateExpEpilogue( hRas, category ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5801,10 +5935,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetSecurityVersionExp( hFirmware, pVersion ); + auto driver_result = pfnGetSecurityVersionExp( hFirmware, pVersion ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFirmwareGetSecurityVersionExpEpilogue( hFirmware, pVersion ); + auto result = context.validationHandlers[i]->zesValidation->zesFirmwareGetSecurityVersionExpEpilogue( hFirmware, pVersion ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5844,10 +5979,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetSecurityVersionExp( hFirmware ); + auto driver_result = pfnSetSecurityVersionExp( hFirmware ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesFirmwareSetSecurityVersionExpEpilogue( hFirmware ); + auto result = context.validationHandlers[i]->zesValidation->zesFirmwareSetSecurityVersionExpEpilogue( hFirmware ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5892,10 +6028,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetSubDevicePropertiesExp( hDevice, pCount, pSubdeviceProps ); + auto driver_result = pfnGetSubDevicePropertiesExp( hDevice, pCount, pSubdeviceProps ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetSubDevicePropertiesExpEpilogue( hDevice, pCount, pSubdeviceProps ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetSubDevicePropertiesExpEpilogue( hDevice, pCount, pSubdeviceProps ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5940,10 +6077,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetDeviceByUuidExp( hDriver, uuid, phDevice, onSubdevice, subdeviceId ); + auto driver_result = pfnGetDeviceByUuidExp( hDriver, uuid, phDevice, onSubdevice, subdeviceId ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDriverGetDeviceByUuidExpEpilogue( hDriver, uuid, phDevice, onSubdevice, subdeviceId ); + auto result = context.validationHandlers[i]->zesValidation->zesDriverGetDeviceByUuidExpEpilogue( hDriver, uuid, phDevice, onSubdevice, subdeviceId ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -5999,10 +6137,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumActiveVFExp( hDevice, pCount, phVFhandle ); + auto driver_result = pfnEnumActiveVFExp( hDevice, pCount, phVFhandle ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumActiveVFExpEpilogue( hDevice, pCount, phVFhandle ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumActiveVFExpEpilogue( hDevice, pCount, phVFhandle ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6039,10 +6178,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetVFPropertiesExp( hVFhandle, pProperties ); + auto driver_result = pfnGetVFPropertiesExp( hVFhandle, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFPropertiesExpEpilogue( hVFhandle, pProperties ); + auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFPropertiesExpEpilogue( hVFhandle, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6095,10 +6235,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetVFMemoryUtilizationExp( hVFhandle, pCount, pMemUtil ); + auto driver_result = pfnGetVFMemoryUtilizationExp( hVFhandle, pCount, pMemUtil ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFMemoryUtilizationExpEpilogue( hVFhandle, pCount, pMemUtil ); + auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFMemoryUtilizationExpEpilogue( hVFhandle, pCount, pMemUtil ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6151,10 +6292,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetVFEngineUtilizationExp( hVFhandle, pCount, pEngineUtil ); + auto driver_result = pfnGetVFEngineUtilizationExp( hVFhandle, pCount, pEngineUtil ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFEngineUtilizationExpEpilogue( hVFhandle, pCount, pEngineUtil ); + auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFEngineUtilizationExpEpilogue( hVFhandle, pCount, pEngineUtil ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6197,10 +6339,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetVFTelemetryModeExp( hVFhandle, flags, enable ); + auto driver_result = pfnSetVFTelemetryModeExp( hVFhandle, flags, enable ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesVFManagementSetVFTelemetryModeExpEpilogue( hVFhandle, flags, enable ); + auto result = context.validationHandlers[i]->zesValidation->zesVFManagementSetVFTelemetryModeExpEpilogue( hVFhandle, flags, enable ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6239,10 +6382,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetVFTelemetrySamplingIntervalExp( hVFhandle, flag, samplingInterval ); + auto driver_result = pfnSetVFTelemetrySamplingIntervalExp( hVFhandle, flag, samplingInterval ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesVFManagementSetVFTelemetrySamplingIntervalExpEpilogue( hVFhandle, flag, samplingInterval ); + auto result = context.validationHandlers[i]->zesValidation->zesVFManagementSetVFTelemetrySamplingIntervalExpEpilogue( hVFhandle, flag, samplingInterval ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6289,10 +6433,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnumEnabledVFExp( hDevice, pCount, phVFhandle ); + auto driver_result = pfnEnumEnabledVFExp( hDevice, pCount, phVFhandle ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumEnabledVFExpEpilogue( hDevice, pCount, phVFhandle ); + auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumEnabledVFExpEpilogue( hDevice, pCount, phVFhandle ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6329,10 +6474,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetVFCapabilitiesExp( hVFhandle, pCapability ); + auto driver_result = pfnGetVFCapabilitiesExp( hVFhandle, pCapability ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFCapabilitiesExpEpilogue( hVFhandle, pCapability ); + auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFCapabilitiesExpEpilogue( hVFhandle, pCapability ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6383,10 +6529,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetVFMemoryUtilizationExp2( hVFhandle, pCount, pMemUtil ); + auto driver_result = pfnGetVFMemoryUtilizationExp2( hVFhandle, pCount, pMemUtil ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFMemoryUtilizationExp2Epilogue( hVFhandle, pCount, pMemUtil ); + auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFMemoryUtilizationExp2Epilogue( hVFhandle, pCount, pMemUtil ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -6433,10 +6580,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetVFEngineUtilizationExp2( hVFhandle, pCount, pEngineUtil ); + auto driver_result = pfnGetVFEngineUtilizationExp2( hVFhandle, pCount, pEngineUtil ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFEngineUtilizationExp2Epilogue( hVFhandle, pCount, pEngineUtil ); + auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFEngineUtilizationExp2Epilogue( hVFhandle, pCount, pEngineUtil ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } diff --git a/source/layers/validation/zet_valddi.cpp b/source/layers/validation/zet_valddi.cpp index 71c3cfef..5472e200 100644 --- a/source/layers/validation/zet_valddi.cpp +++ b/source/layers/validation/zet_valddi.cpp @@ -45,10 +45,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetDebugInfo( hModule, format, pSize, pDebugInfo ); + auto driver_result = pfnGetDebugInfo( hModule, format, pSize, pDebugInfo ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetModuleGetDebugInfoEpilogue( hModule, format, pSize, pDebugInfo ); + auto result = context.validationHandlers[i]->zetValidation->zetModuleGetDebugInfoEpilogue( hModule, format, pSize, pDebugInfo ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -85,10 +86,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetDebugProperties( hDevice, pDebugProperties ); + auto driver_result = pfnGetDebugProperties( hDevice, pDebugProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDeviceGetDebugPropertiesEpilogue( hDevice, pDebugProperties ); + auto result = context.validationHandlers[i]->zetValidation->zetDeviceGetDebugPropertiesEpilogue( hDevice, pDebugProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -126,10 +128,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAttach( hDevice, config, phDebug ); + auto driver_result = pfnAttach( hDevice, config, phDebug ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDebugAttachEpilogue( hDevice, config, phDebug ); + auto result = context.validationHandlers[i]->zetValidation->zetDebugAttachEpilogue( hDevice, config, phDebug ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -165,10 +168,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDetach( hDebug ); + auto driver_result = pfnDetach( hDebug ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDebugDetachEpilogue( hDebug ); + auto result = context.validationHandlers[i]->zetValidation->zetDebugDetachEpilogue( hDebug ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -212,10 +216,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnReadEvent( hDebug, timeout, event ); + auto driver_result = pfnReadEvent( hDebug, timeout, event ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDebugReadEventEpilogue( hDebug, timeout, event ); + auto result = context.validationHandlers[i]->zetValidation->zetDebugReadEventEpilogue( hDebug, timeout, event ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -252,10 +257,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAcknowledgeEvent( hDebug, event ); + auto driver_result = pfnAcknowledgeEvent( hDebug, event ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDebugAcknowledgeEventEpilogue( hDebug, event ); + auto result = context.validationHandlers[i]->zetValidation->zetDebugAcknowledgeEventEpilogue( hDebug, event ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -292,10 +298,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnInterrupt( hDebug, thread ); + auto driver_result = pfnInterrupt( hDebug, thread ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDebugInterruptEpilogue( hDebug, thread ); + auto result = context.validationHandlers[i]->zetValidation->zetDebugInterruptEpilogue( hDebug, thread ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -332,10 +339,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnResume( hDebug, thread ); + auto driver_result = pfnResume( hDebug, thread ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDebugResumeEpilogue( hDebug, thread ); + auto result = context.validationHandlers[i]->zetValidation->zetDebugResumeEpilogue( hDebug, thread ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -375,10 +383,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnReadMemory( hDebug, thread, desc, size, buffer ); + auto driver_result = pfnReadMemory( hDebug, thread, desc, size, buffer ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDebugReadMemoryEpilogue( hDebug, thread, desc, size, buffer ); + auto result = context.validationHandlers[i]->zetValidation->zetDebugReadMemoryEpilogue( hDebug, thread, desc, size, buffer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -418,10 +427,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnWriteMemory( hDebug, thread, desc, size, buffer ); + auto driver_result = pfnWriteMemory( hDebug, thread, desc, size, buffer ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDebugWriteMemoryEpilogue( hDebug, thread, desc, size, buffer ); + auto result = context.validationHandlers[i]->zetValidation->zetDebugWriteMemoryEpilogue( hDebug, thread, desc, size, buffer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -467,10 +477,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetRegisterSetProperties( hDevice, pCount, pRegisterSetProperties ); + auto driver_result = pfnGetRegisterSetProperties( hDevice, pCount, pRegisterSetProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDebugGetRegisterSetPropertiesEpilogue( hDevice, pCount, pRegisterSetProperties ); + auto result = context.validationHandlers[i]->zetValidation->zetDebugGetRegisterSetPropertiesEpilogue( hDevice, pCount, pRegisterSetProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -517,10 +528,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetThreadRegisterSetProperties( hDebug, thread, pCount, pRegisterSetProperties ); + auto driver_result = pfnGetThreadRegisterSetProperties( hDebug, thread, pCount, pRegisterSetProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDebugGetThreadRegisterSetPropertiesEpilogue( hDebug, thread, pCount, pRegisterSetProperties ); + auto result = context.validationHandlers[i]->zetValidation->zetDebugGetThreadRegisterSetPropertiesEpilogue( hDebug, thread, pCount, pRegisterSetProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -565,10 +577,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnReadRegisters( hDebug, thread, type, start, count, pRegisterValues ); + auto driver_result = pfnReadRegisters( hDebug, thread, type, start, count, pRegisterValues ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDebugReadRegistersEpilogue( hDebug, thread, type, start, count, pRegisterValues ); + auto result = context.validationHandlers[i]->zetValidation->zetDebugReadRegistersEpilogue( hDebug, thread, type, start, count, pRegisterValues ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -613,10 +626,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnWriteRegisters( hDebug, thread, type, start, count, pRegisterValues ); + auto driver_result = pfnWriteRegisters( hDebug, thread, type, start, count, pRegisterValues ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDebugWriteRegistersEpilogue( hDebug, thread, type, start, count, pRegisterValues ); + auto result = context.validationHandlers[i]->zetValidation->zetDebugWriteRegistersEpilogue( hDebug, thread, type, start, count, pRegisterValues ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -661,10 +675,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGet( hDevice, pCount, phMetricGroups ); + auto driver_result = pfnGet( hDevice, pCount, phMetricGroups ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupGetEpilogue( hDevice, pCount, phMetricGroups ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupGetEpilogue( hDevice, pCount, phMetricGroups ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -711,10 +726,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hMetricGroup, pProperties ); + auto driver_result = pfnGetProperties( hMetricGroup, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupGetPropertiesEpilogue( hMetricGroup, pProperties ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupGetPropertiesEpilogue( hMetricGroup, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -762,10 +778,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCalculateMetricValues( hMetricGroup, type, rawDataSize, pRawData, pMetricValueCount, pMetricValues ); + auto driver_result = pfnCalculateMetricValues( hMetricGroup, type, rawDataSize, pRawData, pMetricValueCount, pMetricValues ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCalculateMetricValuesEpilogue( hMetricGroup, type, rawDataSize, pRawData, pMetricValueCount, pMetricValues ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCalculateMetricValuesEpilogue( hMetricGroup, type, rawDataSize, pRawData, pMetricValueCount, pMetricValues ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -809,10 +826,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGet( hMetricGroup, pCount, phMetrics ); + auto driver_result = pfnGet( hMetricGroup, pCount, phMetrics ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGetEpilogue( hMetricGroup, pCount, phMetrics ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGetEpilogue( hMetricGroup, pCount, phMetrics ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -859,10 +877,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProperties( hMetric, pProperties ); + auto driver_result = pfnGetProperties( hMetric, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGetPropertiesEpilogue( hMetric, pProperties ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGetPropertiesEpilogue( hMetric, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -905,10 +924,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnActivateMetricGroups( hContext, hDevice, count, phMetricGroups ); + auto driver_result = pfnActivateMetricGroups( hContext, hDevice, count, phMetricGroups ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetContextActivateMetricGroupsEpilogue( hContext, hDevice, count, phMetricGroups ); + auto result = context.validationHandlers[i]->zetValidation->zetContextActivateMetricGroupsEpilogue( hContext, hDevice, count, phMetricGroups ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -949,10 +969,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnOpen( hContext, hDevice, hMetricGroup, desc, hNotificationEvent, phMetricStreamer ); + auto driver_result = pfnOpen( hContext, hDevice, hMetricGroup, desc, hNotificationEvent, phMetricStreamer ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricStreamerOpenEpilogue( hContext, hDevice, hMetricGroup, desc, hNotificationEvent, phMetricStreamer ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricStreamerOpenEpilogue( hContext, hDevice, hMetricGroup, desc, hNotificationEvent, phMetricStreamer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -990,10 +1011,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendMetricStreamerMarker( hCommandList, hMetricStreamer, value ); + auto driver_result = pfnAppendMetricStreamerMarker( hCommandList, hMetricStreamer, value ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetCommandListAppendMetricStreamerMarkerEpilogue( hCommandList, hMetricStreamer, value ); + auto result = context.validationHandlers[i]->zetValidation->zetCommandListAppendMetricStreamerMarkerEpilogue( hCommandList, hMetricStreamer, value ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1029,10 +1051,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnClose( hMetricStreamer ); + auto driver_result = pfnClose( hMetricStreamer ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricStreamerCloseEpilogue( hMetricStreamer ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricStreamerCloseEpilogue( hMetricStreamer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1079,10 +1102,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnReadData( hMetricStreamer, maxReportCount, pRawDataSize, pRawData ); + auto driver_result = pfnReadData( hMetricStreamer, maxReportCount, pRawDataSize, pRawData ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricStreamerReadDataEpilogue( hMetricStreamer, maxReportCount, pRawDataSize, pRawData ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricStreamerReadDataEpilogue( hMetricStreamer, maxReportCount, pRawDataSize, pRawData ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1122,10 +1146,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hContext, hDevice, hMetricGroup, desc, phMetricQueryPool ); + auto driver_result = pfnCreate( hContext, hDevice, hMetricGroup, desc, phMetricQueryPool ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryPoolCreateEpilogue( hContext, hDevice, hMetricGroup, desc, phMetricQueryPool ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryPoolCreateEpilogue( hContext, hDevice, hMetricGroup, desc, phMetricQueryPool ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1170,10 +1195,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hMetricQueryPool ); + auto driver_result = pfnDestroy( hMetricQueryPool ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryPoolDestroyEpilogue( hMetricQueryPool ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryPoolDestroyEpilogue( hMetricQueryPool ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1211,10 +1237,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hMetricQueryPool, index, phMetricQuery ); + auto driver_result = pfnCreate( hMetricQueryPool, index, phMetricQuery ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryCreateEpilogue( hMetricQueryPool, index, phMetricQuery ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryCreateEpilogue( hMetricQueryPool, index, phMetricQuery ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1259,10 +1286,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hMetricQuery ); + auto driver_result = pfnDestroy( hMetricQuery ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryDestroyEpilogue( hMetricQuery ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryDestroyEpilogue( hMetricQuery ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1298,10 +1326,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnReset( hMetricQuery ); + auto driver_result = pfnReset( hMetricQuery ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryResetEpilogue( hMetricQuery ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryResetEpilogue( hMetricQuery ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1338,10 +1367,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendMetricQueryBegin( hCommandList, hMetricQuery ); + auto driver_result = pfnAppendMetricQueryBegin( hCommandList, hMetricQuery ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetCommandListAppendMetricQueryBeginEpilogue( hCommandList, hMetricQuery ); + auto result = context.validationHandlers[i]->zetValidation->zetCommandListAppendMetricQueryBeginEpilogue( hCommandList, hMetricQuery ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1381,10 +1411,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendMetricQueryEnd( hCommandList, hMetricQuery, hSignalEvent, numWaitEvents, phWaitEvents ); + auto driver_result = pfnAppendMetricQueryEnd( hCommandList, hMetricQuery, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetCommandListAppendMetricQueryEndEpilogue( hCommandList, hMetricQuery, hSignalEvent, numWaitEvents, phWaitEvents ); + auto result = context.validationHandlers[i]->zetValidation->zetCommandListAppendMetricQueryEndEpilogue( hCommandList, hMetricQuery, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1420,10 +1451,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAppendMetricMemoryBarrier( hCommandList ); + auto driver_result = pfnAppendMetricMemoryBarrier( hCommandList ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetCommandListAppendMetricMemoryBarrierEpilogue( hCommandList ); + auto result = context.validationHandlers[i]->zetValidation->zetCommandListAppendMetricMemoryBarrierEpilogue( hCommandList ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1468,10 +1500,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetData( hMetricQuery, pRawDataSize, pRawData ); + auto driver_result = pfnGetData( hMetricQuery, pRawDataSize, pRawData ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryGetDataEpilogue( hMetricQuery, pRawDataSize, pRawData ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryGetDataEpilogue( hMetricQuery, pRawDataSize, pRawData ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1508,10 +1541,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetProfileInfo( hKernel, pProfileProperties ); + auto driver_result = pfnGetProfileInfo( hKernel, pProfileProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetKernelGetProfileInfoEpilogue( hKernel, pProfileProperties ); + auto result = context.validationHandlers[i]->zetValidation->zetKernelGetProfileInfoEpilogue( hKernel, pProfileProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1549,10 +1583,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreate( hContext, desc, phTracer ); + auto driver_result = pfnCreate( hContext, desc, phTracer ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetTracerExpCreateEpilogue( hContext, desc, phTracer ); + auto result = context.validationHandlers[i]->zetValidation->zetTracerExpCreateEpilogue( hContext, desc, phTracer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1597,10 +1632,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroy( hTracer ); + auto driver_result = pfnDestroy( hTracer ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetTracerExpDestroyEpilogue( hTracer ); + auto result = context.validationHandlers[i]->zetValidation->zetTracerExpDestroyEpilogue( hTracer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1637,10 +1673,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetPrologues( hTracer, pCoreCbs ); + auto driver_result = pfnSetPrologues( hTracer, pCoreCbs ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetTracerExpSetProloguesEpilogue( hTracer, pCoreCbs ); + auto result = context.validationHandlers[i]->zetValidation->zetTracerExpSetProloguesEpilogue( hTracer, pCoreCbs ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1677,10 +1714,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetEpilogues( hTracer, pCoreCbs ); + auto driver_result = pfnSetEpilogues( hTracer, pCoreCbs ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetTracerExpSetEpiloguesEpilogue( hTracer, pCoreCbs ); + auto result = context.validationHandlers[i]->zetValidation->zetTracerExpSetEpiloguesEpilogue( hTracer, pCoreCbs ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1717,10 +1755,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnSetEnabled( hTracer, enable ); + auto driver_result = pfnSetEnabled( hTracer, enable ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetTracerExpSetEnabledEpilogue( hTracer, enable ); + auto result = context.validationHandlers[i]->zetValidation->zetTracerExpSetEnabledEpilogue( hTracer, enable ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1764,10 +1803,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetConcurrentMetricGroupsExp( hDevice, metricGroupCount, phMetricGroups, pMetricGroupsCountPerConcurrentGroup, pConcurrentGroupCount ); + auto driver_result = pfnGetConcurrentMetricGroupsExp( hDevice, metricGroupCount, phMetricGroups, pMetricGroupsCountPerConcurrentGroup, pConcurrentGroupCount ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDeviceGetConcurrentMetricGroupsExpEpilogue( hDevice, metricGroupCount, phMetricGroups, pMetricGroupsCountPerConcurrentGroup, pConcurrentGroupCount ); + auto result = context.validationHandlers[i]->zetValidation->zetDeviceGetConcurrentMetricGroupsExpEpilogue( hDevice, metricGroupCount, phMetricGroups, pMetricGroupsCountPerConcurrentGroup, pConcurrentGroupCount ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1816,10 +1856,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreateExp( hContext, hDevice, metricGroupCount, phMetricGroups, desc, hNotificationEvent, phMetricTracer ); + auto driver_result = pfnCreateExp( hContext, hDevice, metricGroupCount, phMetricGroups, desc, hNotificationEvent, phMetricTracer ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerCreateExpEpilogue( hContext, hDevice, metricGroupCount, phMetricGroups, desc, hNotificationEvent, phMetricTracer ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerCreateExpEpilogue( hContext, hDevice, metricGroupCount, phMetricGroups, desc, hNotificationEvent, phMetricTracer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1864,10 +1905,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroyExp( hMetricTracer ); + auto driver_result = pfnDestroyExp( hMetricTracer ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerDestroyExpEpilogue( hMetricTracer ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerDestroyExpEpilogue( hMetricTracer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1908,10 +1950,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnEnableExp( hMetricTracer, synchronous ); + auto driver_result = pfnEnableExp( hMetricTracer, synchronous ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerEnableExpEpilogue( hMetricTracer, synchronous ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerEnableExpEpilogue( hMetricTracer, synchronous ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -1953,10 +1996,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDisableExp( hMetricTracer, synchronous ); + auto driver_result = pfnDisableExp( hMetricTracer, synchronous ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerDisableExpEpilogue( hMetricTracer, synchronous ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerDisableExpEpilogue( hMetricTracer, synchronous ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2001,10 +2045,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnReadDataExp( hMetricTracer, pRawDataSize, pRawData ); + auto driver_result = pfnReadDataExp( hMetricTracer, pRawDataSize, pRawData ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerReadDataExpEpilogue( hMetricTracer, pRawDataSize, pRawData ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerReadDataExpEpilogue( hMetricTracer, pRawDataSize, pRawData ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2041,10 +2086,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreateExp( hMetricTracer, phMetricDecoder ); + auto driver_result = pfnCreateExp( hMetricTracer, phMetricDecoder ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricDecoderCreateExpEpilogue( hMetricTracer, phMetricDecoder ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricDecoderCreateExpEpilogue( hMetricTracer, phMetricDecoder ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2089,10 +2135,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroyExp( phMetricDecoder ); + auto driver_result = pfnDestroyExp( phMetricDecoder ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricDecoderDestroyExpEpilogue( phMetricDecoder ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricDecoderDestroyExpEpilogue( phMetricDecoder ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2139,10 +2186,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetDecodableMetricsExp( hMetricDecoder, pCount, phMetrics ); + auto driver_result = pfnGetDecodableMetricsExp( hMetricDecoder, pCount, phMetrics ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricDecoderGetDecodableMetricsExpEpilogue( hMetricDecoder, pCount, phMetrics ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricDecoderGetDecodableMetricsExpEpilogue( hMetricDecoder, pCount, phMetrics ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2227,10 +2275,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDecodeExp( phMetricDecoder, pRawDataSize, pRawData, metricsCount, phMetrics, pSetCount, pMetricEntriesCountPerSet, pMetricEntriesCount, pMetricEntries ); + auto driver_result = pfnDecodeExp( phMetricDecoder, pRawDataSize, pRawData, metricsCount, phMetrics, pSetCount, pMetricEntriesCountPerSet, pMetricEntriesCount, pMetricEntries ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerDecodeExpEpilogue( phMetricDecoder, pRawDataSize, pRawData, metricsCount, phMetrics, pSetCount, pMetricEntriesCountPerSet, pMetricEntriesCount, pMetricEntries ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerDecodeExpEpilogue( phMetricDecoder, pRawDataSize, pRawData, metricsCount, phMetrics, pSetCount, pMetricEntriesCountPerSet, pMetricEntriesCount, pMetricEntries ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2288,10 +2337,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCalculateMultipleMetricValuesExp( hMetricGroup, type, rawDataSize, pRawData, pSetCount, pTotalMetricValueCount, pMetricCounts, pMetricValues ); + auto driver_result = pfnCalculateMultipleMetricValuesExp( hMetricGroup, type, rawDataSize, pRawData, pSetCount, pTotalMetricValueCount, pMetricCounts, pMetricValues ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCalculateMultipleMetricValuesExpEpilogue( hMetricGroup, type, rawDataSize, pRawData, pSetCount, pTotalMetricValueCount, pMetricCounts, pMetricValues ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCalculateMultipleMetricValuesExpEpilogue( hMetricGroup, type, rawDataSize, pRawData, pSetCount, pTotalMetricValueCount, pMetricCounts, pMetricValues ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2330,10 +2380,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetGlobalTimestampsExp( hMetricGroup, synchronizedWithHost, globalTimestamp, metricTimestamp ); + auto driver_result = pfnGetGlobalTimestampsExp( hMetricGroup, synchronizedWithHost, globalTimestamp, metricTimestamp ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupGetGlobalTimestampsExpEpilogue( hMetricGroup, synchronizedWithHost, globalTimestamp, metricTimestamp ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupGetGlobalTimestampsExpEpilogue( hMetricGroup, synchronizedWithHost, globalTimestamp, metricTimestamp ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2381,10 +2432,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetExportDataExp( hMetricGroup, pRawData, rawDataSize, pExportDataSize, pExportData ); + auto driver_result = pfnGetExportDataExp( hMetricGroup, pRawData, rawDataSize, pExportDataSize, pExportData ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupGetExportDataExpEpilogue( hMetricGroup, pRawData, rawDataSize, pExportDataSize, pExportData ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupGetExportDataExpEpilogue( hMetricGroup, pRawData, rawDataSize, pExportDataSize, pExportData ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2447,10 +2499,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCalculateMetricExportDataExp( hDriver, type, exportDataSize, pExportData, pCalculateDescriptor, pSetCount, pTotalMetricValueCount, pMetricCounts, pMetricValues ); + auto driver_result = pfnCalculateMetricExportDataExp( hDriver, type, exportDataSize, pExportData, pCalculateDescriptor, pSetCount, pTotalMetricValueCount, pMetricCounts, pMetricValues ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCalculateMetricExportDataExpEpilogue( hDriver, type, exportDataSize, pExportData, pCalculateDescriptor, pSetCount, pTotalMetricValueCount, pMetricCounts, pMetricValues ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCalculateMetricExportDataExpEpilogue( hDriver, type, exportDataSize, pExportData, pCalculateDescriptor, pSetCount, pTotalMetricValueCount, pMetricCounts, pMetricValues ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2495,10 +2548,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetExp( hDevice, pCount, phMetricProgrammables ); + auto driver_result = pfnGetExp( hDevice, pCount, phMetricProgrammables ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricProgrammableGetExpEpilogue( hDevice, pCount, phMetricProgrammables ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricProgrammableGetExpEpilogue( hDevice, pCount, phMetricProgrammables ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2545,10 +2599,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetPropertiesExp( hMetricProgrammable, pProperties ); + auto driver_result = pfnGetPropertiesExp( hMetricProgrammable, pProperties ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricProgrammableGetPropertiesExpEpilogue( hMetricProgrammable, pProperties ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricProgrammableGetPropertiesExpEpilogue( hMetricProgrammable, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2596,10 +2651,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetParamInfoExp( hMetricProgrammable, pParameterCount, pParameterInfo ); + auto driver_result = pfnGetParamInfoExp( hMetricProgrammable, pParameterCount, pParameterInfo ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricProgrammableGetParamInfoExpEpilogue( hMetricProgrammable, pParameterCount, pParameterInfo ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricProgrammableGetParamInfoExpEpilogue( hMetricProgrammable, pParameterCount, pParameterInfo ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2648,10 +2704,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnGetParamValueInfoExp( hMetricProgrammable, parameterOrdinal, pValueInfoCount, pValueInfo ); + auto driver_result = pfnGetParamValueInfoExp( hMetricProgrammable, parameterOrdinal, pValueInfoCount, pValueInfo ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricProgrammableGetParamValueInfoExpEpilogue( hMetricProgrammable, parameterOrdinal, pValueInfoCount, pValueInfo ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricProgrammableGetParamValueInfoExpEpilogue( hMetricProgrammable, parameterOrdinal, pValueInfoCount, pValueInfo ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2707,10 +2764,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreateFromProgrammableExp2( hMetricProgrammable, parameterCount, pParameterValues, pName, pDescription, pMetricHandleCount, phMetricHandles ); + auto driver_result = pfnCreateFromProgrammableExp2( hMetricProgrammable, parameterCount, pParameterValues, pName, pDescription, pMetricHandleCount, phMetricHandles ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricCreateFromProgrammableExp2Epilogue( hMetricProgrammable, parameterCount, pParameterValues, pName, pDescription, pMetricHandleCount, phMetricHandles ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricCreateFromProgrammableExp2Epilogue( hMetricProgrammable, parameterCount, pParameterValues, pName, pDescription, pMetricHandleCount, phMetricHandles ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2772,10 +2830,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreateFromProgrammableExp( hMetricProgrammable, pParameterValues, parameterCount, pName, pDescription, pMetricHandleCount, phMetricHandles ); + auto driver_result = pfnCreateFromProgrammableExp( hMetricProgrammable, pParameterValues, parameterCount, pName, pDescription, pMetricHandleCount, phMetricHandles ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricCreateFromProgrammableExpEpilogue( hMetricProgrammable, pParameterValues, parameterCount, pName, pDescription, pMetricHandleCount, phMetricHandles ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricCreateFromProgrammableExpEpilogue( hMetricProgrammable, pParameterValues, parameterCount, pName, pDescription, pMetricHandleCount, phMetricHandles ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2840,10 +2899,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreateMetricGroupsFromMetricsExp( hDevice, metricCount, phMetrics, pMetricGroupNamePrefix, pDescription, pMetricGroupCount, phMetricGroup ); + auto driver_result = pfnCreateMetricGroupsFromMetricsExp( hDevice, metricCount, phMetrics, pMetricGroupNamePrefix, pDescription, pMetricGroupCount, phMetricGroup ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetDeviceCreateMetricGroupsFromMetricsExpEpilogue( hDevice, metricCount, phMetrics, pMetricGroupNamePrefix, pDescription, pMetricGroupCount, phMetricGroup ); + auto result = context.validationHandlers[i]->zetValidation->zetDeviceCreateMetricGroupsFromMetricsExpEpilogue( hDevice, metricCount, phMetrics, pMetricGroupNamePrefix, pDescription, pMetricGroupCount, phMetricGroup ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2896,10 +2956,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCreateExp( hDevice, pName, pDescription, samplingType, phMetricGroup ); + auto driver_result = pfnCreateExp( hDevice, pName, pDescription, samplingType, phMetricGroup ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCreateExpEpilogue( hDevice, pName, pDescription, samplingType, phMetricGroup ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCreateExpEpilogue( hDevice, pName, pDescription, samplingType, phMetricGroup ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2952,10 +3013,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnAddMetricExp( hMetricGroup, hMetric, pErrorStringSize, pErrorString ); + auto driver_result = pfnAddMetricExp( hMetricGroup, hMetric, pErrorStringSize, pErrorString ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupAddMetricExpEpilogue( hMetricGroup, hMetric, pErrorStringSize, pErrorString ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupAddMetricExpEpilogue( hMetricGroup, hMetric, pErrorStringSize, pErrorString ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -2992,10 +3054,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnRemoveMetricExp( hMetricGroup, hMetric ); + auto driver_result = pfnRemoveMetricExp( hMetricGroup, hMetric ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupRemoveMetricExpEpilogue( hMetricGroup, hMetric ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupRemoveMetricExpEpilogue( hMetricGroup, hMetric ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3031,10 +3094,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnCloseExp( hMetricGroup ); + auto driver_result = pfnCloseExp( hMetricGroup ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCloseExpEpilogue( hMetricGroup ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCloseExpEpilogue( hMetricGroup ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3070,10 +3134,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroyExp( hMetricGroup ); + auto driver_result = pfnDestroyExp( hMetricGroup ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupDestroyExpEpilogue( hMetricGroup ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupDestroyExpEpilogue( hMetricGroup ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } @@ -3109,10 +3174,11 @@ namespace validation_layer if(result!=ZE_RESULT_SUCCESS) return result; } - auto result = pfnDestroyExp( hMetric ); + auto driver_result = pfnDestroyExp( hMetric ); + auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { - auto result = context.validationHandlers[i]->zetValidation->zetMetricDestroyExpEpilogue( hMetric ); + auto result = context.validationHandlers[i]->zetValidation->zetMetricDestroyExpEpilogue( hMetric ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } From c429e7c07109a7522ad17c3a26a54a208edfea57 Mon Sep 17 00:00:00 2001 From: "Neil R. Spruit" Date: Thu, 14 Nov 2024 14:52:26 -0800 Subject: [PATCH 2/3] Always return the Driver Result in validation layer Signed-off-by: Neil R. Spruit --- scripts/templates/validation/valddi.cpp.mako | 5 +- source/layers/validation/ze_valddi.cpp | 646 +++++++------------ source/layers/validation/zes_valddi.cpp | 464 +++++-------- source/layers/validation/zet_valddi.cpp | 236 +++---- 4 files changed, 474 insertions(+), 877 deletions(-) diff --git a/scripts/templates/validation/valddi.cpp.mako b/scripts/templates/validation/valddi.cpp.mako index c5eebd7b..1d8d89c1 100644 --- a/scripts/templates/validation/valddi.cpp.mako +++ b/scripts/templates/validation/valddi.cpp.mako @@ -69,7 +69,6 @@ ${line} \ } auto driver_result = ${th.make_pfn_name(n, tags, obj)}( ${", ".join(th.make_param_lines(n, tags, obj, format=["name"]))} ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->${n}Validation->${th.make_func_name(n, tags, obj)}Epilogue( \ @@ -82,7 +81,7 @@ ${line} \ %if generate_post_call: - if( result == ${X}_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ${X}_RESULT_SUCCESS && context.enableHandleLifetime ){ ## Add 'Created' handles/objects to dependent maps <% lines = th.make_param_lines(n, tags, obj, format=['name','delim']) %> @@ -112,7 +111,7 @@ ${line} \ %endfor } %endif - return result; + return driver_result; } %if 'condition' in obj: #endif // ${th.subt(n, tags, obj['condition'])} diff --git a/source/layers/validation/ze_valddi.cpp b/source/layers/validation/ze_valddi.cpp index bf6d7229..30addc9b 100644 --- a/source/layers/validation/ze_valddi.cpp +++ b/source/layers/validation/ze_valddi.cpp @@ -44,14 +44,13 @@ namespace validation_layer } auto driver_result = pfnInit( flags ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeInitEpilogue( flags ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -91,7 +90,6 @@ namespace validation_layer } auto driver_result = pfnGet( pCount, phDrivers ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDriverGetEpilogue( pCount, phDrivers ,driver_result); @@ -99,7 +97,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phDrivers) && (i < *pCount); ++i){ if (phDrivers[i]){ @@ -108,7 +106,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -150,14 +148,13 @@ namespace validation_layer } auto driver_result = pfnInitDrivers( pCount, phDrivers, desc ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeInitDriversEpilogue( pCount, phDrivers, desc ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -191,14 +188,13 @@ namespace validation_layer } auto driver_result = pfnGetApiVersion( hDriver, version ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDriverGetApiVersionEpilogue( hDriver, version ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -232,14 +228,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hDriver, pDriverProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDriverGetPropertiesEpilogue( hDriver, pDriverProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -273,14 +268,13 @@ namespace validation_layer } auto driver_result = pfnGetIpcProperties( hDriver, pIpcProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDriverGetIpcPropertiesEpilogue( hDriver, pIpcProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -323,14 +317,13 @@ namespace validation_layer } auto driver_result = pfnGetExtensionProperties( hDriver, pCount, pExtensionProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDriverGetExtensionPropertiesEpilogue( hDriver, pCount, pExtensionProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -365,14 +358,13 @@ namespace validation_layer } auto driver_result = pfnGetExtensionFunctionAddress( hDriver, name, ppFunctionAddress ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDriverGetExtensionFunctionAddressEpilogue( hDriver, name, ppFunctionAddress ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -407,14 +399,13 @@ namespace validation_layer } auto driver_result = pfnGetLastErrorDescription( hDriver, ppString ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDriverGetLastErrorDescriptionEpilogue( hDriver, ppString ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -455,7 +446,6 @@ namespace validation_layer } auto driver_result = pfnGet( hDriver, pCount, phDevices ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetEpilogue( hDriver, pCount, phDevices ,driver_result); @@ -463,7 +453,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phDevices) && (i < *pCount); ++i){ if (phDevices[i]){ @@ -472,7 +462,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -506,14 +496,13 @@ namespace validation_layer } auto driver_result = pfnGetRootDevice( hDevice, phRootDevice ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetRootDeviceEpilogue( hDevice, phRootDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -554,7 +543,6 @@ namespace validation_layer } auto driver_result = pfnGetSubDevices( hDevice, pCount, phSubdevices ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetSubDevicesEpilogue( hDevice, pCount, phSubdevices ,driver_result); @@ -562,7 +550,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phSubdevices) && (i < *pCount); ++i){ if (phSubdevices[i]){ @@ -571,7 +559,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -605,14 +593,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hDevice, pDeviceProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetPropertiesEpilogue( hDevice, pDeviceProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -646,14 +633,13 @@ namespace validation_layer } auto driver_result = pfnGetComputeProperties( hDevice, pComputeProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetComputePropertiesEpilogue( hDevice, pComputeProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -687,14 +673,13 @@ namespace validation_layer } auto driver_result = pfnGetModuleProperties( hDevice, pModuleProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetModulePropertiesEpilogue( hDevice, pModuleProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -738,14 +723,13 @@ namespace validation_layer } auto driver_result = pfnGetCommandQueueGroupProperties( hDevice, pCount, pCommandQueueGroupProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetCommandQueueGroupPropertiesEpilogue( hDevice, pCount, pCommandQueueGroupProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -788,14 +772,13 @@ namespace validation_layer } auto driver_result = pfnGetMemoryProperties( hDevice, pCount, pMemProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetMemoryPropertiesEpilogue( hDevice, pCount, pMemProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -829,14 +812,13 @@ namespace validation_layer } auto driver_result = pfnGetMemoryAccessProperties( hDevice, pMemAccessProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetMemoryAccessPropertiesEpilogue( hDevice, pMemAccessProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -878,14 +860,13 @@ namespace validation_layer } auto driver_result = pfnGetCacheProperties( hDevice, pCount, pCacheProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetCachePropertiesEpilogue( hDevice, pCount, pCacheProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -919,14 +900,13 @@ namespace validation_layer } auto driver_result = pfnGetImageProperties( hDevice, pImageProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetImagePropertiesEpilogue( hDevice, pImageProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -960,14 +940,13 @@ namespace validation_layer } auto driver_result = pfnGetExternalMemoryProperties( hDevice, pExternalMemoryProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetExternalMemoryPropertiesEpilogue( hDevice, pExternalMemoryProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1002,14 +981,13 @@ namespace validation_layer } auto driver_result = pfnGetP2PProperties( hDevice, hPeerDevice, pP2PProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetP2PPropertiesEpilogue( hDevice, hPeerDevice, pP2PProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1044,14 +1022,13 @@ namespace validation_layer } auto driver_result = pfnCanAccessPeer( hDevice, hPeerDevice, value ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceCanAccessPeerEpilogue( hDevice, hPeerDevice, value ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1084,14 +1061,13 @@ namespace validation_layer } auto driver_result = pfnGetStatus( hDevice ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetStatusEpilogue( hDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1128,14 +1104,13 @@ namespace validation_layer } auto driver_result = pfnGetGlobalTimestamps( hDevice, hostTimestamp, deviceTimestamp ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetGlobalTimestampsEpilogue( hDevice, hostTimestamp, deviceTimestamp ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1170,7 +1145,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hDriver, desc, phContext ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeContextCreateEpilogue( hDriver, desc, phContext ,driver_result); @@ -1178,7 +1152,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phContext){ context.handleLifetime->addHandle( *phContext ); @@ -1186,7 +1160,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1231,7 +1205,6 @@ namespace validation_layer } auto driver_result = pfnCreateEx( hDriver, desc, numDevices, phDevices, phContext ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeContextCreateExEpilogue( hDriver, desc, numDevices, phDevices, phContext ,driver_result); @@ -1239,7 +1212,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phContext){ context.handleLifetime->addHandle( *phContext ); @@ -1247,7 +1220,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1280,14 +1253,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hContext ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeContextDestroyEpilogue( hContext ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1320,14 +1292,13 @@ namespace validation_layer } auto driver_result = pfnGetStatus( hContext ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeContextGetStatusEpilogue( hContext ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1363,7 +1334,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hContext, hDevice, desc, phCommandQueue ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueCreateEpilogue( hContext, hDevice, desc, phCommandQueue ,driver_result); @@ -1371,7 +1341,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phCommandQueue){ context.handleLifetime->addHandle( *phCommandQueue ); @@ -1379,7 +1349,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1412,14 +1382,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hCommandQueue ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueDestroyEpilogue( hCommandQueue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1456,14 +1425,13 @@ namespace validation_layer } auto driver_result = pfnExecuteCommandLists( hCommandQueue, numCommandLists, phCommandLists, hFence ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueExecuteCommandListsEpilogue( hCommandQueue, numCommandLists, phCommandLists, hFence ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1503,14 +1471,13 @@ namespace validation_layer } auto driver_result = pfnSynchronize( hCommandQueue, timeout ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueSynchronizeEpilogue( hCommandQueue, timeout ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1544,14 +1511,13 @@ namespace validation_layer } auto driver_result = pfnGetOrdinal( hCommandQueue, pOrdinal ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueGetOrdinalEpilogue( hCommandQueue, pOrdinal ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1585,14 +1551,13 @@ namespace validation_layer } auto driver_result = pfnGetIndex( hCommandQueue, pIndex ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandQueueGetIndexEpilogue( hCommandQueue, pIndex ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1628,7 +1593,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hContext, hDevice, desc, phCommandList ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListCreateEpilogue( hContext, hDevice, desc, phCommandList ,driver_result); @@ -1636,7 +1600,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phCommandList){ context.handleLifetime->addHandle( *phCommandList ); @@ -1644,7 +1608,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1680,7 +1644,6 @@ namespace validation_layer } auto driver_result = pfnCreateImmediate( hContext, hDevice, altdesc, phCommandList ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListCreateImmediateEpilogue( hContext, hDevice, altdesc, phCommandList ,driver_result); @@ -1688,13 +1651,13 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phCommandList){ context.handleLifetime->addHandle( *phCommandList , false); } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1727,14 +1690,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hCommandList ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListDestroyEpilogue( hCommandList ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1767,14 +1729,13 @@ namespace validation_layer } auto driver_result = pfnClose( hCommandList ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListCloseEpilogue( hCommandList ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1807,14 +1768,13 @@ namespace validation_layer } auto driver_result = pfnReset( hCommandList ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListResetEpilogue( hCommandList ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1854,14 +1814,13 @@ namespace validation_layer } auto driver_result = pfnAppendWriteGlobalTimestamp( hCommandList, dstptr, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendWriteGlobalTimestampEpilogue( hCommandList, dstptr, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1901,14 +1860,13 @@ namespace validation_layer } auto driver_result = pfnHostSynchronize( hCommandList, timeout ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListHostSynchronizeEpilogue( hCommandList, timeout ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1942,14 +1900,13 @@ namespace validation_layer } auto driver_result = pfnGetDeviceHandle( hCommandList, phDevice ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetDeviceHandleEpilogue( hCommandList, phDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1983,14 +1940,13 @@ namespace validation_layer } auto driver_result = pfnGetContextHandle( hCommandList, phContext ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetContextHandleEpilogue( hCommandList, phContext ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2024,14 +1980,13 @@ namespace validation_layer } auto driver_result = pfnGetOrdinal( hCommandList, pOrdinal ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetOrdinalEpilogue( hCommandList, pOrdinal ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2066,14 +2021,13 @@ namespace validation_layer } auto driver_result = pfnImmediateGetIndex( hCommandListImmediate, pIndex ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListImmediateGetIndexEpilogue( hCommandListImmediate, pIndex ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2108,14 +2062,13 @@ namespace validation_layer } auto driver_result = pfnIsImmediate( hCommandList, pIsImmediate ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListIsImmediateEpilogue( hCommandList, pIsImmediate ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2153,14 +2106,13 @@ namespace validation_layer } auto driver_result = pfnAppendBarrier( hCommandList, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendBarrierEpilogue( hCommandList, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2201,14 +2153,13 @@ namespace validation_layer } auto driver_result = pfnAppendMemoryRangesBarrier( hCommandList, numRanges, pRangeSizes, pRanges, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryRangesBarrierEpilogue( hCommandList, numRanges, pRangeSizes, pRanges, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2242,14 +2193,13 @@ namespace validation_layer } auto driver_result = pfnSystemBarrier( hContext, hDevice ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeContextSystemBarrierEpilogue( hContext, hDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2290,14 +2240,13 @@ namespace validation_layer } auto driver_result = pfnAppendMemoryCopy( hCommandList, dstptr, srcptr, size, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryCopyEpilogue( hCommandList, dstptr, srcptr, size, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2339,14 +2288,13 @@ namespace validation_layer } auto driver_result = pfnAppendMemoryFill( hCommandList, ptr, pattern, pattern_size, size, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryFillEpilogue( hCommandList, ptr, pattern, pattern_size, size, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2396,14 +2344,13 @@ namespace validation_layer } auto driver_result = pfnAppendMemoryCopyRegion( hCommandList, dstptr, dstRegion, dstPitch, dstSlicePitch, srcptr, srcRegion, srcPitch, srcSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryCopyRegionEpilogue( hCommandList, dstptr, dstRegion, dstPitch, dstSlicePitch, srcptr, srcRegion, srcPitch, srcSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2445,14 +2392,13 @@ namespace validation_layer } auto driver_result = pfnAppendMemoryCopyFromContext( hCommandList, dstptr, hContextSrc, srcptr, size, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryCopyFromContextEpilogue( hCommandList, dstptr, hContextSrc, srcptr, size, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2492,14 +2438,13 @@ namespace validation_layer } auto driver_result = pfnAppendImageCopy( hCommandList, hDstImage, hSrcImage, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyEpilogue( hCommandList, hDstImage, hSrcImage, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2541,14 +2486,13 @@ namespace validation_layer } auto driver_result = pfnAppendImageCopyRegion( hCommandList, hDstImage, hSrcImage, pDstRegion, pSrcRegion, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyRegionEpilogue( hCommandList, hDstImage, hSrcImage, pDstRegion, pSrcRegion, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2589,14 +2533,13 @@ namespace validation_layer } auto driver_result = pfnAppendImageCopyToMemory( hCommandList, dstptr, hSrcImage, pSrcRegion, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyToMemoryEpilogue( hCommandList, dstptr, hSrcImage, pSrcRegion, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2637,14 +2580,13 @@ namespace validation_layer } auto driver_result = pfnAppendImageCopyFromMemory( hCommandList, hDstImage, srcptr, pDstRegion, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyFromMemoryEpilogue( hCommandList, hDstImage, srcptr, pDstRegion, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2679,14 +2621,13 @@ namespace validation_layer } auto driver_result = pfnAppendMemoryPrefetch( hCommandList, ptr, size ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemoryPrefetchEpilogue( hCommandList, ptr, size ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2723,14 +2664,13 @@ namespace validation_layer } auto driver_result = pfnAppendMemAdvise( hCommandList, hDevice, ptr, size, advice ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendMemAdviseEpilogue( hCommandList, hDevice, ptr, size, advice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2771,7 +2711,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hContext, desc, numDevices, phDevices, phEventPool ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventPoolCreateEpilogue( hContext, desc, numDevices, phDevices, phEventPool ,driver_result); @@ -2779,7 +2718,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phEventPool){ context.handleLifetime->addHandle( *phEventPool ); @@ -2787,7 +2726,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2820,14 +2759,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hEventPool ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventPoolDestroyEpilogue( hEventPool ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2862,7 +2800,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hEventPool, desc, phEvent ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventCreateEpilogue( hEventPool, desc, phEvent ,driver_result); @@ -2870,7 +2807,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phEvent){ context.handleLifetime->addHandle( *phEvent ); @@ -2878,7 +2815,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2911,14 +2848,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hEvent ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventDestroyEpilogue( hEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2952,7 +2888,6 @@ namespace validation_layer } auto driver_result = pfnGetIpcHandle( hEventPool, phIpc ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventPoolGetIpcHandleEpilogue( hEventPool, phIpc ,driver_result); @@ -2960,10 +2895,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2998,14 +2933,13 @@ namespace validation_layer } auto driver_result = pfnPutIpcHandle( hContext, hIpc ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventPoolPutIpcHandleEpilogue( hContext, hIpc ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3041,14 +2975,13 @@ namespace validation_layer } auto driver_result = pfnOpenIpcHandle( hContext, hIpc, phEventPool ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventPoolOpenIpcHandleEpilogue( hContext, hIpc, phEventPool ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3081,14 +3014,13 @@ namespace validation_layer } auto driver_result = pfnCloseIpcHandle( hEventPool ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventPoolCloseIpcHandleEpilogue( hEventPool ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3122,14 +3054,13 @@ namespace validation_layer } auto driver_result = pfnAppendSignalEvent( hCommandList, hEvent ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendSignalEventEpilogue( hCommandList, hEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3165,14 +3096,13 @@ namespace validation_layer } auto driver_result = pfnAppendWaitOnEvents( hCommandList, numEvents, phEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendWaitOnEventsEpilogue( hCommandList, numEvents, phEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3205,14 +3135,13 @@ namespace validation_layer } auto driver_result = pfnHostSignal( hEvent ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventHostSignalEpilogue( hEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3252,14 +3181,13 @@ namespace validation_layer } auto driver_result = pfnHostSynchronize( hEvent, timeout ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventHostSynchronizeEpilogue( hEvent, timeout ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3292,14 +3220,13 @@ namespace validation_layer } auto driver_result = pfnQueryStatus( hEvent ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventQueryStatusEpilogue( hEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3333,14 +3260,13 @@ namespace validation_layer } auto driver_result = pfnAppendEventReset( hCommandList, hEvent ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendEventResetEpilogue( hCommandList, hEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3373,14 +3299,13 @@ namespace validation_layer } auto driver_result = pfnHostReset( hEvent ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventHostResetEpilogue( hEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3414,14 +3339,13 @@ namespace validation_layer } auto driver_result = pfnQueryKernelTimestamp( hEvent, dstptr ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventQueryKernelTimestampEpilogue( hEvent, dstptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3466,14 +3390,13 @@ namespace validation_layer } auto driver_result = pfnAppendQueryKernelTimestamps( hCommandList, numEvents, phEvents, dstptr, pOffsets, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendQueryKernelTimestampsEpilogue( hCommandList, numEvents, phEvents, dstptr, pOffsets, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3507,14 +3430,13 @@ namespace validation_layer } auto driver_result = pfnGetEventPool( hEvent, phEventPool ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventGetEventPoolEpilogue( hEvent, phEventPool ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3550,14 +3472,13 @@ namespace validation_layer } auto driver_result = pfnGetSignalScope( hEvent, pSignalScope ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventGetSignalScopeEpilogue( hEvent, pSignalScope ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3593,14 +3514,13 @@ namespace validation_layer } auto driver_result = pfnGetWaitScope( hEvent, pWaitScope ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventGetWaitScopeEpilogue( hEvent, pWaitScope ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3634,14 +3554,13 @@ namespace validation_layer } auto driver_result = pfnGetContextHandle( hEventPool, phContext ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventPoolGetContextHandleEpilogue( hEventPool, phContext ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3676,14 +3595,13 @@ namespace validation_layer } auto driver_result = pfnGetFlags( hEventPool, pFlags ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventPoolGetFlagsEpilogue( hEventPool, pFlags ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3718,7 +3636,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hCommandQueue, desc, phFence ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeFenceCreateEpilogue( hCommandQueue, desc, phFence ,driver_result); @@ -3726,7 +3643,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phFence){ context.handleLifetime->addHandle( *phFence ); @@ -3734,7 +3651,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3767,14 +3684,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hFence ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeFenceDestroyEpilogue( hFence ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3814,14 +3730,13 @@ namespace validation_layer } auto driver_result = pfnHostSynchronize( hFence, timeout ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeFenceHostSynchronizeEpilogue( hFence, timeout ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3854,14 +3769,13 @@ namespace validation_layer } auto driver_result = pfnQueryStatus( hFence ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeFenceQueryStatusEpilogue( hFence ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3894,14 +3808,13 @@ namespace validation_layer } auto driver_result = pfnReset( hFence ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeFenceResetEpilogue( hFence ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3936,14 +3849,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hDevice, desc, pImageProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeImageGetPropertiesEpilogue( hDevice, desc, pImageProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3979,7 +3891,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hContext, hDevice, desc, phImage ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeImageCreateEpilogue( hContext, hDevice, desc, phImage ,driver_result); @@ -3987,7 +3898,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phImage){ context.handleLifetime->addHandle( *phImage ); @@ -3995,7 +3906,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4028,14 +3939,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hImage ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeImageDestroyEpilogue( hImage ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4076,14 +3986,13 @@ namespace validation_layer } auto driver_result = pfnAllocShared( hContext, device_desc, host_desc, size, alignment, hDevice, pptr ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemAllocSharedEpilogue( hContext, device_desc, host_desc, size, alignment, hDevice, pptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4123,14 +4032,13 @@ namespace validation_layer } auto driver_result = pfnAllocDevice( hContext, device_desc, size, alignment, hDevice, pptr ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemAllocDeviceEpilogue( hContext, device_desc, size, alignment, hDevice, pptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4169,14 +4077,13 @@ namespace validation_layer } auto driver_result = pfnAllocHost( hContext, host_desc, size, alignment, pptr ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemAllocHostEpilogue( hContext, host_desc, size, alignment, pptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4210,14 +4117,13 @@ namespace validation_layer } auto driver_result = pfnFree( hContext, ptr ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemFreeEpilogue( hContext, ptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4253,14 +4159,13 @@ namespace validation_layer } auto driver_result = pfnGetAllocProperties( hContext, ptr, pMemAllocProperties, phDevice ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemGetAllocPropertiesEpilogue( hContext, ptr, pMemAllocProperties, phDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4296,14 +4201,13 @@ namespace validation_layer } auto driver_result = pfnGetAddressRange( hContext, ptr, pBase, pSize ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemGetAddressRangeEpilogue( hContext, ptr, pBase, pSize ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4338,7 +4242,6 @@ namespace validation_layer } auto driver_result = pfnGetIpcHandle( hContext, ptr, pIpcHandle ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemGetIpcHandleEpilogue( hContext, ptr, pIpcHandle ,driver_result); @@ -4346,10 +4249,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4384,7 +4287,6 @@ namespace validation_layer } auto driver_result = pfnGetIpcHandleFromFileDescriptorExp( hContext, handle, pIpcHandle ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemGetIpcHandleFromFileDescriptorExpEpilogue( hContext, handle, pIpcHandle ,driver_result); @@ -4392,10 +4294,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4430,7 +4332,6 @@ namespace validation_layer } auto driver_result = pfnGetFileDescriptorFromIpcHandleExp( hContext, ipcHandle, pHandle ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemGetFileDescriptorFromIpcHandleExpEpilogue( hContext, ipcHandle, pHandle ,driver_result); @@ -4438,10 +4339,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4475,14 +4376,13 @@ namespace validation_layer } auto driver_result = pfnPutIpcHandle( hContext, handle ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemPutIpcHandleEpilogue( hContext, handle ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4520,14 +4420,13 @@ namespace validation_layer } auto driver_result = pfnOpenIpcHandle( hContext, hDevice, handle, flags, pptr ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemOpenIpcHandleEpilogue( hContext, hDevice, handle, flags, pptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4561,14 +4460,13 @@ namespace validation_layer } auto driver_result = pfnCloseIpcHandle( hContext, ptr ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemCloseIpcHandleEpilogue( hContext, ptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4606,14 +4504,13 @@ namespace validation_layer } auto driver_result = pfnSetAtomicAccessAttributeExp( hContext, hDevice, ptr, size, attr ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemSetAtomicAccessAttributeExpEpilogue( hContext, hDevice, ptr, size, attr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4650,7 +4547,6 @@ namespace validation_layer } auto driver_result = pfnGetAtomicAccessAttributeExp( hContext, hDevice, ptr, size, pAttr ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemGetAtomicAccessAttributeExpEpilogue( hContext, hDevice, ptr, size, pAttr ,driver_result); @@ -4658,10 +4554,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4698,7 +4594,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hContext, hDevice, desc, phModule, phBuildLog ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeModuleCreateEpilogue( hContext, hDevice, desc, phModule, phBuildLog ,driver_result); @@ -4706,7 +4601,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phModule){ context.handleLifetime->addHandle( *phModule ); @@ -4719,7 +4614,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4752,14 +4647,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hModule ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeModuleDestroyEpilogue( hModule ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4795,14 +4689,13 @@ namespace validation_layer } auto driver_result = pfnDynamicLink( numModules, phModules, phLinkLog ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeModuleDynamicLinkEpilogue( numModules, phModules, phLinkLog ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4835,14 +4728,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hModuleBuildLog ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeModuleBuildLogDestroyEpilogue( hModuleBuildLog ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4877,14 +4769,13 @@ namespace validation_layer } auto driver_result = pfnGetString( hModuleBuildLog, pSize, pBuildLog ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeModuleBuildLogGetStringEpilogue( hModuleBuildLog, pSize, pBuildLog ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4919,14 +4810,13 @@ namespace validation_layer } auto driver_result = pfnGetNativeBinary( hModule, pSize, pModuleNativeBinary ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeModuleGetNativeBinaryEpilogue( hModule, pSize, pModuleNativeBinary ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4962,14 +4852,13 @@ namespace validation_layer } auto driver_result = pfnGetGlobalPointer( hModule, pGlobalName, pSize, pptr ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeModuleGetGlobalPointerEpilogue( hModule, pGlobalName, pSize, pptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5010,14 +4899,13 @@ namespace validation_layer } auto driver_result = pfnGetKernelNames( hModule, pCount, pNames ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeModuleGetKernelNamesEpilogue( hModule, pCount, pNames ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5051,14 +4939,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hModule, pModuleProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeModuleGetPropertiesEpilogue( hModule, pModuleProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5093,7 +4980,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hModule, desc, phKernel ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelCreateEpilogue( hModule, desc, phKernel ,driver_result); @@ -5101,7 +4987,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phKernel){ context.handleLifetime->addHandle( *phKernel ); @@ -5109,7 +4995,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5142,14 +5028,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hKernel ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelDestroyEpilogue( hKernel ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5184,14 +5069,13 @@ namespace validation_layer } auto driver_result = pfnGetFunctionPointer( hModule, pFunctionName, pfnFunction ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeModuleGetFunctionPointerEpilogue( hModule, pFunctionName, pfnFunction ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5227,14 +5111,13 @@ namespace validation_layer } auto driver_result = pfnSetGroupSize( hKernel, groupSizeX, groupSizeY, groupSizeZ ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelSetGroupSizeEpilogue( hKernel, groupSizeX, groupSizeY, groupSizeZ ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5273,14 +5156,13 @@ namespace validation_layer } auto driver_result = pfnSuggestGroupSize( hKernel, globalSizeX, globalSizeY, globalSizeZ, groupSizeX, groupSizeY, groupSizeZ ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelSuggestGroupSizeEpilogue( hKernel, globalSizeX, globalSizeY, globalSizeZ, groupSizeX, groupSizeY, groupSizeZ ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5314,14 +5196,13 @@ namespace validation_layer } auto driver_result = pfnSuggestMaxCooperativeGroupCount( hKernel, totalGroupCount ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelSuggestMaxCooperativeGroupCountEpilogue( hKernel, totalGroupCount ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5358,14 +5239,13 @@ namespace validation_layer } auto driver_result = pfnSetArgumentValue( hKernel, argIndex, argSize, pArgValue ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelSetArgumentValueEpilogue( hKernel, argIndex, argSize, pArgValue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5399,14 +5279,13 @@ namespace validation_layer } auto driver_result = pfnSetIndirectAccess( hKernel, flags ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelSetIndirectAccessEpilogue( hKernel, flags ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5440,14 +5319,13 @@ namespace validation_layer } auto driver_result = pfnGetIndirectAccess( hKernel, pFlags ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelGetIndirectAccessEpilogue( hKernel, pFlags ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5489,14 +5367,13 @@ namespace validation_layer } auto driver_result = pfnGetSourceAttributes( hKernel, pSize, pString ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelGetSourceAttributesEpilogue( hKernel, pSize, pString ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5531,14 +5408,13 @@ namespace validation_layer } auto driver_result = pfnSetCacheConfig( hKernel, flags ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelSetCacheConfigEpilogue( hKernel, flags ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5572,14 +5448,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hKernel, pKernelProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelGetPropertiesEpilogue( hKernel, pKernelProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5615,14 +5490,13 @@ namespace validation_layer } auto driver_result = pfnGetName( hKernel, pSize, pName ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelGetNameEpilogue( hKernel, pSize, pName ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5662,14 +5536,13 @@ namespace validation_layer } auto driver_result = pfnAppendLaunchKernel( hCommandList, hKernel, pLaunchFuncArgs, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendLaunchKernelEpilogue( hCommandList, hKernel, pLaunchFuncArgs, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5709,14 +5582,13 @@ namespace validation_layer } auto driver_result = pfnAppendLaunchCooperativeKernel( hCommandList, hKernel, pLaunchFuncArgs, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendLaunchCooperativeKernelEpilogue( hCommandList, hKernel, pLaunchFuncArgs, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5757,14 +5629,13 @@ namespace validation_layer } auto driver_result = pfnAppendLaunchKernelIndirect( hCommandList, hKernel, pLaunchArgumentsBuffer, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendLaunchKernelIndirectEpilogue( hCommandList, hKernel, pLaunchArgumentsBuffer, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5809,14 +5680,13 @@ namespace validation_layer } auto driver_result = pfnAppendLaunchMultipleKernelsIndirect( hCommandList, numKernels, phKernels, pCountBuffer, pLaunchArgumentsBuffer, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendLaunchMultipleKernelsIndirectEpilogue( hCommandList, numKernels, phKernels, pCountBuffer, pLaunchArgumentsBuffer, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5852,14 +5722,13 @@ namespace validation_layer } auto driver_result = pfnMakeMemoryResident( hContext, hDevice, ptr, size ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeContextMakeMemoryResidentEpilogue( hContext, hDevice, ptr, size ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5895,14 +5764,13 @@ namespace validation_layer } auto driver_result = pfnEvictMemory( hContext, hDevice, ptr, size ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeContextEvictMemoryEpilogue( hContext, hDevice, ptr, size ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5937,14 +5805,13 @@ namespace validation_layer } auto driver_result = pfnMakeImageResident( hContext, hDevice, hImage ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeContextMakeImageResidentEpilogue( hContext, hDevice, hImage ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5979,14 +5846,13 @@ namespace validation_layer } auto driver_result = pfnEvictImage( hContext, hDevice, hImage ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeContextEvictImageEpilogue( hContext, hDevice, hImage ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6022,7 +5888,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hContext, hDevice, desc, phSampler ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeSamplerCreateEpilogue( hContext, hDevice, desc, phSampler ,driver_result); @@ -6030,7 +5895,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phSampler){ context.handleLifetime->addHandle( *phSampler ); @@ -6038,7 +5903,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6071,14 +5936,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hSampler ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeSamplerDestroyEpilogue( hSampler ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6115,14 +5979,13 @@ namespace validation_layer } auto driver_result = pfnReserve( hContext, pStart, size, pptr ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemReserveEpilogue( hContext, pStart, size, pptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6157,14 +6020,13 @@ namespace validation_layer } auto driver_result = pfnFree( hContext, ptr, size ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemFreeEpilogue( hContext, ptr, size ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6201,14 +6063,13 @@ namespace validation_layer } auto driver_result = pfnQueryPageSize( hContext, hDevice, size, pagesize ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemQueryPageSizeEpilogue( hContext, hDevice, size, pagesize ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6245,7 +6106,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hContext, hDevice, desc, phPhysicalMemory ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zePhysicalMemCreateEpilogue( hContext, hDevice, desc, phPhysicalMemory ,driver_result); @@ -6253,7 +6113,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phPhysicalMemory){ context.handleLifetime->addHandle( *phPhysicalMemory ); @@ -6261,7 +6121,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6295,14 +6155,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hContext, hPhysicalMemory ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zePhysicalMemDestroyEpilogue( hContext, hPhysicalMemory ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6343,14 +6202,13 @@ namespace validation_layer } auto driver_result = pfnMap( hContext, ptr, size, hPhysicalMemory, offset, access ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemMapEpilogue( hContext, ptr, size, hPhysicalMemory, offset, access ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6385,14 +6243,13 @@ namespace validation_layer } auto driver_result = pfnUnmap( hContext, ptr, size ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemUnmapEpilogue( hContext, ptr, size ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6429,14 +6286,13 @@ namespace validation_layer } auto driver_result = pfnSetAccessAttribute( hContext, ptr, size, access ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemSetAccessAttributeEpilogue( hContext, ptr, size, access ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6474,14 +6330,13 @@ namespace validation_layer } auto driver_result = pfnGetAccessAttribute( hContext, ptr, size, access, outSize ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeVirtualMemGetAccessAttributeEpilogue( hContext, ptr, size, access, outSize ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6517,14 +6372,13 @@ namespace validation_layer } auto driver_result = pfnSetGlobalOffsetExp( hKernel, offsetX, offsetY, offsetZ ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelSetGlobalOffsetExpEpilogue( hKernel, offsetX, offsetY, offsetZ ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6559,7 +6413,6 @@ namespace validation_layer } auto driver_result = pfnGetBinaryExp( hKernel, pSize, pKernelBinary ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelGetBinaryExpEpilogue( hKernel, pSize, pKernelBinary ,driver_result); @@ -6567,10 +6420,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6608,14 +6461,13 @@ namespace validation_layer } auto driver_result = pfnReserveCacheExt( hDevice, cacheLevel, cacheReservationSize ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceReserveCacheExtEpilogue( hDevice, cacheLevel, cacheReservationSize ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6651,14 +6503,13 @@ namespace validation_layer } auto driver_result = pfnSetCacheAdviceExt( hDevice, ptr, regionSize, cacheRegion ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceSetCacheAdviceExtEpilogue( hDevice, ptr, regionSize, cacheRegion ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6700,14 +6551,13 @@ namespace validation_layer } auto driver_result = pfnQueryTimestampsExp( hEvent, hDevice, pCount, pTimestamps ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventQueryTimestampsExpEpilogue( hEvent, hDevice, pCount, pTimestamps ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6741,7 +6591,6 @@ namespace validation_layer } auto driver_result = pfnGetMemoryPropertiesExp( hImage, pMemoryProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeImageGetMemoryPropertiesExpEpilogue( hImage, pMemoryProperties ,driver_result); @@ -6749,10 +6598,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6789,7 +6638,6 @@ namespace validation_layer } auto driver_result = pfnViewCreateExt( hContext, hDevice, desc, hImage, phImageView ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeImageViewCreateExtEpilogue( hContext, hDevice, desc, hImage, phImageView ,driver_result); @@ -6797,7 +6645,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phImageView){ context.handleLifetime->addHandle( *phImageView ); @@ -6805,7 +6653,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6842,7 +6690,6 @@ namespace validation_layer } auto driver_result = pfnViewCreateExp( hContext, hDevice, desc, hImage, phImageView ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeImageViewCreateExpEpilogue( hContext, hDevice, desc, hImage, phImageView ,driver_result); @@ -6850,7 +6697,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phImageView){ context.handleLifetime->addHandle( *phImageView ); @@ -6858,7 +6705,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6892,14 +6739,13 @@ namespace validation_layer } auto driver_result = pfnSchedulingHintExp( hKernel, pHint ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeKernelSchedulingHintExpEpilogue( hKernel, pHint ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6933,14 +6779,13 @@ namespace validation_layer } auto driver_result = pfnPciGetPropertiesExt( hDevice, pPciProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDevicePciGetPropertiesExtEpilogue( hDevice, pPciProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6985,14 +6830,13 @@ namespace validation_layer } auto driver_result = pfnAppendImageCopyToMemoryExt( hCommandList, dstptr, hSrcImage, pSrcRegion, destRowPitch, destSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyToMemoryExtEpilogue( hCommandList, dstptr, hSrcImage, pSrcRegion, destRowPitch, destSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7037,14 +6881,13 @@ namespace validation_layer } auto driver_result = pfnAppendImageCopyFromMemoryExt( hCommandList, hDstImage, srcptr, pDstRegion, srcRowPitch, srcSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListAppendImageCopyFromMemoryExtEpilogue( hCommandList, hDstImage, srcptr, pDstRegion, srcRowPitch, srcSlicePitch, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7079,14 +6922,13 @@ namespace validation_layer } auto driver_result = pfnGetAllocPropertiesExt( hContext, hImage, pImageAllocProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeImageGetAllocPropertiesExtEpilogue( hContext, hImage, pImageAllocProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7124,14 +6966,13 @@ namespace validation_layer } auto driver_result = pfnInspectLinkageExt( pInspectDesc, numModules, phModules, phLog ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeModuleInspectLinkageExtEpilogue( pInspectDesc, numModules, phModules, phLog ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7166,14 +7007,13 @@ namespace validation_layer } auto driver_result = pfnFreeExt( hContext, pMemFreeDesc, ptr ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemFreeExtEpilogue( hContext, pMemFreeDesc, ptr ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7215,7 +7055,6 @@ namespace validation_layer } auto driver_result = pfnGetExp( hDriver, pCount, phVertices ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeFabricVertexGetExpEpilogue( hDriver, pCount, phVertices ,driver_result); @@ -7223,7 +7062,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phVertices) && (i < *pCount); ++i){ if (phVertices[i]){ @@ -7232,7 +7071,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7274,7 +7113,6 @@ namespace validation_layer } auto driver_result = pfnGetSubVerticesExp( hVertex, pCount, phSubvertices ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeFabricVertexGetSubVerticesExpEpilogue( hVertex, pCount, phSubvertices ,driver_result); @@ -7282,7 +7120,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phSubvertices) && (i < *pCount); ++i){ if (phSubvertices[i]){ @@ -7291,7 +7129,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7325,7 +7163,6 @@ namespace validation_layer } auto driver_result = pfnGetPropertiesExp( hVertex, pVertexProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeFabricVertexGetPropertiesExpEpilogue( hVertex, pVertexProperties ,driver_result); @@ -7333,10 +7170,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7370,7 +7207,6 @@ namespace validation_layer } auto driver_result = pfnGetDeviceExp( hVertex, phDevice ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeFabricVertexGetDeviceExpEpilogue( hVertex, phDevice ,driver_result); @@ -7378,7 +7214,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phDevice){ context.handleLifetime->addHandle( *phDevice ); @@ -7386,7 +7222,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7420,7 +7256,6 @@ namespace validation_layer } auto driver_result = pfnGetFabricVertexExp( hDevice, phVertex ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDeviceGetFabricVertexExpEpilogue( hDevice, phVertex ,driver_result); @@ -7428,7 +7263,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phVertex){ context.handleLifetime->addHandle( *phVertex ); @@ -7436,7 +7271,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7479,7 +7314,6 @@ namespace validation_layer } auto driver_result = pfnGetExp( hVertexA, hVertexB, pCount, phEdges ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeFabricEdgeGetExpEpilogue( hVertexA, hVertexB, pCount, phEdges ,driver_result); @@ -7487,7 +7321,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phEdges) && (i < *pCount); ++i){ if (phEdges[i]){ @@ -7496,7 +7330,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7531,7 +7365,6 @@ namespace validation_layer } auto driver_result = pfnGetVerticesExp( hEdge, phVertexA, phVertexB ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeFabricEdgeGetVerticesExpEpilogue( hEdge, phVertexA, phVertexB ,driver_result); @@ -7539,7 +7372,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phVertexA){ context.handleLifetime->addHandle( *phVertexA ); @@ -7552,7 +7385,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7586,7 +7419,6 @@ namespace validation_layer } auto driver_result = pfnGetPropertiesExp( hEdge, pEdgeProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeFabricEdgeGetPropertiesExpEpilogue( hEdge, pEdgeProperties ,driver_result); @@ -7594,10 +7426,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7646,14 +7478,13 @@ namespace validation_layer } auto driver_result = pfnQueryKernelTimestampsExt( hEvent, hDevice, pCount, pResults ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeEventQueryKernelTimestampsExtEpilogue( hEvent, hDevice, pCount, pResults ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7688,7 +7519,6 @@ namespace validation_layer } auto driver_result = pfnCreateExp( hDriver, pDescriptor, phBuilder ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeRTASBuilderCreateExpEpilogue( hDriver, pDescriptor, phBuilder ,driver_result); @@ -7696,7 +7526,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phBuilder){ context.handleLifetime->addHandle( *phBuilder ); @@ -7704,7 +7534,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7739,7 +7569,6 @@ namespace validation_layer } auto driver_result = pfnGetBuildPropertiesExp( hBuilder, pBuildOpDescriptor, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeRTASBuilderGetBuildPropertiesExpEpilogue( hBuilder, pBuildOpDescriptor, pProperties ,driver_result); @@ -7747,10 +7576,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7785,14 +7614,13 @@ namespace validation_layer } auto driver_result = pfnRTASFormatCompatibilityCheckExp( hDriver, rtasFormatA, rtasFormatB ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeDriverRTASFormatCompatibilityCheckExpEpilogue( hDriver, rtasFormatA, rtasFormatB ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7837,14 +7665,13 @@ namespace validation_layer } auto driver_result = pfnBuildExp( hBuilder, pBuildOpDescriptor, pScratchBuffer, scratchBufferSizeBytes, pRtasBuffer, rtasBufferSizeBytes, hParallelOperation, pBuildUserPtr, pBounds, pRtasBufferSizeBytes ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeRTASBuilderBuildExpEpilogue( hBuilder, pBuildOpDescriptor, pScratchBuffer, scratchBufferSizeBytes, pRtasBuffer, rtasBufferSizeBytes, hParallelOperation, pBuildUserPtr, pBounds, pRtasBufferSizeBytes ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7877,14 +7704,13 @@ namespace validation_layer } auto driver_result = pfnDestroyExp( hBuilder ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeRTASBuilderDestroyExpEpilogue( hBuilder ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7918,7 +7744,6 @@ namespace validation_layer } auto driver_result = pfnCreateExp( hDriver, phParallelOperation ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeRTASParallelOperationCreateExpEpilogue( hDriver, phParallelOperation ,driver_result); @@ -7926,7 +7751,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phParallelOperation){ context.handleLifetime->addHandle( *phParallelOperation ); @@ -7934,7 +7759,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -7968,7 +7793,6 @@ namespace validation_layer } auto driver_result = pfnGetPropertiesExp( hParallelOperation, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeRTASParallelOperationGetPropertiesExpEpilogue( hParallelOperation, pProperties ,driver_result); @@ -7976,10 +7800,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -8012,14 +7836,13 @@ namespace validation_layer } auto driver_result = pfnJoinExp( hParallelOperation ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeRTASParallelOperationJoinExpEpilogue( hParallelOperation ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -8052,14 +7875,13 @@ namespace validation_layer } auto driver_result = pfnDestroyExp( hParallelOperation ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeRTASParallelOperationDestroyExpEpilogue( hParallelOperation ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -8097,14 +7919,13 @@ namespace validation_layer } auto driver_result = pfnGetPitchFor2dImage( hContext, hDevice, imageWidth, imageHeight, elementSizeInBytes, rowPitch ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeMemGetPitchFor2dImageEpilogue( hContext, hDevice, imageWidth, imageHeight, elementSizeInBytes, rowPitch ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -8138,7 +7959,6 @@ namespace validation_layer } auto driver_result = pfnGetDeviceOffsetExp( hImage, pDeviceOffset ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeImageGetDeviceOffsetExpEpilogue( hImage, pDeviceOffset ,driver_result); @@ -8146,10 +7966,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -8183,7 +8003,6 @@ namespace validation_layer } auto driver_result = pfnCreateCloneExp( hCommandList, phClonedCommandList ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListCreateCloneExpEpilogue( hCommandList, phClonedCommandList ,driver_result); @@ -8191,7 +8010,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phClonedCommandList){ context.handleLifetime->addHandle( *phClonedCommandList ); @@ -8199,7 +8018,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -8243,14 +8062,13 @@ namespace validation_layer } auto driver_result = pfnImmediateAppendCommandListsExp( hCommandListImmediate, numCommandLists, phCommandLists, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListImmediateAppendCommandListsExpEpilogue( hCommandListImmediate, numCommandLists, phCommandLists, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -8285,7 +8103,6 @@ namespace validation_layer } auto driver_result = pfnGetNextCommandIdExp( hCommandList, desc, pCommandId ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetNextCommandIdExpEpilogue( hCommandList, desc, pCommandId ,driver_result); @@ -8293,10 +8110,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -8335,7 +8152,6 @@ namespace validation_layer } auto driver_result = pfnGetNextCommandIdWithKernelsExp( hCommandList, desc, numKernels, phKernels, pCommandId ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListGetNextCommandIdWithKernelsExpEpilogue( hCommandList, desc, numKernels, phKernels, pCommandId ,driver_result); @@ -8343,10 +8159,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -8381,14 +8197,13 @@ namespace validation_layer } auto driver_result = pfnUpdateMutableCommandsExp( hCommandList, desc ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListUpdateMutableCommandsExpEpilogue( hCommandList, desc ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -8423,14 +8238,13 @@ namespace validation_layer } auto driver_result = pfnUpdateMutableCommandSignalEventExp( hCommandList, commandId, hSignalEvent ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListUpdateMutableCommandSignalEventExpEpilogue( hCommandList, commandId, hSignalEvent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -8467,14 +8281,13 @@ namespace validation_layer } auto driver_result = pfnUpdateMutableCommandWaitEventsExp( hCommandList, commandId, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListUpdateMutableCommandWaitEventsExpEpilogue( hCommandList, commandId, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -8511,14 +8324,13 @@ namespace validation_layer } auto driver_result = pfnUpdateMutableCommandKernelsExp( hCommandList, numKernels, pCommandId, phKernels ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zeValidation->zeCommandListUpdateMutableCommandKernelsExpEpilogue( hCommandList, numKernels, pCommandId, phKernels ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } } // namespace validation_layer diff --git a/source/layers/validation/zes_valddi.cpp b/source/layers/validation/zes_valddi.cpp index f292b3ba..6c5d8d89 100644 --- a/source/layers/validation/zes_valddi.cpp +++ b/source/layers/validation/zes_valddi.cpp @@ -44,14 +44,13 @@ namespace validation_layer } auto driver_result = pfnInit( flags ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesInitEpilogue( flags ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -92,7 +91,6 @@ namespace validation_layer } auto driver_result = pfnGet( pCount, phDrivers ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDriverGetEpilogue( pCount, phDrivers ,driver_result); @@ -100,7 +98,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phDrivers) && (i < *pCount); ++i){ if (phDrivers[i]){ @@ -109,7 +107,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -152,14 +150,13 @@ namespace validation_layer } auto driver_result = pfnGetExtensionProperties( hDriver, pCount, pExtensionProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDriverGetExtensionPropertiesEpilogue( hDriver, pCount, pExtensionProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -194,14 +191,13 @@ namespace validation_layer } auto driver_result = pfnGetExtensionFunctionAddress( hDriver, name, ppFunctionAddress ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDriverGetExtensionFunctionAddressEpilogue( hDriver, name, ppFunctionAddress ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -243,7 +239,6 @@ namespace validation_layer } auto driver_result = pfnGet( hDriver, pCount, phDevices ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetEpilogue( hDriver, pCount, phDevices ,driver_result); @@ -251,7 +246,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phDevices) && (i < *pCount); ++i){ if (phDevices[i]){ @@ -260,7 +255,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -294,14 +289,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hDevice, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetPropertiesEpilogue( hDevice, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -335,14 +329,13 @@ namespace validation_layer } auto driver_result = pfnGetState( hDevice, pState ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetStateEpilogue( hDevice, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -377,14 +370,13 @@ namespace validation_layer } auto driver_result = pfnReset( hDevice, force ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceResetEpilogue( hDevice, force ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -418,14 +410,13 @@ namespace validation_layer } auto driver_result = pfnResetExt( hDevice, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceResetExtEpilogue( hDevice, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -468,14 +459,13 @@ namespace validation_layer } auto driver_result = pfnProcessesGetState( hDevice, pCount, pProcesses ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceProcessesGetStateEpilogue( hDevice, pCount, pProcesses ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -509,14 +499,13 @@ namespace validation_layer } auto driver_result = pfnPciGetProperties( hDevice, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDevicePciGetPropertiesEpilogue( hDevice, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -550,14 +539,13 @@ namespace validation_layer } auto driver_result = pfnPciGetState( hDevice, pState ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDevicePciGetStateEpilogue( hDevice, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -599,14 +587,13 @@ namespace validation_layer } auto driver_result = pfnPciGetBars( hDevice, pCount, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDevicePciGetBarsEpilogue( hDevice, pCount, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -640,14 +627,13 @@ namespace validation_layer } auto driver_result = pfnPciGetStats( hDevice, pStats ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDevicePciGetStatsEpilogue( hDevice, pStats ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -680,14 +666,13 @@ namespace validation_layer } auto driver_result = pfnSetOverclockWaiver( hDevice ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceSetOverclockWaiverEpilogue( hDevice ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -723,14 +708,13 @@ namespace validation_layer } auto driver_result = pfnGetOverclockDomains( hDevice, pOverclockDomains ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetOverclockDomainsEpilogue( hDevice, pOverclockDomains ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -767,14 +751,13 @@ namespace validation_layer } auto driver_result = pfnGetOverclockControls( hDevice, domainType, pAvailableControls ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetOverclockControlsEpilogue( hDevice, domainType, pAvailableControls ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -809,14 +792,13 @@ namespace validation_layer } auto driver_result = pfnResetOverclockSettings( hDevice, onShippedState ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceResetOverclockSettingsEpilogue( hDevice, onShippedState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -855,14 +837,13 @@ namespace validation_layer } auto driver_result = pfnReadOverclockState( hDevice, pOverclockMode, pWaiverSetting, pOverclockState, pPendingAction, pPendingReset ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceReadOverclockStateEpilogue( hDevice, pOverclockMode, pWaiverSetting, pOverclockState, pPendingAction, pPendingReset ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -906,14 +887,13 @@ namespace validation_layer } auto driver_result = pfnEnumOverclockDomains( hDevice, pCount, phDomainHandle ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumOverclockDomainsEpilogue( hDevice, pCount, phDomainHandle ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -947,14 +927,13 @@ namespace validation_layer } auto driver_result = pfnGetDomainProperties( hDomainHandle, pDomainProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetDomainPropertiesEpilogue( hDomainHandle, pDomainProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -988,14 +967,13 @@ namespace validation_layer } auto driver_result = pfnGetDomainVFProperties( hDomainHandle, pVFProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetDomainVFPropertiesEpilogue( hDomainHandle, pVFProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1030,14 +1008,13 @@ namespace validation_layer } auto driver_result = pfnGetDomainControlProperties( hDomainHandle, DomainControl, pControlProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetDomainControlPropertiesEpilogue( hDomainHandle, DomainControl, pControlProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1072,14 +1049,13 @@ namespace validation_layer } auto driver_result = pfnGetControlCurrentValue( hDomainHandle, DomainControl, pValue ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetControlCurrentValueEpilogue( hDomainHandle, DomainControl, pValue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1115,14 +1091,13 @@ namespace validation_layer } auto driver_result = pfnGetControlPendingValue( hDomainHandle, DomainControl, pValue ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetControlPendingValueEpilogue( hDomainHandle, DomainControl, pValue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1159,14 +1134,13 @@ namespace validation_layer } auto driver_result = pfnSetControlUserValue( hDomainHandle, DomainControl, pValue, pPendingAction ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesOverclockSetControlUserValueEpilogue( hDomainHandle, DomainControl, pValue, pPendingAction ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1202,14 +1176,13 @@ namespace validation_layer } auto driver_result = pfnGetControlState( hDomainHandle, DomainControl, pControlState, pPendingAction ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetControlStateEpilogue( hDomainHandle, DomainControl, pControlState, pPendingAction ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1247,14 +1220,13 @@ namespace validation_layer } auto driver_result = pfnGetVFPointValues( hDomainHandle, VFType, VFArrayType, PointIndex, PointValue ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesOverclockGetVFPointValuesEpilogue( hDomainHandle, VFType, VFArrayType, PointIndex, PointValue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1291,14 +1263,13 @@ namespace validation_layer } auto driver_result = pfnSetVFPointValues( hDomainHandle, VFType, PointIndex, PointValue ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesOverclockSetVFPointValuesEpilogue( hDomainHandle, VFType, PointIndex, PointValue ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1342,14 +1313,13 @@ namespace validation_layer } auto driver_result = pfnEnumDiagnosticTestSuites( hDevice, pCount, phDiagnostics ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumDiagnosticTestSuitesEpilogue( hDevice, pCount, phDiagnostics ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1384,14 +1354,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hDiagnostics, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDiagnosticsGetPropertiesEpilogue( hDiagnostics, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1433,14 +1402,13 @@ namespace validation_layer } auto driver_result = pfnGetTests( hDiagnostics, pCount, pTests ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDiagnosticsGetTestsEpilogue( hDiagnostics, pCount, pTests ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1478,14 +1446,13 @@ namespace validation_layer } auto driver_result = pfnRunTests( hDiagnostics, startIndex, endIndex, pResult ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDiagnosticsRunTestsEpilogue( hDiagnostics, startIndex, endIndex, pResult ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1519,14 +1486,13 @@ namespace validation_layer } auto driver_result = pfnEccAvailable( hDevice, pAvailable ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEccAvailableEpilogue( hDevice, pAvailable ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1560,14 +1526,13 @@ namespace validation_layer } auto driver_result = pfnEccConfigurable( hDevice, pConfigurable ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEccConfigurableEpilogue( hDevice, pConfigurable ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1601,14 +1566,13 @@ namespace validation_layer } auto driver_result = pfnGetEccState( hDevice, pState ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetEccStateEpilogue( hDevice, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1643,14 +1607,13 @@ namespace validation_layer } auto driver_result = pfnSetEccState( hDevice, newState, pState ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceSetEccStateEpilogue( hDevice, newState, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1694,14 +1657,13 @@ namespace validation_layer } auto driver_result = pfnEnumEngineGroups( hDevice, pCount, phEngine ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumEngineGroupsEpilogue( hDevice, pCount, phEngine ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1735,14 +1697,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hEngine, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesEngineGetPropertiesEpilogue( hEngine, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1777,14 +1738,13 @@ namespace validation_layer } auto driver_result = pfnGetActivity( hEngine, pStats ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesEngineGetActivityEpilogue( hEngine, pStats ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1818,14 +1778,13 @@ namespace validation_layer } auto driver_result = pfnEventRegister( hDevice, events ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEventRegisterEpilogue( hDevice, events ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1875,14 +1834,13 @@ namespace validation_layer } auto driver_result = pfnEventListen( hDriver, timeout, count, phDevices, pNumDeviceEvents, pEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDriverEventListenEpilogue( hDriver, timeout, count, phDevices, pNumDeviceEvents, pEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1932,14 +1890,13 @@ namespace validation_layer } auto driver_result = pfnEventListenEx( hDriver, timeout, count, phDevices, pNumDeviceEvents, pEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDriverEventListenExEpilogue( hDriver, timeout, count, phDevices, pNumDeviceEvents, pEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1983,14 +1940,13 @@ namespace validation_layer } auto driver_result = pfnEnumFabricPorts( hDevice, pCount, phPort ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumFabricPortsEpilogue( hDevice, pCount, phPort ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2024,14 +1980,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hPort, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetPropertiesEpilogue( hPort, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2066,14 +2021,13 @@ namespace validation_layer } auto driver_result = pfnGetLinkType( hPort, pLinkType ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetLinkTypeEpilogue( hPort, pLinkType ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2107,14 +2061,13 @@ namespace validation_layer } auto driver_result = pfnGetConfig( hPort, pConfig ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetConfigEpilogue( hPort, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2148,14 +2101,13 @@ namespace validation_layer } auto driver_result = pfnSetConfig( hPort, pConfig ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFabricPortSetConfigEpilogue( hPort, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2189,14 +2141,13 @@ namespace validation_layer } auto driver_result = pfnGetState( hPort, pState ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetStateEpilogue( hPort, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2230,14 +2181,13 @@ namespace validation_layer } auto driver_result = pfnGetThroughput( hPort, pThroughput ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetThroughputEpilogue( hPort, pThroughput ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2271,14 +2221,13 @@ namespace validation_layer } auto driver_result = pfnGetFabricErrorCounters( hPort, pErrors ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetFabricErrorCountersEpilogue( hPort, pErrors ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2316,14 +2265,13 @@ namespace validation_layer } auto driver_result = pfnGetMultiPortThroughput( hDevice, numPorts, phPort, pThroughput ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFabricPortGetMultiPortThroughputEpilogue( hDevice, numPorts, phPort, pThroughput ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2367,14 +2315,13 @@ namespace validation_layer } auto driver_result = pfnEnumFans( hDevice, pCount, phFan ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumFansEpilogue( hDevice, pCount, phFan ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2408,14 +2355,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hFan, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFanGetPropertiesEpilogue( hFan, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2449,14 +2395,13 @@ namespace validation_layer } auto driver_result = pfnGetConfig( hFan, pConfig ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFanGetConfigEpilogue( hFan, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2489,14 +2434,13 @@ namespace validation_layer } auto driver_result = pfnSetDefaultMode( hFan ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFanSetDefaultModeEpilogue( hFan ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2530,14 +2474,13 @@ namespace validation_layer } auto driver_result = pfnSetFixedSpeedMode( hFan, speed ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFanSetFixedSpeedModeEpilogue( hFan, speed ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2571,14 +2514,13 @@ namespace validation_layer } auto driver_result = pfnSetSpeedTableMode( hFan, speedTable ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFanSetSpeedTableModeEpilogue( hFan, speedTable ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2615,14 +2557,13 @@ namespace validation_layer } auto driver_result = pfnGetState( hFan, units, pSpeed ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFanGetStateEpilogue( hFan, units, pSpeed ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2666,14 +2607,13 @@ namespace validation_layer } auto driver_result = pfnEnumFirmwares( hDevice, pCount, phFirmware ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumFirmwaresEpilogue( hDevice, pCount, phFirmware ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2708,14 +2648,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hFirmware, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFirmwareGetPropertiesEpilogue( hFirmware, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2750,14 +2689,13 @@ namespace validation_layer } auto driver_result = pfnFlash( hFirmware, pImage, size ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFirmwareFlashEpilogue( hFirmware, pImage, size ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2791,14 +2729,13 @@ namespace validation_layer } auto driver_result = pfnGetFlashProgress( hFirmware, pCompletionPercent ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFirmwareGetFlashProgressEpilogue( hFirmware, pCompletionPercent ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2833,14 +2770,13 @@ namespace validation_layer } auto driver_result = pfnGetConsoleLogs( hFirmware, pSize, pFirmwareLog ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFirmwareGetConsoleLogsEpilogue( hFirmware, pSize, pFirmwareLog ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2884,14 +2820,13 @@ namespace validation_layer } auto driver_result = pfnEnumFrequencyDomains( hDevice, pCount, phFrequency ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumFrequencyDomainsEpilogue( hDevice, pCount, phFrequency ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2925,14 +2860,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hFrequency, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetPropertiesEpilogue( hFrequency, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2974,14 +2908,13 @@ namespace validation_layer } auto driver_result = pfnGetAvailableClocks( hFrequency, pCount, phFrequency ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetAvailableClocksEpilogue( hFrequency, pCount, phFrequency ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3016,14 +2949,13 @@ namespace validation_layer } auto driver_result = pfnGetRange( hFrequency, pLimits ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetRangeEpilogue( hFrequency, pLimits ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3058,14 +2990,13 @@ namespace validation_layer } auto driver_result = pfnSetRange( hFrequency, pLimits ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencySetRangeEpilogue( hFrequency, pLimits ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3099,14 +3030,13 @@ namespace validation_layer } auto driver_result = pfnGetState( hFrequency, pState ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetStateEpilogue( hFrequency, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3141,14 +3071,13 @@ namespace validation_layer } auto driver_result = pfnGetThrottleTime( hFrequency, pThrottleTime ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyGetThrottleTimeEpilogue( hFrequency, pThrottleTime ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3182,14 +3111,13 @@ namespace validation_layer } auto driver_result = pfnOcGetCapabilities( hFrequency, pOcCapabilities ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetCapabilitiesEpilogue( hFrequency, pOcCapabilities ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3226,14 +3154,13 @@ namespace validation_layer } auto driver_result = pfnOcGetFrequencyTarget( hFrequency, pCurrentOcFrequency ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetFrequencyTargetEpilogue( hFrequency, pCurrentOcFrequency ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3270,14 +3197,13 @@ namespace validation_layer } auto driver_result = pfnOcSetFrequencyTarget( hFrequency, CurrentOcFrequency ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetFrequencyTargetEpilogue( hFrequency, CurrentOcFrequency ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3316,14 +3242,13 @@ namespace validation_layer } auto driver_result = pfnOcGetVoltageTarget( hFrequency, pCurrentVoltageTarget, pCurrentVoltageOffset ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetVoltageTargetEpilogue( hFrequency, pCurrentVoltageTarget, pCurrentVoltageOffset ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3362,14 +3287,13 @@ namespace validation_layer } auto driver_result = pfnOcSetVoltageTarget( hFrequency, CurrentVoltageTarget, CurrentVoltageOffset ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetVoltageTargetEpilogue( hFrequency, CurrentVoltageTarget, CurrentVoltageOffset ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3403,14 +3327,13 @@ namespace validation_layer } auto driver_result = pfnOcSetMode( hFrequency, CurrentOcMode ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetModeEpilogue( hFrequency, CurrentOcMode ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3444,14 +3367,13 @@ namespace validation_layer } auto driver_result = pfnOcGetMode( hFrequency, pCurrentOcMode ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetModeEpilogue( hFrequency, pCurrentOcMode ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3486,14 +3408,13 @@ namespace validation_layer } auto driver_result = pfnOcGetIccMax( hFrequency, pOcIccMax ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetIccMaxEpilogue( hFrequency, pOcIccMax ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3527,14 +3448,13 @@ namespace validation_layer } auto driver_result = pfnOcSetIccMax( hFrequency, ocIccMax ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetIccMaxEpilogue( hFrequency, ocIccMax ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3569,14 +3489,13 @@ namespace validation_layer } auto driver_result = pfnOcGetTjMax( hFrequency, pOcTjMax ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcGetTjMaxEpilogue( hFrequency, pOcTjMax ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3610,14 +3529,13 @@ namespace validation_layer } auto driver_result = pfnOcSetTjMax( hFrequency, ocTjMax ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFrequencyOcSetTjMaxEpilogue( hFrequency, ocTjMax ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3661,14 +3579,13 @@ namespace validation_layer } auto driver_result = pfnEnumLeds( hDevice, pCount, phLed ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumLedsEpilogue( hDevice, pCount, phLed ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3702,14 +3619,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hLed, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesLedGetPropertiesEpilogue( hLed, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3743,14 +3659,13 @@ namespace validation_layer } auto driver_result = pfnGetState( hLed, pState ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesLedGetStateEpilogue( hLed, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3784,14 +3699,13 @@ namespace validation_layer } auto driver_result = pfnSetState( hLed, enable ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesLedSetStateEpilogue( hLed, enable ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3825,14 +3739,13 @@ namespace validation_layer } auto driver_result = pfnSetColor( hLed, pColor ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesLedSetColorEpilogue( hLed, pColor ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3876,14 +3789,13 @@ namespace validation_layer } auto driver_result = pfnEnumMemoryModules( hDevice, pCount, phMemory ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumMemoryModulesEpilogue( hDevice, pCount, phMemory ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3917,14 +3829,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hMemory, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesMemoryGetPropertiesEpilogue( hMemory, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3958,14 +3869,13 @@ namespace validation_layer } auto driver_result = pfnGetState( hMemory, pState ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesMemoryGetStateEpilogue( hMemory, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4000,14 +3910,13 @@ namespace validation_layer } auto driver_result = pfnGetBandwidth( hMemory, pBandwidth ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesMemoryGetBandwidthEpilogue( hMemory, pBandwidth ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4051,14 +3960,13 @@ namespace validation_layer } auto driver_result = pfnEnumPerformanceFactorDomains( hDevice, pCount, phPerf ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumPerformanceFactorDomainsEpilogue( hDevice, pCount, phPerf ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4093,14 +4001,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hPerf, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPerformanceFactorGetPropertiesEpilogue( hPerf, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4135,14 +4042,13 @@ namespace validation_layer } auto driver_result = pfnGetConfig( hPerf, pFactor ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPerformanceFactorGetConfigEpilogue( hPerf, pFactor ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4176,14 +4082,13 @@ namespace validation_layer } auto driver_result = pfnSetConfig( hPerf, factor ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPerformanceFactorSetConfigEpilogue( hPerf, factor ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4227,14 +4132,13 @@ namespace validation_layer } auto driver_result = pfnEnumPowerDomains( hDevice, pCount, phPower ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumPowerDomainsEpilogue( hDevice, pCount, phPower ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4268,14 +4172,13 @@ namespace validation_layer } auto driver_result = pfnGetCardPowerDomain( hDevice, phPower ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetCardPowerDomainEpilogue( hDevice, phPower ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4309,14 +4212,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hPower, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPowerGetPropertiesEpilogue( hPower, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4351,14 +4253,13 @@ namespace validation_layer } auto driver_result = pfnGetEnergyCounter( hPower, pEnergy ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPowerGetEnergyCounterEpilogue( hPower, pEnergy ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4397,14 +4298,13 @@ namespace validation_layer } auto driver_result = pfnGetLimits( hPower, pSustained, pBurst, pPeak ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPowerGetLimitsEpilogue( hPower, pSustained, pBurst, pPeak ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4443,14 +4343,13 @@ namespace validation_layer } auto driver_result = pfnSetLimits( hPower, pSustained, pBurst, pPeak ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPowerSetLimitsEpilogue( hPower, pSustained, pBurst, pPeak ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4485,14 +4384,13 @@ namespace validation_layer } auto driver_result = pfnGetEnergyThreshold( hPower, pThreshold ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPowerGetEnergyThresholdEpilogue( hPower, pThreshold ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4526,14 +4424,13 @@ namespace validation_layer } auto driver_result = pfnSetEnergyThreshold( hPower, threshold ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPowerSetEnergyThresholdEpilogue( hPower, threshold ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4577,14 +4474,13 @@ namespace validation_layer } auto driver_result = pfnEnumPsus( hDevice, pCount, phPsu ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumPsusEpilogue( hDevice, pCount, phPsu ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4618,14 +4514,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hPsu, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPsuGetPropertiesEpilogue( hPsu, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4659,14 +4554,13 @@ namespace validation_layer } auto driver_result = pfnGetState( hPsu, pState ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPsuGetStateEpilogue( hPsu, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4710,14 +4604,13 @@ namespace validation_layer } auto driver_result = pfnEnumRasErrorSets( hDevice, pCount, phRas ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumRasErrorSetsEpilogue( hDevice, pCount, phRas ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4751,14 +4644,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hRas, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesRasGetPropertiesEpilogue( hRas, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4793,14 +4685,13 @@ namespace validation_layer } auto driver_result = pfnGetConfig( hRas, pConfig ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesRasGetConfigEpilogue( hRas, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4834,14 +4725,13 @@ namespace validation_layer } auto driver_result = pfnSetConfig( hRas, pConfig ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesRasSetConfigEpilogue( hRas, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4876,14 +4766,13 @@ namespace validation_layer } auto driver_result = pfnGetState( hRas, clear, pState ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesRasGetStateEpilogue( hRas, clear, pState ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4927,14 +4816,13 @@ namespace validation_layer } auto driver_result = pfnEnumSchedulers( hDevice, pCount, phScheduler ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumSchedulersEpilogue( hDevice, pCount, phScheduler ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -4968,14 +4856,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hScheduler, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesSchedulerGetPropertiesEpilogue( hScheduler, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5009,14 +4896,13 @@ namespace validation_layer } auto driver_result = pfnGetCurrentMode( hScheduler, pMode ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesSchedulerGetCurrentModeEpilogue( hScheduler, pMode ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5052,14 +4938,13 @@ namespace validation_layer } auto driver_result = pfnGetTimeoutModeProperties( hScheduler, getDefaults, pConfig ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesSchedulerGetTimeoutModePropertiesEpilogue( hScheduler, getDefaults, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5095,14 +4980,13 @@ namespace validation_layer } auto driver_result = pfnGetTimesliceModeProperties( hScheduler, getDefaults, pConfig ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesSchedulerGetTimesliceModePropertiesEpilogue( hScheduler, getDefaults, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5138,14 +5022,13 @@ namespace validation_layer } auto driver_result = pfnSetTimeoutMode( hScheduler, pProperties, pNeedReload ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesSchedulerSetTimeoutModeEpilogue( hScheduler, pProperties, pNeedReload ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5181,14 +5064,13 @@ namespace validation_layer } auto driver_result = pfnSetTimesliceMode( hScheduler, pProperties, pNeedReload ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesSchedulerSetTimesliceModeEpilogue( hScheduler, pProperties, pNeedReload ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5223,14 +5105,13 @@ namespace validation_layer } auto driver_result = pfnSetExclusiveMode( hScheduler, pNeedReload ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesSchedulerSetExclusiveModeEpilogue( hScheduler, pNeedReload ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5265,14 +5146,13 @@ namespace validation_layer } auto driver_result = pfnSetComputeUnitDebugMode( hScheduler, pNeedReload ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesSchedulerSetComputeUnitDebugModeEpilogue( hScheduler, pNeedReload ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5316,14 +5196,13 @@ namespace validation_layer } auto driver_result = pfnEnumStandbyDomains( hDevice, pCount, phStandby ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumStandbyDomainsEpilogue( hDevice, pCount, phStandby ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5357,14 +5236,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hStandby, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesStandbyGetPropertiesEpilogue( hStandby, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5398,14 +5276,13 @@ namespace validation_layer } auto driver_result = pfnGetMode( hStandby, pMode ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesStandbyGetModeEpilogue( hStandby, pMode ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5439,14 +5316,13 @@ namespace validation_layer } auto driver_result = pfnSetMode( hStandby, mode ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesStandbySetModeEpilogue( hStandby, mode ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5490,14 +5366,13 @@ namespace validation_layer } auto driver_result = pfnEnumTemperatureSensors( hDevice, pCount, phTemperature ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumTemperatureSensorsEpilogue( hDevice, pCount, phTemperature ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5531,14 +5406,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hTemperature, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesTemperatureGetPropertiesEpilogue( hTemperature, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5572,14 +5446,13 @@ namespace validation_layer } auto driver_result = pfnGetConfig( hTemperature, pConfig ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesTemperatureGetConfigEpilogue( hTemperature, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5613,14 +5486,13 @@ namespace validation_layer } auto driver_result = pfnSetConfig( hTemperature, pConfig ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesTemperatureSetConfigEpilogue( hTemperature, pConfig ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5655,14 +5527,13 @@ namespace validation_layer } auto driver_result = pfnGetState( hTemperature, pTemperature ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesTemperatureGetStateEpilogue( hTemperature, pTemperature ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5704,14 +5575,13 @@ namespace validation_layer } auto driver_result = pfnGetLimitsExt( hPower, pCount, pSustained ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPowerGetLimitsExtEpilogue( hPower, pCount, pSustained ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5746,14 +5616,13 @@ namespace validation_layer } auto driver_result = pfnSetLimitsExt( hPower, pCount, pSustained ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesPowerSetLimitsExtEpilogue( hPower, pCount, pSustained ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5800,14 +5669,13 @@ namespace validation_layer } auto driver_result = pfnGetActivityExt( hEngine, pCount, pStats ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesEngineGetActivityExtEpilogue( hEngine, pCount, pStats ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5849,7 +5717,6 @@ namespace validation_layer } auto driver_result = pfnGetStateExp( hRas, pCount, pState ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesRasGetStateExpEpilogue( hRas, pCount, pState ,driver_result); @@ -5857,10 +5724,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5894,14 +5761,13 @@ namespace validation_layer } auto driver_result = pfnClearStateExp( hRas, category ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesRasClearStateExpEpilogue( hRas, category ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5936,7 +5802,6 @@ namespace validation_layer } auto driver_result = pfnGetSecurityVersionExp( hFirmware, pVersion ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFirmwareGetSecurityVersionExpEpilogue( hFirmware, pVersion ,driver_result); @@ -5944,10 +5809,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -5980,14 +5845,13 @@ namespace validation_layer } auto driver_result = pfnSetSecurityVersionExp( hFirmware ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesFirmwareSetSecurityVersionExpEpilogue( hFirmware ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6029,7 +5893,6 @@ namespace validation_layer } auto driver_result = pfnGetSubDevicePropertiesExp( hDevice, pCount, pSubdeviceProps ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceGetSubDevicePropertiesExpEpilogue( hDevice, pCount, pSubdeviceProps ,driver_result); @@ -6037,10 +5900,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6078,7 +5941,6 @@ namespace validation_layer } auto driver_result = pfnGetDeviceByUuidExp( hDriver, uuid, phDevice, onSubdevice, subdeviceId ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDriverGetDeviceByUuidExpEpilogue( hDriver, uuid, phDevice, onSubdevice, subdeviceId ,driver_result); @@ -6086,7 +5948,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phDevice){ context.handleLifetime->addHandle( *phDevice ); @@ -6094,7 +5956,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6138,14 +6000,13 @@ namespace validation_layer } auto driver_result = pfnEnumActiveVFExp( hDevice, pCount, phVFhandle ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumActiveVFExpEpilogue( hDevice, pCount, phVFhandle ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6179,7 +6040,6 @@ namespace validation_layer } auto driver_result = pfnGetVFPropertiesExp( hVFhandle, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFPropertiesExpEpilogue( hVFhandle, pProperties ,driver_result); @@ -6187,10 +6047,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6236,7 +6096,6 @@ namespace validation_layer } auto driver_result = pfnGetVFMemoryUtilizationExp( hVFhandle, pCount, pMemUtil ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFMemoryUtilizationExpEpilogue( hVFhandle, pCount, pMemUtil ,driver_result); @@ -6244,10 +6103,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6293,7 +6152,6 @@ namespace validation_layer } auto driver_result = pfnGetVFEngineUtilizationExp( hVFhandle, pCount, pEngineUtil ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFEngineUtilizationExpEpilogue( hVFhandle, pCount, pEngineUtil ,driver_result); @@ -6301,10 +6159,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6340,14 +6198,13 @@ namespace validation_layer } auto driver_result = pfnSetVFTelemetryModeExp( hVFhandle, flags, enable ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesVFManagementSetVFTelemetryModeExpEpilogue( hVFhandle, flags, enable ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6383,14 +6240,13 @@ namespace validation_layer } auto driver_result = pfnSetVFTelemetrySamplingIntervalExp( hVFhandle, flag, samplingInterval ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesVFManagementSetVFTelemetrySamplingIntervalExpEpilogue( hVFhandle, flag, samplingInterval ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6434,14 +6290,13 @@ namespace validation_layer } auto driver_result = pfnEnumEnabledVFExp( hDevice, pCount, phVFhandle ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesDeviceEnumEnabledVFExpEpilogue( hDevice, pCount, phVFhandle ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6475,7 +6330,6 @@ namespace validation_layer } auto driver_result = pfnGetVFCapabilitiesExp( hVFhandle, pCapability ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFCapabilitiesExpEpilogue( hVFhandle, pCapability ,driver_result); @@ -6483,10 +6337,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6530,14 +6384,13 @@ namespace validation_layer } auto driver_result = pfnGetVFMemoryUtilizationExp2( hVFhandle, pCount, pMemUtil ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFMemoryUtilizationExp2Epilogue( hVFhandle, pCount, pMemUtil ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -6581,14 +6434,13 @@ namespace validation_layer } auto driver_result = pfnGetVFEngineUtilizationExp2( hVFhandle, pCount, pEngineUtil ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zesValidation->zesVFManagementGetVFEngineUtilizationExp2Epilogue( hVFhandle, pCount, pEngineUtil ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } } // namespace validation_layer diff --git a/source/layers/validation/zet_valddi.cpp b/source/layers/validation/zet_valddi.cpp index 5472e200..2cf1e7ed 100644 --- a/source/layers/validation/zet_valddi.cpp +++ b/source/layers/validation/zet_valddi.cpp @@ -46,14 +46,13 @@ namespace validation_layer } auto driver_result = pfnGetDebugInfo( hModule, format, pSize, pDebugInfo ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetModuleGetDebugInfoEpilogue( hModule, format, pSize, pDebugInfo ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -87,14 +86,13 @@ namespace validation_layer } auto driver_result = pfnGetDebugProperties( hDevice, pDebugProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDeviceGetDebugPropertiesEpilogue( hDevice, pDebugProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -129,14 +127,13 @@ namespace validation_layer } auto driver_result = pfnAttach( hDevice, config, phDebug ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDebugAttachEpilogue( hDevice, config, phDebug ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -169,14 +166,13 @@ namespace validation_layer } auto driver_result = pfnDetach( hDebug ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDebugDetachEpilogue( hDebug ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -217,14 +213,13 @@ namespace validation_layer } auto driver_result = pfnReadEvent( hDebug, timeout, event ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDebugReadEventEpilogue( hDebug, timeout, event ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -258,14 +253,13 @@ namespace validation_layer } auto driver_result = pfnAcknowledgeEvent( hDebug, event ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDebugAcknowledgeEventEpilogue( hDebug, event ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -299,14 +293,13 @@ namespace validation_layer } auto driver_result = pfnInterrupt( hDebug, thread ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDebugInterruptEpilogue( hDebug, thread ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -340,14 +333,13 @@ namespace validation_layer } auto driver_result = pfnResume( hDebug, thread ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDebugResumeEpilogue( hDebug, thread ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -384,14 +376,13 @@ namespace validation_layer } auto driver_result = pfnReadMemory( hDebug, thread, desc, size, buffer ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDebugReadMemoryEpilogue( hDebug, thread, desc, size, buffer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -428,14 +419,13 @@ namespace validation_layer } auto driver_result = pfnWriteMemory( hDebug, thread, desc, size, buffer ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDebugWriteMemoryEpilogue( hDebug, thread, desc, size, buffer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -478,14 +468,13 @@ namespace validation_layer } auto driver_result = pfnGetRegisterSetProperties( hDevice, pCount, pRegisterSetProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDebugGetRegisterSetPropertiesEpilogue( hDevice, pCount, pRegisterSetProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -529,14 +518,13 @@ namespace validation_layer } auto driver_result = pfnGetThreadRegisterSetProperties( hDebug, thread, pCount, pRegisterSetProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDebugGetThreadRegisterSetPropertiesEpilogue( hDebug, thread, pCount, pRegisterSetProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -578,14 +566,13 @@ namespace validation_layer } auto driver_result = pfnReadRegisters( hDebug, thread, type, start, count, pRegisterValues ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDebugReadRegistersEpilogue( hDebug, thread, type, start, count, pRegisterValues ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -627,14 +614,13 @@ namespace validation_layer } auto driver_result = pfnWriteRegisters( hDebug, thread, type, start, count, pRegisterValues ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDebugWriteRegistersEpilogue( hDebug, thread, type, start, count, pRegisterValues ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -676,7 +662,6 @@ namespace validation_layer } auto driver_result = pfnGet( hDevice, pCount, phMetricGroups ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupGetEpilogue( hDevice, pCount, phMetricGroups ,driver_result); @@ -684,7 +669,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phMetricGroups) && (i < *pCount); ++i){ if (phMetricGroups[i]){ @@ -693,7 +678,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -727,14 +712,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hMetricGroup, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupGetPropertiesEpilogue( hMetricGroup, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -779,14 +763,13 @@ namespace validation_layer } auto driver_result = pfnCalculateMetricValues( hMetricGroup, type, rawDataSize, pRawData, pMetricValueCount, pMetricValues ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCalculateMetricValuesEpilogue( hMetricGroup, type, rawDataSize, pRawData, pMetricValueCount, pMetricValues ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -827,7 +810,6 @@ namespace validation_layer } auto driver_result = pfnGet( hMetricGroup, pCount, phMetrics ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGetEpilogue( hMetricGroup, pCount, phMetrics ,driver_result); @@ -835,7 +817,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phMetrics) && (i < *pCount); ++i){ if (phMetrics[i]){ @@ -844,7 +826,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -878,14 +860,13 @@ namespace validation_layer } auto driver_result = pfnGetProperties( hMetric, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGetPropertiesEpilogue( hMetric, pProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -925,14 +906,13 @@ namespace validation_layer } auto driver_result = pfnActivateMetricGroups( hContext, hDevice, count, phMetricGroups ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetContextActivateMetricGroupsEpilogue( hContext, hDevice, count, phMetricGroups ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -970,14 +950,13 @@ namespace validation_layer } auto driver_result = pfnOpen( hContext, hDevice, hMetricGroup, desc, hNotificationEvent, phMetricStreamer ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricStreamerOpenEpilogue( hContext, hDevice, hMetricGroup, desc, hNotificationEvent, phMetricStreamer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1012,14 +991,13 @@ namespace validation_layer } auto driver_result = pfnAppendMetricStreamerMarker( hCommandList, hMetricStreamer, value ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetCommandListAppendMetricStreamerMarkerEpilogue( hCommandList, hMetricStreamer, value ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1052,14 +1030,13 @@ namespace validation_layer } auto driver_result = pfnClose( hMetricStreamer ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricStreamerCloseEpilogue( hMetricStreamer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1103,14 +1080,13 @@ namespace validation_layer } auto driver_result = pfnReadData( hMetricStreamer, maxReportCount, pRawDataSize, pRawData ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricStreamerReadDataEpilogue( hMetricStreamer, maxReportCount, pRawDataSize, pRawData ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1147,7 +1123,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hContext, hDevice, hMetricGroup, desc, phMetricQueryPool ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryPoolCreateEpilogue( hContext, hDevice, hMetricGroup, desc, phMetricQueryPool ,driver_result); @@ -1155,7 +1130,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phMetricQueryPool){ context.handleLifetime->addHandle( *phMetricQueryPool ); @@ -1163,7 +1138,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1196,14 +1171,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hMetricQueryPool ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryPoolDestroyEpilogue( hMetricQueryPool ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1238,7 +1212,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hMetricQueryPool, index, phMetricQuery ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryCreateEpilogue( hMetricQueryPool, index, phMetricQuery ,driver_result); @@ -1246,7 +1219,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phMetricQuery){ context.handleLifetime->addHandle( *phMetricQuery ); @@ -1254,7 +1227,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1287,14 +1260,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hMetricQuery ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryDestroyEpilogue( hMetricQuery ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1327,14 +1299,13 @@ namespace validation_layer } auto driver_result = pfnReset( hMetricQuery ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryResetEpilogue( hMetricQuery ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1368,14 +1339,13 @@ namespace validation_layer } auto driver_result = pfnAppendMetricQueryBegin( hCommandList, hMetricQuery ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetCommandListAppendMetricQueryBeginEpilogue( hCommandList, hMetricQuery ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1412,14 +1382,13 @@ namespace validation_layer } auto driver_result = pfnAppendMetricQueryEnd( hCommandList, hMetricQuery, hSignalEvent, numWaitEvents, phWaitEvents ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetCommandListAppendMetricQueryEndEpilogue( hCommandList, hMetricQuery, hSignalEvent, numWaitEvents, phWaitEvents ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1452,14 +1421,13 @@ namespace validation_layer } auto driver_result = pfnAppendMetricMemoryBarrier( hCommandList ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetCommandListAppendMetricMemoryBarrierEpilogue( hCommandList ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1501,14 +1469,13 @@ namespace validation_layer } auto driver_result = pfnGetData( hMetricQuery, pRawDataSize, pRawData ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricQueryGetDataEpilogue( hMetricQuery, pRawDataSize, pRawData ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1542,14 +1509,13 @@ namespace validation_layer } auto driver_result = pfnGetProfileInfo( hKernel, pProfileProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetKernelGetProfileInfoEpilogue( hKernel, pProfileProperties ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1584,7 +1550,6 @@ namespace validation_layer } auto driver_result = pfnCreate( hContext, desc, phTracer ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetTracerExpCreateEpilogue( hContext, desc, phTracer ,driver_result); @@ -1592,7 +1557,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phTracer){ context.handleLifetime->addHandle( *phTracer ); @@ -1600,7 +1565,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1633,14 +1598,13 @@ namespace validation_layer } auto driver_result = pfnDestroy( hTracer ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetTracerExpDestroyEpilogue( hTracer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1674,14 +1638,13 @@ namespace validation_layer } auto driver_result = pfnSetPrologues( hTracer, pCoreCbs ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetTracerExpSetProloguesEpilogue( hTracer, pCoreCbs ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1715,14 +1678,13 @@ namespace validation_layer } auto driver_result = pfnSetEpilogues( hTracer, pCoreCbs ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetTracerExpSetEpiloguesEpilogue( hTracer, pCoreCbs ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1756,14 +1718,13 @@ namespace validation_layer } auto driver_result = pfnSetEnabled( hTracer, enable ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetTracerExpSetEnabledEpilogue( hTracer, enable ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1804,7 +1765,6 @@ namespace validation_layer } auto driver_result = pfnGetConcurrentMetricGroupsExp( hDevice, metricGroupCount, phMetricGroups, pMetricGroupsCountPerConcurrentGroup, pConcurrentGroupCount ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDeviceGetConcurrentMetricGroupsExpEpilogue( hDevice, metricGroupCount, phMetricGroups, pMetricGroupsCountPerConcurrentGroup, pConcurrentGroupCount ,driver_result); @@ -1812,10 +1772,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1857,7 +1817,6 @@ namespace validation_layer } auto driver_result = pfnCreateExp( hContext, hDevice, metricGroupCount, phMetricGroups, desc, hNotificationEvent, phMetricTracer ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerCreateExpEpilogue( hContext, hDevice, metricGroupCount, phMetricGroups, desc, hNotificationEvent, phMetricTracer ,driver_result); @@ -1865,7 +1824,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phMetricTracer){ context.handleLifetime->addHandle( *phMetricTracer ); @@ -1873,7 +1832,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1906,14 +1865,13 @@ namespace validation_layer } auto driver_result = pfnDestroyExp( hMetricTracer ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerDestroyExpEpilogue( hMetricTracer ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1951,14 +1909,13 @@ namespace validation_layer } auto driver_result = pfnEnableExp( hMetricTracer, synchronous ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerEnableExpEpilogue( hMetricTracer, synchronous ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -1997,14 +1954,13 @@ namespace validation_layer } auto driver_result = pfnDisableExp( hMetricTracer, synchronous ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerDisableExpEpilogue( hMetricTracer, synchronous ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2046,14 +2002,13 @@ namespace validation_layer } auto driver_result = pfnReadDataExp( hMetricTracer, pRawDataSize, pRawData ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerReadDataExpEpilogue( hMetricTracer, pRawDataSize, pRawData ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2087,7 +2042,6 @@ namespace validation_layer } auto driver_result = pfnCreateExp( hMetricTracer, phMetricDecoder ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricDecoderCreateExpEpilogue( hMetricTracer, phMetricDecoder ,driver_result); @@ -2095,7 +2049,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phMetricDecoder){ context.handleLifetime->addHandle( *phMetricDecoder ); @@ -2103,7 +2057,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2136,14 +2090,13 @@ namespace validation_layer } auto driver_result = pfnDestroyExp( phMetricDecoder ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricDecoderDestroyExpEpilogue( phMetricDecoder ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2187,7 +2140,6 @@ namespace validation_layer } auto driver_result = pfnGetDecodableMetricsExp( hMetricDecoder, pCount, phMetrics ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricDecoderGetDecodableMetricsExpEpilogue( hMetricDecoder, pCount, phMetrics ,driver_result); @@ -2195,7 +2147,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phMetrics) && (i < *pCount); ++i){ if (phMetrics[i]){ @@ -2204,7 +2156,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2276,14 +2228,13 @@ namespace validation_layer } auto driver_result = pfnDecodeExp( phMetricDecoder, pRawDataSize, pRawData, metricsCount, phMetrics, pSetCount, pMetricEntriesCountPerSet, pMetricEntriesCount, pMetricEntries ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricTracerDecodeExpEpilogue( phMetricDecoder, pRawDataSize, pRawData, metricsCount, phMetrics, pSetCount, pMetricEntriesCountPerSet, pMetricEntriesCount, pMetricEntries ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2338,14 +2289,13 @@ namespace validation_layer } auto driver_result = pfnCalculateMultipleMetricValuesExp( hMetricGroup, type, rawDataSize, pRawData, pSetCount, pTotalMetricValueCount, pMetricCounts, pMetricValues ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCalculateMultipleMetricValuesExpEpilogue( hMetricGroup, type, rawDataSize, pRawData, pSetCount, pTotalMetricValueCount, pMetricCounts, pMetricValues ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2381,7 +2331,6 @@ namespace validation_layer } auto driver_result = pfnGetGlobalTimestampsExp( hMetricGroup, synchronizedWithHost, globalTimestamp, metricTimestamp ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupGetGlobalTimestampsExpEpilogue( hMetricGroup, synchronizedWithHost, globalTimestamp, metricTimestamp ,driver_result); @@ -2389,10 +2338,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2433,7 +2382,6 @@ namespace validation_layer } auto driver_result = pfnGetExportDataExp( hMetricGroup, pRawData, rawDataSize, pExportDataSize, pExportData ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupGetExportDataExpEpilogue( hMetricGroup, pRawData, rawDataSize, pExportDataSize, pExportData ,driver_result); @@ -2441,10 +2389,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2500,14 +2448,13 @@ namespace validation_layer } auto driver_result = pfnCalculateMetricExportDataExp( hDriver, type, exportDataSize, pExportData, pCalculateDescriptor, pSetCount, pTotalMetricValueCount, pMetricCounts, pMetricValues ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCalculateMetricExportDataExpEpilogue( hDriver, type, exportDataSize, pExportData, pCalculateDescriptor, pSetCount, pTotalMetricValueCount, pMetricCounts, pMetricValues ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2549,7 +2496,6 @@ namespace validation_layer } auto driver_result = pfnGetExp( hDevice, pCount, phMetricProgrammables ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricProgrammableGetExpEpilogue( hDevice, pCount, phMetricProgrammables ,driver_result); @@ -2557,7 +2503,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phMetricProgrammables) && (i < *pCount); ++i){ if (phMetricProgrammables[i]){ @@ -2566,7 +2512,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2600,7 +2546,6 @@ namespace validation_layer } auto driver_result = pfnGetPropertiesExp( hMetricProgrammable, pProperties ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricProgrammableGetPropertiesExpEpilogue( hMetricProgrammable, pProperties ,driver_result); @@ -2608,10 +2553,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2652,7 +2597,6 @@ namespace validation_layer } auto driver_result = pfnGetParamInfoExp( hMetricProgrammable, pParameterCount, pParameterInfo ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricProgrammableGetParamInfoExpEpilogue( hMetricProgrammable, pParameterCount, pParameterInfo ,driver_result); @@ -2660,10 +2604,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2705,7 +2649,6 @@ namespace validation_layer } auto driver_result = pfnGetParamValueInfoExp( hMetricProgrammable, parameterOrdinal, pValueInfoCount, pValueInfo ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricProgrammableGetParamValueInfoExpEpilogue( hMetricProgrammable, parameterOrdinal, pValueInfoCount, pValueInfo ,driver_result); @@ -2713,10 +2656,10 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2765,7 +2708,6 @@ namespace validation_layer } auto driver_result = pfnCreateFromProgrammableExp2( hMetricProgrammable, parameterCount, pParameterValues, pName, pDescription, pMetricHandleCount, phMetricHandles ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricCreateFromProgrammableExp2Epilogue( hMetricProgrammable, parameterCount, pParameterValues, pName, pDescription, pMetricHandleCount, phMetricHandles ,driver_result); @@ -2773,7 +2715,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phMetricHandles) && (i < *pMetricHandleCount); ++i){ if (phMetricHandles[i]){ @@ -2782,7 +2724,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2831,7 +2773,6 @@ namespace validation_layer } auto driver_result = pfnCreateFromProgrammableExp( hMetricProgrammable, pParameterValues, parameterCount, pName, pDescription, pMetricHandleCount, phMetricHandles ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricCreateFromProgrammableExpEpilogue( hMetricProgrammable, pParameterValues, parameterCount, pName, pDescription, pMetricHandleCount, phMetricHandles ,driver_result); @@ -2839,7 +2780,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phMetricHandles) && (i < *pMetricHandleCount); ++i){ if (phMetricHandles[i]){ @@ -2848,7 +2789,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2900,7 +2841,6 @@ namespace validation_layer } auto driver_result = pfnCreateMetricGroupsFromMetricsExp( hDevice, metricCount, phMetrics, pMetricGroupNamePrefix, pDescription, pMetricGroupCount, phMetricGroup ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetDeviceCreateMetricGroupsFromMetricsExpEpilogue( hDevice, metricCount, phMetrics, pMetricGroupNamePrefix, pDescription, pMetricGroupCount, phMetricGroup ,driver_result); @@ -2908,7 +2848,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ for (size_t i = 0; ( nullptr != phMetricGroup) && (i < *pMetricGroupCount); ++i){ if (phMetricGroup[i]){ @@ -2917,7 +2857,7 @@ namespace validation_layer } } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -2957,7 +2897,6 @@ namespace validation_layer } auto driver_result = pfnCreateExp( hDevice, pName, pDescription, samplingType, phMetricGroup ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCreateExpEpilogue( hDevice, pName, pDescription, samplingType, phMetricGroup ,driver_result); @@ -2965,7 +2904,7 @@ namespace validation_layer } - if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ + if( driver_result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){ if (phMetricGroup){ context.handleLifetime->addHandle( *phMetricGroup ); @@ -2973,7 +2912,7 @@ namespace validation_layer } } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3014,14 +2953,13 @@ namespace validation_layer } auto driver_result = pfnAddMetricExp( hMetricGroup, hMetric, pErrorStringSize, pErrorString ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupAddMetricExpEpilogue( hMetricGroup, hMetric, pErrorStringSize, pErrorString ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3055,14 +2993,13 @@ namespace validation_layer } auto driver_result = pfnRemoveMetricExp( hMetricGroup, hMetric ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupRemoveMetricExpEpilogue( hMetricGroup, hMetric ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3095,14 +3032,13 @@ namespace validation_layer } auto driver_result = pfnCloseExp( hMetricGroup ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupCloseExpEpilogue( hMetricGroup ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3135,14 +3071,13 @@ namespace validation_layer } auto driver_result = pfnDestroyExp( hMetricGroup ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricGroupDestroyExpEpilogue( hMetricGroup ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } /////////////////////////////////////////////////////////////////////////////// @@ -3175,14 +3110,13 @@ namespace validation_layer } auto driver_result = pfnDestroyExp( hMetric ); - auto result = driver_result; for (size_t i = 0; i < numValHandlers; i++) { auto result = context.validationHandlers[i]->zetValidation->zetMetricDestroyExpEpilogue( hMetric ,driver_result); if(result!=ZE_RESULT_SUCCESS) return result; } - return result; + return driver_result; } } // namespace validation_layer From 71bab8e4b9e70de91a232f447109b2d974afce4d Mon Sep 17 00:00:00 2001 From: "Neil R. Spruit" Date: Thu, 14 Nov 2024 15:18:05 -0800 Subject: [PATCH 3/3] Update Copyright Signed-off-by: Neil R. Spruit --- scripts/templates/validation/entry_points.h.mako | 2 +- scripts/templates/validation/valddi.cpp.mako | 2 +- source/layers/validation/common/ze_entry_points.h | 2 +- source/layers/validation/common/zes_entry_points.h | 2 +- source/layers/validation/common/zet_entry_points.h | 2 +- source/layers/validation/ze_valddi.cpp | 2 +- source/layers/validation/zes_valddi.cpp | 2 +- source/layers/validation/zet_valddi.cpp | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/templates/validation/entry_points.h.mako b/scripts/templates/validation/entry_points.h.mako index 5f5007ff..f1eb9751 100644 --- a/scripts/templates/validation/entry_points.h.mako +++ b/scripts/templates/validation/entry_points.h.mako @@ -11,7 +11,7 @@ from templates import helper as th * ***THIS FILE IS GENERATED. *** * See entry_points.h.mako for modifications * - * Copyright (C) 2019-2023 Intel Corporation + * Copyright (C) 2019-2024 Intel Corporation * * SPDX-License-Identifier: MIT * diff --git a/scripts/templates/validation/valddi.cpp.mako b/scripts/templates/validation/valddi.cpp.mako index 1d8d89c1..bc0d7609 100644 --- a/scripts/templates/validation/valddi.cpp.mako +++ b/scripts/templates/validation/valddi.cpp.mako @@ -11,7 +11,7 @@ from templates import helper as th * ***THIS FILE IS GENERATED. *** * See valddi.cpp.mako for modifications * - * Copyright (C) 2019-2023 Intel Corporation + * Copyright (C) 2019-2024 Intel Corporation * * SPDX-License-Identifier: MIT * diff --git a/source/layers/validation/common/ze_entry_points.h b/source/layers/validation/common/ze_entry_points.h index 4f266515..96cdce58 100644 --- a/source/layers/validation/common/ze_entry_points.h +++ b/source/layers/validation/common/ze_entry_points.h @@ -2,7 +2,7 @@ * ***THIS FILE IS GENERATED. *** * See entry_points.h.mako for modifications * - * Copyright (C) 2019-2023 Intel Corporation + * Copyright (C) 2019-2024 Intel Corporation * * SPDX-License-Identifier: MIT * diff --git a/source/layers/validation/common/zes_entry_points.h b/source/layers/validation/common/zes_entry_points.h index 45a2faeb..a9659c3d 100644 --- a/source/layers/validation/common/zes_entry_points.h +++ b/source/layers/validation/common/zes_entry_points.h @@ -2,7 +2,7 @@ * ***THIS FILE IS GENERATED. *** * See entry_points.h.mako for modifications * - * Copyright (C) 2019-2023 Intel Corporation + * Copyright (C) 2019-2024 Intel Corporation * * SPDX-License-Identifier: MIT * diff --git a/source/layers/validation/common/zet_entry_points.h b/source/layers/validation/common/zet_entry_points.h index 1f3a3915..e5c541af 100644 --- a/source/layers/validation/common/zet_entry_points.h +++ b/source/layers/validation/common/zet_entry_points.h @@ -2,7 +2,7 @@ * ***THIS FILE IS GENERATED. *** * See entry_points.h.mako for modifications * - * Copyright (C) 2019-2023 Intel Corporation + * Copyright (C) 2019-2024 Intel Corporation * * SPDX-License-Identifier: MIT * diff --git a/source/layers/validation/ze_valddi.cpp b/source/layers/validation/ze_valddi.cpp index 30addc9b..ea7a838c 100644 --- a/source/layers/validation/ze_valddi.cpp +++ b/source/layers/validation/ze_valddi.cpp @@ -2,7 +2,7 @@ * ***THIS FILE IS GENERATED. *** * See valddi.cpp.mako for modifications * - * Copyright (C) 2019-2023 Intel Corporation + * Copyright (C) 2019-2024 Intel Corporation * * SPDX-License-Identifier: MIT * diff --git a/source/layers/validation/zes_valddi.cpp b/source/layers/validation/zes_valddi.cpp index 6c5d8d89..27107baf 100644 --- a/source/layers/validation/zes_valddi.cpp +++ b/source/layers/validation/zes_valddi.cpp @@ -2,7 +2,7 @@ * ***THIS FILE IS GENERATED. *** * See valddi.cpp.mako for modifications * - * Copyright (C) 2019-2023 Intel Corporation + * Copyright (C) 2019-2024 Intel Corporation * * SPDX-License-Identifier: MIT * diff --git a/source/layers/validation/zet_valddi.cpp b/source/layers/validation/zet_valddi.cpp index 2cf1e7ed..03edaf50 100644 --- a/source/layers/validation/zet_valddi.cpp +++ b/source/layers/validation/zet_valddi.cpp @@ -2,7 +2,7 @@ * ***THIS FILE IS GENERATED. *** * See valddi.cpp.mako for modifications * - * Copyright (C) 2019-2023 Intel Corporation + * Copyright (C) 2019-2024 Intel Corporation * * SPDX-License-Identifier: MIT *