JieGH commented on issue #17508:
URL: https://github.com/apache/tvm/issues/17508#issuecomment-2470043112
Hi @cbalint13 , thanks for the miracle you bring. It works now. I attached
the target I used here and the version of my time and llvm. I will test the TVM
with a more extensive test later.
Also, I did realize the issue is coming from a flag used for LLVM, yet what
I need is a flag.
Privious error message:
```bash
Unsupported CPU type!
UNREACHABLE executed at
/home/USER/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp:1080!
Aborted
```
**Solution:** enable LLVM’s Orc JIT (On-Request Compilation) engine
```python
target = "llvm -jit=orcjit -mtriple=riscv64-linux-gnu -mcpu=generic-rv64
-mattr=+a,+c,+d,+f,+m"
```
```bash
Target kind: llvm
Target options: {"mtriple": "riscv64-linux-gnu"}
LLVM config path: /usr/local/bin/llvm-config
llc --version output:
LLVM (http://llvm.org/):
LLVM version 19.1.3
Optimized build with assertions.
Default target: riscv64-linux-gnu
Host CPU: generic-rv64
Registered Targets:
riscv32 - 32-bit RISC-V
riscv64 - 64-bit RISC-V
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]