ya0guang commented on issue #8439:
URL: https://github.com/apache/tvm/issues/8439#issuecomment-878745630


   > @ya0guang Sorry for the late reply, this app has not been maintained since 
#6862, if you want to make the demo work, it's highly suggested to downgrade 
the version of TVM to `44ff1f3b5ed0751fee39537a0e6e3870a74c930b`, and the demo 
was only tested on LLVM 10.0
   
   Thanks a lot for your reply!
   
   However, the problem still exists after I switch to the specific commit and 
LLVM 10. The Python script doesn't work and complains about "Invalid target". 
Then I checked the source code 
[`src/target/target_id.cc`](https://github.com/apache/tvm/blob/44ff1f3b5ed0751fee39537a0e6e3870a74c930b/src/target/target_id.cc#L351)
 and found that it doesn't accept `target` as an attribute. I add a line, `    
.add_attr_option<String>("target")`, then the script can generate `.o` and `.a` 
files successfully, but the static library was rejected by `wasm-graph`. I 
think this is because the generated library is **ELF 64** rather than WASM 
bytecode, and it cannot be linked to wasi32 `wasm-graph`.
   
   Can you build the project at your end? If you or anyone else in this 
community can give me some advice and finally I build that application, I'll be 
happy to commit a PR and help polish this part. 


-- 
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]


Reply via email to