How to select LLVM Target in Command Line using TVMC?

Hi,

I am having an issue, while I try to compile the resnet50,

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

The LLVM I have is a cross compiler for RISC V. I don’t know why and how I need to explicitly specify the CPU using tvmc to LLVM.

This is duplicated from How to generate LLVM IR using tvmc? - #5 by leandron

1 Like