Skip to content
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

Could not run Programming Examples on HX 370 #1946

Open
ngdymx opened this issue Nov 26, 2024 · 9 comments
Open

Could not run Programming Examples on HX 370 #1946

ngdymx opened this issue Nov 26, 2024 · 9 comments
Assignees
Labels
IRON triaged This has been looked at and triaged

Comments

@ngdymx
Copy link

ngdymx commented Nov 26, 2024

I just bought a beelink SER9 mini pc with HX370 CPU. I have successfully installed the xrt and mlir-aie on it. Here is the output of the xrt-smi examine command:
image

However, when I tried to run the programming examples, I found only the examples with no kernel (passthrough_dmas) could run while all examples with kernels (passthrough_kernel) could not run with the error of std::runtime_error. Also, I found in the AIE Dialect, the supported devices are npu1, npu1_<1, 2, 3, 4>col, and npu2. I tried to used npu2 but it still doesn't work. May I ask how to use all AIE cores in the HX 370? Thanks a lot!

@ngdymx ngdymx changed the title Could not run Programming Examples on MX 370 Could not run Programming Examples on HX 370 Nov 26, 2024
@jgmelber
Copy link
Collaborator

jgmelber commented Dec 2, 2024

Thanks for the interest in running our examples on the latest and greatest hardware. The passthrough example should work with the Makefile in the yet to be merged PR #1879. You are correct to use npu2 for this programming example, and we still need to implement the per column device types.

@jgmelber jgmelber self-assigned this Dec 2, 2024
@jgmelber
Copy link
Collaborator

jgmelber commented Dec 4, 2024

#1952

@ngdymx
Copy link
Author

ngdymx commented Dec 5, 2024

Thanks, I will try it.

@jgmelber
Copy link
Collaborator

jgmelber commented Dec 6, 2024

This enabled some examples, more to follow soon. Thanks for trying!

@ngdymx
Copy link
Author

ngdymx commented Dec 15, 2024

Hi @jgmelber,

I reinstall the environment, and run the xrt-smi examine can get the RyzenAI-npu4.

image

Then I try to run the example under programming_examples/basic. But, I get an error shown in the following figure. What should I do now? Could you help me with it? Thanks!

image

@jgmelber
Copy link
Collaborator

Only some of the programming examples are enabled at this time. Which are you trying?

Can you also share the version of xchesscc you have installed? You will need the version from the early access release of the Ryzen AI Software 1.3: Vitis AIE Essentials.

It looks like you're using the Peano compiler in this example, the version of AIE in Strix laptops is not currently supported with that single core compiler.

@ngdymx
Copy link
Author

ngdymx commented Dec 15, 2024

Hi @jgmelber,

Thanks!

I was running the programming_examples/basic/passthrough_dmas, changing the dev under passthrough_dmas_alt.py to npu2 and the corresponding Makefile.

The version of xchesscc is U-2022.12#3eec2545bc#230622.

image

About Install AIETools part, I am doing the Option B. I will change to the option A.

image

Can you tell me which example can work on Strix successfully? Thanks!

@ngdymx
Copy link
Author

ngdymx commented Dec 15, 2024

Hi @jgmelber,

I am attempting to download Vitis™ AIE Essentials from the [Ryzen AI Software 1.3 Early Access] site, but I am prompted to obtain approval through the Ryzen AI Software Early Access Secure Site Request.

I submitted this request previously but have not yet received a response. Could you suggest a way to proceed?

Thank you for your assistance.

@jgmelber
Copy link
Collaborator

You should have access to the EA site now.

@jgmelber jgmelber added triaged This has been looked at and triaged IRON labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IRON triaged This has been looked at and triaged
Projects
None yet
Development

No branches or pull requests

2 participants