Open khuongtrinh2 opened 4 months ago
Hi khuongtrinh2,
This is not a configuration we've ever tried and I'm not too familiar with our shim/support library configuration. Looking at the stack trace the seg fault appears to be happening when that code attempts to address a backendin canonical/ArmnnDriver.hpp. What are you setting for ARMNN_SL_OPTIONS environment variable?
Colm.
Hi Colm-in-Arm Thank you for your support, Can you share some configuration you've ever tried? Thank you so much. I set ARMNN_SL_OPTIONS=-c CpuAcc
Hello team, On v23.02, I was trying to support ArmNN AIDL based on a shim over the NNAPI Support Library. Step:
PRODUCT_PACKAGES += android.hardware.neuralnetworks-shim-service-armnn
Create hal_neuralnetworks_armnn.te: type hal_neuralnetworks_armnn, domain; hal_server_domain(hal_neuralnetworks_armnn, hal_neuralnetworks) type hal_neuralnetworks_armnn_exec, exec_type, vendor_file_type, file_type; init_daemon_domain(hal_neuralnetworks_armnn) add_service(hal_neuralnetworks_armnn, armnn_nnapi_service);
Modify service_contexts, add: android.hardware.neuralnetworks.IDevice/google-armnn u:object_r:armnn_nnapi_service:s0
Modify file_contexts, add: /vendor/bin/hw/android.hardware.neuralnetworks-shim-service-armnn u:object_r:hal_neuralnetworks_armnn_exec:s0
After complete these above step, I start hal_neuralnetworks_armnn service and get log crash:
I run /vendor/bin/hw/android.hardware.neuralnetworks-shim-service-armnn and see that my device doesn't have OpenCL library (No support yet)
After, I try disable OpenCL (set
opencl =0, embed_kernels=0
in Compute Library and-DARMCOMPUTECL=0
in Arm NN before build) but it still crashes.Anyone helps me with this issue, Thank you so much.