tvm icon indicating copy to clipboard operation
tvm copied to clipboard

TVM with an LLVM Back-end giving error on resnet50

Open kamran-yousafzai opened this issue 3 years ago • 1 comments
trafficstars

Hi, I have been trying to go through the tutorial which helps compile the RESNET50 using an LLVM Back-end. The LLVM Back-end I am using is a cross compiler for RISC-V. So I am trying to generate the assembly for RISC-V from RESNET50. When I try to compile the code using the following command: tvmc compile --target "llvm -march=rv64imv -mcpu=generic-rv64" --output resnet50-v2-7-tvm.tar resnet50-v2-7.onnx It gives the following error: LLVM ERROR: CPU 'generic' is not supported. Use generic-rv64 I have also tried to specify the target using: --target=llvm --target-llvm-mcpu=generic-rv64 But, the error remains the same. The LLVM I am using is only built for RISC-V and I have used it many times so I don't know, where the issue is, but I don't think the issue would be with LLVM.

kamran-yousafzai avatar Apr 11 '22 06:04 kamran-yousafzai

Hi,

I've got the same error as you. My LLVM is also built only for RISC-V. Have you found already a solution for it? Do you know if it is even possible right now?

BR

joschi2804 avatar Sep 12 '22 17:09 joschi2804

Similar issue https://gitlab.freedesktop.org/mesa/mesa/-/issues/7769 . You could eventually try LLVM 15, but the same tests are failing, so not really different except error code.

okias avatar Nov 23 '22 22:11 okias

The error is coming from LLVM.

masahi avatar Dec 08 '22 09:12 masahi