Closed jylee256 closed 2 years ago
Hi @jylee256
Could you please share the details of the toolchain used to build ArmNN & ACL?
Have you experienced the same issue on different devices?
Have you experienced the same problem with v21.11?
@morgolock We use the build toolchain 'arm-starfishmllib32-linux-gnueabi-gcc (GCC) 9.3.0' which is maybe based on arm-linux-gnueabi-gcc. I couldn't test it on different devices, but it didn't happen when I turned off the ARMCOMPUTECL option on the same device. It also happened when I built with the ARMCOMPUTECL option on, even if I didn't register the cl backend on the backend registry while modifying the ClRegistryInitialize.cpp file. (src/backends/cl/ClRegistryInitialize.cpp)
Hi @morgolock When I upgrade it to v21.11, this problem is not shown. So I'll close it now. Thanks.
@jylee256 where can I find "arm-starfishmllib32-linux-gnueabi-gcc" ?
Hi, I found this fault issue after armnn & ACL was built with the option ARMCOMPUTECL and opencl ON. (It didn't happen until I turn on the opencl options.) When I run the unit test, it works well, and then exits with the fault error, "double free or corruption (!prev)"
/usr/bin/lib32-armnn-21.05 # ./UnitTests
Running 4300 test cases...
....
*** 33 failures are detected in the test module "UnitTests"
double free or corruption (!prev)
Aborted
[2]+ Segmentation fault
It is same when I run the tensorflow lite benchmark tool test with CpuAcc backends or GpuAcc backends, like that, (https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/benchmark)
when I debug it with gdb, it looks like fail on program exit time after all inference is done well, and it is also the same 'double free or corruption error' as the unittest error.
I use the armnn v21.05, and the build flag options when I add are just like that,
-DARMCOMPUTECL=1
-DFLATC=${STAGING_BINDIR_NATIVE}/flatc
-DOPENCL_INCLUDE=${STAGING_INCDIR}
The inference doesn't have any problem, it is well done, but the problem happens when the program exits. and I found the similar issue in this sites, so i think it is not my own fault.... https://github.com/ARM-software/armnn/issues/55
Could you help this issue, please?