Hi Nicolas,
I just tried running SimpleSample on armv8a with NEON and it worked OK for me. Can you post your cmake command line to see if anything is looking suspicious?
To give you a hint where to start debugging, I'd be looking at BackendSettings::Initialize and BackendSettings::GetAvailablePreferredBackends where it gets the list of currently available backends and intersects it with the list of requested backends.
Hope that helps,
Matthew
________________________________ From: Armnn-dev armnn-dev-bounces@lists.linaro.org on behalf of Matthew Bentham Matthew.Bentham@arm.com Sent: 07 February 2019 09:20:15 To: nicolas.pitre@linaro.org; armnn-dev@lists.linaro.org Subject: Re: [Armnn-dev] SimpleSample.cpp results in segmentation fault
Hi Nicolas,
That's not supposed to happen! With the way it's currently set up, the CpuRef backend should always be present, and it's just written in C++ so it can't be 'unsupported'.
Was this with a master revision? It might be a recent regression.
All the best,
Matthew
________________________________ From: Armnn-dev armnn-dev-bounces@lists.linaro.org on behalf of Nicolas Pitre nicolas.pitre@linaro.org Sent: 06 February 2019 22:18:52 To: armnn-dev@lists.linaro.org Subject: [Armnn-dev] SimpleSample.cpp results in segmentation fault
I followed the instructions here:
https://developer.arm.com/technologies/machine-learning-on-arm/developer-mat...
Both ArmCL and ArmNN are configured for arm64-v8a and neon.
I ran the UnitTests program which reported:
Running 842 test cases... *** No errors detected
However, when testing with SimpleSample.cpp, I get this:
Please enter a number: 42 [2019-02-06 17:11:57.624459] [0x0000ffffa612a000] [info] ArmNN v20181100 [2019-02-06 17:11:57.624661] [0x0000ffffa612a000] [warning] ERROR: None of the preferred backends [CpuRef ] are supported. Current platform provides [] Segmentation fault
It isn't clear to me what might be wrong by looking at the source code.
Any hint would be appreciated.
Nicolas _______________________________________________ Armnn-dev mailing list Armnn-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/armnn-dev IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ Armnn-dev mailing list Armnn-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/armnn-dev IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.