armnn icon indicating copy to clipboard operation
armnn copied to clipboard

Error message while executing inference with NPU

Open Rahn80643 opened this issue 2 years ago • 3 comments

Hi,

We adopted two methods to compile our ArmNN inference code, the first method is compiling via Makefile and the other one is via CMakeLists. We logged the execution time from these compiling approaches and compared the results based on the same inference code, test image, and test model, and the logs are shown in the attachment. logs.zip

However, the execution results contain the following error message:

Error: An error occurred attempting to execute a workload: An error has occurred waiting for the inference of a pre-compiled object: Timed out while waiting for the inference to complete

Why does the execution of NPU produce the error above? Since it takes time to reset the status of NPU, how to resolve the issue?

Best Regards

Rahn80643 avatar Jul 28 '22 08:07 Rahn80643

@Rahn80643 you mean erro happend due to different builds, can show the Makefile which generated from CMake.

xiaotongnii avatar Jul 29 '22 02:07 xiaotongnii

Hi @Rahn80643

I haven't seen that error message before, from looking at the EthosN code it occurs when the NPU returns a WaitErrorCode::Timeout but I do not know the situations why that might occur. I think you would be better off asking that question on the NPU GitHub:

https://github.com/ARM-software/ethos-n-driver-stack

The engineers there would be better able to answer this one.

Best regards, Mike

MikeJKelly avatar Aug 02 '22 14:08 MikeJKelly

@Shelton-N,

the attachment is the Makefile generated from CMake

Best Regards, Rahn Makefile_from_CMakeLists.txt

Rahn80643 avatar Aug 03 '22 08:08 Rahn80643

Closing as this issue would be best asked on NPU Github: https://github.com/ARM-software/ethos-n-driver-stack

Regards, Francis.

FrancisMurtagh-arm avatar Jan 04 '23 13:01 FrancisMurtagh-arm