I got this error before. It was caused by LLVM returning a generic target 
triple as the default triple. Indeed TVM asks LLVM for the default target 
triple during compilation and I guess that LLVM has it set to generic and does 
not have a codegen for it.

A fast fix is to specify which triple TVM will use in the target string if you 
target the CPU, or in the target host. It should look like "llvm 
-mtriple=x86_64-unknown-linux" if you use linux. In order to properly fix it 
you may need to change the LLVM library that is linked to TVM as the standard 
LLVM library sets the default triple to your hardware.





---
[Visit 
Topic](https://discuss.tvm.ai/t/error-when-executing-code-targeted-to-opencl/7781/2)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/506a7ea75b70dd0d6ed36db27607a896d575ba03b151e1bb9454fea7895aa940).

Reply via email to