iree-org / iree

A retargetable MLIR-based machine learning compiler and runtime toolkit.
http://iree.dev/
Apache License 2.0
2.56k stars 571 forks source link

how can I compile target device with RISCV64 IMAF , not RISCV GC #16145

Open unicormbu opened 7 months ago

unicormbu commented 7 months ago

Request description

many risc-v device do not suppout GC , only support part of them, such as IMA , or IMABF , how can i target them through iree compilor?

What component(s) does this issue relate to?

No response

Additional context

No response

debjyoti0891 commented 7 months ago

In addition to the other iree-compile flags, you can pass the cpu related flags like this.

    --iree-hal-target-backends=llvm-cpu \
    --iree-llvm-target-triple=riscv64 \
    --iree-llvm-target-cpu-features=+m,+a,+f,+d,+c \
unicormbu commented 7 months ago

In addition to the other iree-compile flags, you can pass the cpu related flags like this.

    --iree-hal-target-backends=llvm-cpu \
    --iree-llvm-target-triple=riscv64 \
    --iree-llvm-target-cpu-features=+m,+a,+f,+d,+c \

thanks a lot ~ it seems B, Zfinx still not supported