Dear MTK Support / Developer Center,
I am encountering a Neuron-related Segmentation fault that causes my process to crash while configuring a GAI large model on a Genio 720 (G720) development board, following the official documentation. I would greatly appreciate any troubleshooting advice.
[Hardware & Environment]
-
SoC: MediaTek Genio 720 (G720)
-
Model: Qwen2.5-0.5B
[Steps to Reproduce]
-
Pushed the environment variables and the compiled model to the board as instructed in the documentation.
-
Disabled SELinux restrictions for NPU access (using
setenforce 0and configuring the corresponding policies). -
Executed
./mainfor testing, but the program crashed immediately. I also tried appending the-usdkparameter, but the exact same error persists.
[Error Logs]
1. Application Layer Logs:
Plaintext
ERROR: NeuronCompilation_finish fail [jni/prebuilt/src/executor/neuron_usdk_executor.cpp:179]
ERROR: load dla fail [jni/prebuilt/src/executor/neuron_usdk_executor.cpp:238]
Segmentation fault (core dumped)
2. SoC Runtime & Neuron Version Logs: Based on the system logs, there appears to be a version mismatch between the runtime (NP8) and the adapter being requested (NP9).
Library strings check (libneuron_runtime.so):
Plaintext
X316:/data # strings /vendor/lib64/libneuron_runtime.so | grep -iE 'version|build'
...
/mfs/mtkslt1072/mtk23027/citbuild_np8/2025_02_27/manifest/neuron/NDK_BUILD_TEST/ruy/ruy/kernel_common.h
...
Version: 8.2.19
Logcat AdapterLib check:
Plaintext
139|X316:/data/local/tmp/mtk_llm # logcat -d | grep -iE 'AdapterLib|neuronusdk'
07-11 02:28:53.506 3597 3597 I AdapterLib: Try to open library libneuronusdk_adapter.9.mtk.so
07-11 02:28:53.506 3597 3597 E AdapterLib: Unable to open library libneuronusdk_adapter.9.mtk.so : dlopen failed: library "libneuronusdk_adapter.9.mtk.so" not found
07-11 02:28:53.651 3597 3597 I AdapterLib: Try to open library libneuronusdk_adapter.mtk.so
Could this Segmentation fault and DLA load failure be caused by the application attempting to load an NP9 USDK adapter (libneuronusdk_adapter.9.mtk.so) while the system’s underlying Neuron runtime is NP8 (Version: 8.2.19 / citbuild_np8)?
Thank you in advance for your help!