C/C++ API for NPU

Currently the NPU SDK consists of Python code for interfacing with the NPU, which we need to get from behind a registration wall via CIX.

In the “NPU SDK User Guide.pdf” document it talks about a C/C++ API for the NPU in section 6.3.

I emailed CIX asking about a C/C++ API for the NPU two weeks ago but did not receive a reply, so I am writing this here for Radxa team to ask CIX about the following;

  1. How can we get access to the C/C++ API for the NPU?

  2. Do they have plans to eventually make the NPU API/SDK’s publicly available on Github for example (like Rockchip do) so we don’t need to go through a registration wall?

2 Likes

The “World’s First Open Source Arm V9 Motherboard” have another closed source component?

How sweet.

1 Like

I found the C APIs descriptions described in the NPU SDK User Guide.pdf.
:nerd_face:
And, I have managed to get the C APIs run with resnet_50 finally following the doc!

My O6 has not arrived yet, so I am gathering the details in preparation.

Where did you get the C header files from?

Also are you able to share your work you did with ResNet?

Sorry to butt in but it’s quite boring how most of your posts are moaning about how not open source the board is. Yes, we know this already, chill out

5 Likes

didn’t you want to step away from the orion until Q4 25?

5 Likes

The header files are under /usr/share/cix/include/npu/ in the rootfs.
And there are also many other xPU header files under /usr/share/cix/include.

1 Like

If you have not grasped the industry paradigm regarding this stuff you need to step back and do an analysis of what is going on.

2 Likes

So the conclusion I take for me that he is p1ssing off everyone here and not just “contributing reasonable doubt” everywhere he can? Good, cleared that up then.
… unicorn … Mars … Wednesdays

2 Likes

the O6 is using armchina’s NPU, the driver is opensource, you can access to the C API by
the opensource UMD https://github.com/Arm-China/Compass_NPU_Driver.git.

2 Likes

I received an email from CIX today about their SDK 25 Q1 release. Its nice to see they have added in some C/C++ examples and explain about NPU core and cluster usage.

1 Like