Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile android-nn-driver 21.08 #18

Open
justeph opened this issue Nov 8, 2021 · 0 comments
Open

Cannot compile android-nn-driver 21.08 #18

justeph opened this issue Nov 8, 2021 · 0 comments

Comments

@justeph
Copy link

justeph commented Nov 8, 2021

Hi,
I am not able to compile android-nn-driver 21.08, here is the error I get:

ArmnnPreparedModel_1_2.cpp:722:31: error: no matching function for call to 'MicrosecondsDuration'
        timing.timeOnDevice = MicrosecondsDuration(timeTaken.second, timeTaken.first);
                              ^~~~~~~~~~~~~~~~~~~~
ArmnnPreparedModel_1_2.cpp:38:15: note: candidate function not viable: no known conversion from 'time_point<std::chrono::system_clock, [...]>' to 'time_point<std::chrono::steady_clock, [...]>' for 1st argument
unsigned long MicrosecondsDuration(TimePoint endPoint, TimePoint startPoint)

At line 700 we can see that timeTaken is of type armnn::InferenceTimingPair which is defined such as:

using HighResolutionClock = std::chrono::high_resolution_clock::time_point;
using InferenceTimingPair = std::pair<HighResolutionClock, HighResolutionClock>;

inside armnn v21.08

while timepoint is defined as

using TimePoint = std::chrono::steady_clock::time_point;

inside ArmnnPreparedModel_1_2.cpp line 31

I am not a c++ expert, so maybe there is a magical option I can use to make this work? I am cross compiling using clang

I can work an a patch if needed.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant