If you use llvm as your codegenerator, it will not generate double-float object 
file for riscv, I don't know why, but it can't, even though you add 
`-mfloat-abi=hard`, the workaround is
save the code as a text assembly code and then call your cross compiler to 
generate object file.

for example
``` python
fadd = tvm.build(s, [A, B, C], tgt, name="myadd")
from tvm.contrib import cc
path = "lib/riscv.so"
fadd.save("lib/riscv.s")
cc.create_shared(path, ["lib/riscv.s"], cc="riscv64-unknown-linux-gnu-g++")
```





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/using-llvm-target-for-riscv-incompatibility-error/10393/3)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/dbd7e0166e123c1a098b0976e4558aa822cd5570031513c0cd7e0a01a1bd380e).

Reply via email to