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

How to add a new backend to onnx-mlir RISC-V? #2824

Open
xysxs opened this issue May 13, 2024 · 3 comments
Open

How to add a new backend to onnx-mlir RISC-V? #2824

xysxs opened this issue May 13, 2024 · 3 comments

Comments

@xysxs
Copy link

xysxs commented May 13, 2024

Can I use the riscv toolchain to build this project so that I can generate a static library for the riscv architecture?

@AlexandreEichenberger
Copy link
Collaborator

This compiler use the LLVM backend, so you should be able to use it to gen riskv objects. We currently target Z, PPC, x86 linux/windows, arm64(macOS). So we have quite a bit of coverage already, but we do not have RISC-V machines so we have not tried it.

Let us know how this works for you.

@AlexandreEichenberger
Copy link
Collaborator

@xysxs can we close this issue? Is it working for you?

@SerodioJ
Copy link

SerodioJ commented Nov 29, 2024

Hi everyone,
I am trying to generate RISC-V code as well.
I was able to do it by building LLVM with RISC-V support, but one thing that I didn't discover is how to pass which extensions to use and ABI to follow when running onnx-mlir.

@AlexandreEichenberger would you have any tips on how to do so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants