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
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.
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.
On Thu, 7 Feb 2019, Matthew Bentham wrote:
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?
I did exactly as suggested in the tutorial, with the addition of -DBUILD_SAMPLE_APP=1. It goes like this:
cmake .. \ -DARMCOMPUTE_ROOT=$BASEDIR/ComputeLibrary \ -DARMCOMPUTE_BUILD_DIR=$BASEDIR/ComputeLibrary/build \ -DBOOST_ROOT=$BASEDIR/boost \ -DTF_GENERATED_SOURCES=$BASEDIR/tensorflow-protobuf \ -DBUILD_TF_PARSER=1 \ -DPROTOBUF_ROOT=$BASEDIR/protobuf-host \ -DBUILD_TF_LITE_PARSER=1 \ -DTF_LITE_GENERATED_PATH=$BASEDIR/tensorflow/tensorflow/lite/schema \ -DFLATBUFFERS_ROOT=$BASEDIR/flatbuffers \ -DFLATBUFFERS_LIBRARY=$BASEDIR/flatbuffers/libflatbuffers.a \ -DBUILD_SAMPLE_APP=1
The output from that doesn't show any errors.
The other difference with the tutorial is the Boost version that I used: v1.67.0 instead of v1.64.0, as the later gave me some compilation trouble with gcc-8. But I doubt this is the cause of this issue (could it be?).
I just tested on x86-64 as well, with the same result:
$ ./samples/SimpleSample Please enter a number: 42 [2019-02-07 13:00:16.811699] [0x00007fb012592780] [info] ArmNN v20181100 [2019-02-07 13:00:16.813602] [0x00007fb012592780] [warning] ERROR: None of the preferred backends [CpuRef ] are supported. Current platform provides [] Segmentation fault (core dumped)
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.
Yes, I identified those already, but couldn't find anything obvious. I was hoping that someone more familiar with the code would have an immediate answer. I'll keep digging.
Nicolas
Yes, I forgot to mention this is using the latest from https://github.com/Arm-software/armnn.
On Thu, 7 Feb 2019, Matthew Bentham wrote:
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.