mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Add Debug API handlers
Related-To: NEO-4554 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4764cbd9d3
commit
8f87dfaf0c
@@ -5,13 +5,15 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "level_zero/core/source/device/device.h"
|
||||
#include "level_zero/tools/source/debug/debug_handlers.h"
|
||||
#include <level_zero/zet_api.h>
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL
|
||||
zetDeviceGetDebugProperties(
|
||||
zet_device_handle_t hDevice,
|
||||
zet_device_debug_properties_t *pDebugProperties) {
|
||||
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
|
||||
return L0::Device::fromHandle(hDevice)->getDebugProperties(pDebugProperties);
|
||||
}
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL
|
||||
@@ -19,7 +21,7 @@ zetDebugAttach(
|
||||
zet_device_handle_t hDevice,
|
||||
const zet_debug_config_t *config,
|
||||
zet_debug_session_handle_t *phDebug) {
|
||||
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
|
||||
return L0::debugAttach(hDevice, config, phDebug);
|
||||
}
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL
|
||||
|
||||
Reference in New Issue
Block a user