产品 |
是否支持 |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
获取AI Core算子执行的超时时间。
如果AI Core算子永不超时,则timeoutMs参数输出的值为uint32_t的最大值。
1 | aclError aclrtGetOpExecuteTimeout(uint32_t *const timeoutMs) |
参数名 |
输入/输出 |
说明 |
|---|---|---|
timeoutMs |
输出 |
超时时间,单位为毫秒。 若已调用set接口(例如aclrtSetOpExecuteTimeOut)设置过超时时间,则返回硬件的实际超时时间,否则,返回AI Core的默认超时时间。 |
返回0表示成功,返回其他值表示失败,请参见aclError。