Ethos-u delegate

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ethos-u delegate

6,101 Views
Mohan51
Contributor II

Hi, I am using IMX93 board and i want to run my object detection model on NPU.for that i need libethosu.so delegate..how to create that delegate.Previously I created Vx delegate for IMX8M family processors by following Machine learning guide(https://www.nxp.com/docs/en/user-guide/IMX-MACHINE-LEARNING-UG.pdf). but i am unable to build ethos-u delegate..could you please assist me.

0 Kudos
Reply
9 Replies

6,074 Views
Mohan51
Contributor II

Hi @Manuel_Salas ..i didn't found any libethosu_delegate.so in your latest BSP under /usr/lib ..i.e Linux6.6.3_1.0.0

0 Kudos
Reply

6,072 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @Mohan51 

 

Could you please double check? This is from the i.MX93EVK and BSP 6.6.3:

 

root@imx93evk:~# uname -a
Linux imx93evk 6.6.3-lts-next-gccf0a99701a7 #1 SMP PREEMPT Thu Feb 29 08:37:44 UTC 2024 aarch64 GNU/Linux
root@imx93evk:~# ls /usr/lib/ |grep libethosu_delegate
libethosu_delegate.so
root@imx93evk:~# 

 

Best regards.

 

Salas.

0 Kudos
Reply

37 Views
bighero77
Contributor III

hi,   salas
       would you please tell me how to find the c/c++ code to use ethosu delegate?
       my boss do not like use objection dection(on ethosu delegate ) by python.
       can I get the C/C++ code to do this job (with ethosu delegate )
       or, 
        in fact.  up to now , we cannot drive ethosu delegate by c/c++
    

0 Kudos
Reply

6,038 Views
Mohan51
Contributor II

@Manuel_Salas  I didn't found any libethosu_delegate in /usr/lib.I am attaching the output for your reference.

0 Kudos
Reply

6,034 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @Mohan51 

 

Did you flashed the full image from our official BSP?

 

Best regards.

Salas.

0 Kudos
Reply

6,032 Views
Mohan51
Contributor II

@Manuel_Salas yes I flashed the full image.and i downloaded the image from this url(https://www.nxp.com/webapp/sps/download/license.jsp?colCode=L6.6.3_1.0.0_MX93&appType=file1&DOWNLOAD...) i.e IMX93 EVK QSB.

0 Kudos
Reply

6,029 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

@Mohan51 I downloaded the same image as you and I did this procedure:

In the directory you will find these files:

Alejandro_Salas_1-1713982706956.pngAlejandro_Salas_1-1713982706956.png

To flash the full image you can set the command:

$sudo uuu -b emmc_all imx-boot-imx93evk-sd.bin-flash_singleboot imx-image-full-imx93evk.wic

 

Alejandro_Salas_2-1713982759452.pngAlejandro_Salas_2-1713982759452.png

 

 

Boot the board.

 

Finally:

Alejandro_Salas_0-1713982292432.pngAlejandro_Salas_0-1713982292432.png

 

Best regards.

 

Salas.

0 Kudos
Reply

6,026 Views
Mohan51
Contributor II

@Manuel_Salas ok will try to install the same and get back to you asap..Thank you

6,069 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @Mohan51 

 

In i.MX93 you need the libethosu_delegate.so, that is included in our official BSP, under /usr/lib.

I hope this can helps to you.

 

Best regards.

 

Salas.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1852478%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEthos-u%20delegate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1852478%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20I%20am%20using%20IMX93%20board%20and%20i%20want%20to%20run%20my%20object%20detection%20model%20on%20NPU.for%20that%20i%20need%20libethosu.so%20delegate..how%20to%20create%20that%20delegate.Previously%20I%20created%20Vx%20delegate%20for%20IMX8M%20family%20processors%20by%20following%20Machine%20learning%20guide(%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FIMX-MACHINE-LEARNING-UG.pdf)%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FIMX-MACHINE-LEARNING-UG.pdf)%3C%2FA%3E.%20but%20i%20am%20unable%20to%20build%20ethos-u%20delegate..could%20you%20please%20assist%20me.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2408771%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Ethos-u%20delegate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2408771%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%2C%26nbsp%3B%26nbsp%3B%20salas%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3Bwould%20you%20please%20tell%20me%20how%20to%20find%20the%20c%2Fc%2B%2B%20code%20to%20use%20ethosu%20delegate%3F%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bmy%20boss%20do%20not%20like%20use%20objection%20dection(on%20ethosu%20delegate%20)%20by%20python.%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bcan%20I%20get%20the%20C%2FC%2B%2B%20code%20to%20do%20this%20job%20(with%20ethosu%20delegate%20)%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bor%2C%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20in%20fact.%26nbsp%3B%20up%20to%20now%20%2C%20we%20cannot%20drive%20ethosu%20delegate%20by%20c%2Fc%2B%2B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1853808%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Ethos-u%20delegate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1853808%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203368%22%20target%3D%22_blank%22%3E%40Manuel_Salas%3C%2FA%3E%26nbsp%3Bok%20will%20try%20to%20install%20the%20same%20and%20get%20back%20to%20you%20asap..Thank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1853689%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Ethos-u%20delegate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1853689%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F230196%22%20target%3D%22_blank%22%3E%40Mohan51%3C%2FA%3E%26nbsp%3BI%20downloaded%20the%20same%20image%20as%20you%20and%20I%20did%20this%20procedure%3A%3C%2FP%3E%0A%3CP%3EIn%20the%20directory%20you%20will%20find%20these%20files%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alejandro_Salas_1-1713982706956.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alejandro_Salas_1-1713982706956.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F275611iFB9247F3386733D5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alejandro_Salas_1-1713982706956.png%22%20alt%3D%22Alejandro_Salas_1-1713982706956.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAlejandro_Salas_1-1713982706956.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAlejandro_Salas_1-1713982706956.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20flash%20the%20full%20image%20you%20can%20set%20the%20command%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%24sudo%20uuu%20-b%20emmc_all%20imx-boot-imx93evk-sd.bin-flash_singleboot%20imx-image-full-imx93evk.wic%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alejandro_Salas_2-1713982759452.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alejandro_Salas_2-1713982759452.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F275612i0FFAD3DFB926EB36%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alejandro_Salas_2-1713982759452.png%22%20alt%3D%22Alejandro_Salas_2-1713982759452.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAlejandro_Salas_2-1713982759452.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAlejandro_Salas_2-1713982759452.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBoot%20the%20board.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EFinally%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alejandro_Salas_0-1713982292432.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alejandro_Salas_0-1713982292432.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F275610i6E2524F3A2C2CC3D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alejandro_Salas_0-1713982292432.png%22%20alt%3D%22Alejandro_Salas_0-1713982292432.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAlejandro_Salas_0-1713982292432.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAlejandro_Salas_0-1713982292432.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ESalas.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1853622%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Ethos-u%20delegate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1853622%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203368%22%20target%3D%22_blank%22%3E%40Manuel_Salas%3C%2FA%3E%26nbsp%3Byes%20I%20flashed%20the%20full%20image.and%20i%20downloaded%20the%20image%20from%20this%20url(%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2Fsps%2Fdownload%2Flicense.jsp%3FcolCode%3DL6.6.3_1.0.0_MX93%26amp%3BappType%3Dfile1%26amp%3BDOWNLOAD_ID%3Dnull%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fwebapp%2Fsps%2Fdownload%2Flicense.jsp%3FcolCode%3DL6.6.3_1.0.0_MX93%26amp%3BappType%3Dfile1%26amp%3BDOWNLOAD_ID%3Dnull%3C%2FA%3E)%20i.e%20IMX93%20EVK%20QSB.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1853615%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Ethos-u%20delegate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1853615%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F230196%22%20target%3D%22_blank%22%3E%40Mohan51%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EDid%20you%20flashed%20the%20full%20image%20from%20our%20official%20BSP%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards.%3C%2FP%3E%0A%3CP%3ESalas.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1853011%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Ethos-u%20delegate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1853011%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203368%22%20target%3D%22_blank%22%3E%40Manuel_Salas%3C%2FA%3E%26nbsp%3B%20I%20didn't%20found%20any%20libethosu_delegate%20in%20%2Fusr%2Flib.I%20am%20attaching%20the%20output%20for%20your%20reference.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1852807%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Ethos-u%20delegate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1852807%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F230196%22%20target%3D%22_blank%22%3E%40Mohan51%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ECould%20you%20please%20double%20check%3F%20This%20is%20from%20the%20i.MX93EVK%20and%20BSP%206.6.3%3A%3C%2FP%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eroot%40imx93evk%3A~%23%20uname%20-a%0ALinux%20imx93evk%206.6.3-lts-next-gccf0a99701a7%20%231%20SMP%20PREEMPT%20Thu%20Feb%2029%2008%3A37%3A44%20UTC%202024%20aarch64%20GNU%2FLinux%0Aroot%40imx93evk%3A~%23%20ls%20%2Fusr%2Flib%2F%20%7Cgrep%20libethosu_delegate%0Alibethosu_delegate.so%0Aroot%40imx93evk%3A~%23%20%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EBest%20regards.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ESalas.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1852744%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Ethos-u%20delegate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1852744%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBLOCKQUOTE%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203368%22%20target%3D%22_blank%22%3E%40Manuel_Salas%3C%2FA%3E%26nbsp%3B..i%20didn't%20found%20any%20libethosu_delegate.so%20in%20your%20latest%20BSP%20under%20%2Fusr%2Flib%20..i.e%20Linux%3CSTRONG%3E6.6.3_1.0.0%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1852741%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Ethos-u%20delegate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1852741%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F230196%22%20target%3D%22_blank%22%3E%40Mohan51%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EIn%20i.MX93%20you%20need%20the%26nbsp%3B%3CSPAN%3Elibethosu_delegate.so%2C%20that%20is%20included%20in%20our%20official%20BSP%2C%20under%20%2Fusr%2Flib.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EI%20hope%20this%20can%20helps%20to%20you.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3EBest%20regards.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3ESalas.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E