apache / tvm

Open deep learning compiler stack for cpu, gpu and specialized accelerators
https://tvm.apache.org/
Apache License 2.0
11.44k stars 3.41k forks source link

[Tracking Issue] Scalable Vector Extension (SVE) upstreaming #16455

Open ekalda opened 5 months ago

ekalda commented 5 months ago

This issue is to track progress for SVE upstreaming

MrJungle1 commented 2 months ago

@ekalda Hello! I used the latest code and when I tried relay.build(mod, target=target, params=params), I encountered the following error, TVMError: Can't fetch the lanes of a scalable vector at a compile time. Please tell me how to solve it

ekalda commented 2 months ago

Hi @MrJungle1, yes that sounds like a problem related to the SVE implementation. Can you tell me more about what is in the mod and what is the target you are compiling for? This error is triggered when we try to do a.lanes() for a an object a which dtype is a scalable vector (we should do a.vscale_factor() in this case instead). This error can be triggered from many places in the codebase, so the stack trace that accompanies the error would help to diagnose it.

MrJungle1 commented 2 months ago

@ekalda Hello, thank you for your reply. My model is an onnx model converted from HIFIGAN. target = "llvm -mtriple=arm64-linux-android -mattr=+neon"

ekalda commented 2 months ago

Could you provide a stack trace?