Function: get_op_end
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Obtains the operator execution end time (ns).
You are advised to create a thread and call this API in the new thread. Otherwise, this API call will block the main thread.
Prototype
- C Prototype
1uint64_t aclprofGetOpEnd(const void *opInfo, size_t opInfoLen, uint32_t index)
- Python Function
1op_end = acl.prof.get_op_end(op_info, op_info_len, index)
Parameters
Parameter |
Description |
|---|---|
op_info |
Int, specified memory address. |
op_info_len |
Int, length of the operator information. |
index |
Int, operator index. The value range is [0, Operator count – 1]. Call acl.prof.get_op_num to obtain the operator count. |
Return Value
Return Value |
Description |
|---|---|
op_end |
Int, execution end time of the operator. |
Parent topic: Subscribing to Operator Information