mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 08:37:12 +08:00
feature: Add introspection APIs for cmdqueue
Added entrypoints for zeCommandQueueGetOrdinal and zeCommandQueueGetIndex and implemented getOrdinal and getIndex in command queue. Related-To: NEO-10265 Signed-off-by: Yoon, Young Jin <young.jin.yoon@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9b649c1582
commit
7b12735ade
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -356,4 +356,14 @@ void CommandQueueImp::makeResidentAndMigrate(bool performMigration, const NEO::R
|
||||
}
|
||||
}
|
||||
|
||||
ze_result_t CommandQueueImp::getOrdinal(uint32_t *pOrdinal) {
|
||||
*pOrdinal = desc.ordinal;
|
||||
return ZE_RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
ze_result_t CommandQueueImp::getIndex(uint32_t *pIndex) {
|
||||
*pIndex = desc.index;
|
||||
return ZE_RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
} // namespace L0
|
||||
|
||||
Reference in New Issue
Block a user