-
Notifications
You must be signed in to change notification settings - Fork 2
[snpe] Configure env var ADSP_LIBRARY_PATH at init
#22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
I added similar patch my end and tested : works well my end Logs like below appear, we can reduce logs if needed? root@Samsung-FamilyHub:/media/SDCardA1/ml-api/snpe-object-detection-yolov8# ** (snpe-object-detection-yolov8-example:9832): DEBUG: 19:42:54.228: ** (snpe-object-detection-yolov8-example:9832): DEBUG: 19:42:54.228: setenv result: 1, ADSP_LIBRARY_PATH=/hal/lib/dsp;/dsp/ ** (snpe-object-detection-yolov8-example:9832): DEBUG: 19:42:54.240: Using path from configuration file: [/hal/lib/dsp;/dsp/] ** (snpe-object-detection-yolov8-example:9832): DEBUG: [ 302.451995@6] adsprpc: fastrpc_mem_map_to_dsp failed. err 0x80000414 fd -1 len 0x19000 ** (snpe-object-detection-yolov8-example:9832): DEBUG: 19:42:54.240: setenv result: 1, ADSP_LIBRARY_PATH=/hal/lib/dsp;/dsp/ ** INFO: 19:42:54.241: SNPE Version: 2.26.0.240827110523_99241 ** (snpe-object-detection-yolov8-example:9832): WARNING **: 19:42:54.241: Unknown option (backend:snpe). [Abha Jaswal (Abha)] 08-26-2025 11:14 above logs also look fine |
e6585e6 to
70b4704
Compare
|
@abhajaswal I removed most logging. PTAL |
- Add functionality to read ADSP library path from configuration file or use default path. - The change includes a helper function to trim strings and a new function to set the ADSP_LIBRARY_PATH environment variable. - This ensures the SNPE backend can properly locate necessary libraries for hardware acceleration. Signed-off-by: Yongjoo Ahn <[email protected]> Co-Authored-By: Abha Jaswal <[email protected]>
70b4704 to
c0dd95f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
LGTM, with and without ini file the test is done on tizen 10.0 image without init: ** INFO: 18:07:29.389: Checking for ADSP_LIBRARY_PATH configuration file: /hal/etc/snpe/dsp/adsp_library_path.ini with ini: root@Samsung-FamilyHub:/media/SDCardA1/ml-api/snpe-object-detection-yolov8# ** INFO: 18:09:50.452: Hello, ML API yolov8 example! ** (snpe-object-detection-yolov8-example:14999): WARNING **: 18:09:50.729: Unknown option (backend:snpe). |
Commit by @abhajaswal
ADSP_LIBRARY_PATHenvironment variable.