You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by chayi via Apache TVM Discuss <no...@discuss.tvm.ai> on 2021/03/10 01:11:24 UTC

[Apache TVM Discuss] [Questions] [conda] [tvm-py] `target.build.llvm` is not enabled


Hi, appreciate your help,

I try to install TVM at conda environment and do the tutorial of " Quick Start Tutorial for Compiling Deep Learning Models". I meet the issue about `target.build.llvm` is not enabled like below:

https://github.com/conda-forge/libtvm-feedstock/issues/7
https://tvm.apache.org/docs/tutorials/get_started/relay_quick_start.html#sphx-glr-tutorials-get-started-relay-quick-start-py
---
...
(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*), tvm::runtime::TypedPackedFunc<tvm::runtime::Module (tvm::IRModule, tvm::Target)>::AssignTypedLambda<tvm::runtime::Module (*)(tvm::IRModule, tvm::Target)>(tvm::runtime::Module (*)(tvm::IRModule, tvm::Target))::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}>::_M_invoke(std::_Any_data const&, tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&)+0x22a) [0x7f37e76cbf8a]
  [bt] (1) /home/chayi/miniconda3/envs/tvm/lib/libtvm.so(tvm::codegen::Build(tvm::IRModule, tvm::Target)+0xd97) [0x7f37e76c7f97]
  [bt] (0) /home/chayi/miniconda3/envs/tvm/lib/libtvm.so(+0x902eff) [0x7f37e76c6eff]
  File "../src/target/codegen.cc", line 58
**TVMError: Check failed: bf != nullptr: target.build.llvm is not enabled**

it seems NOT work by install llvm firstly, such as:
1. conda install llvm
2. conda install tvm-py

I am not sure that the package have some issue, 
anyway, please give some suggestion, thanks.





---
[Visit Topic](https://discuss.tvm.apache.org/t/conda-tvm-py-target-build-llvm-is-not-enabled/9346/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/4a19244f72340f6b363e873f5a15a01eebc1ffaf72d23b62236c133c2c06c540).

[Apache TVM Discuss] [Questions] [conda] [tvm-py] `target.build.llvm` is not enabled

Posted by Teng HUANG via Apache TVM Discuss <no...@discuss.tvm.ai>.

I don't think install from source needs any system privileges, even PYTHON_PATH, you can use export method to make it visible.





---
[Visit Topic](https://discuss.tvm.apache.org/t/conda-tvm-py-target-build-llvm-is-not-enabled/9346/7) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/c0f6bbfadf9dcfab066b26d6b23409721bb9c59dada186e67eadcdb4b2b20951).

[Apache TVM Discuss] [Questions] [conda] [tvm-py] `target.build.llvm` is not enabled

Posted by chayi via Apache TVM Discuss <no...@discuss.tvm.ai>.

seems another way: conda env create --file conda/build-environment.yaml,
i am trying ... ...





---
[Visit Topic](https://discuss.tvm.apache.org/t/conda-tvm-py-target-build-llvm-is-not-enabled/9346/6) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/3809fdf4d359b12b7eac6c3e15649e88836668088386cfe2d8a1dbab5ca7373a).

[Apache TVM Discuss] [Questions] [conda] [tvm-py] `target.build.llvm` is not enabled

Posted by chayi via Apache TVM Discuss <no...@discuss.tvm.ai>.

Thanks, i understand what you mean. Because I am not the supervisor of my company's server, so i use the conda environment and install the package. It seems that current conda package is with this issue.





---
[Visit Topic](https://discuss.tvm.apache.org/t/conda-tvm-py-target-build-llvm-is-not-enabled/9346/5) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/4f69cebb0b8680312b1a265ff7ec5e6d632e0cd5926b9a353fd69efb8570378d).

[Apache TVM Discuss] [Questions] [conda] [tvm-py] `target.build.llvm` is not enabled

Posted by Teng HUANG via Apache TVM Discuss <no...@discuss.tvm.ai>.

no, I mean in cmake.config, set llvm config and recompile libtvm.so from tvm source code.
see https://tvm.apache.org/docs/install/from_source.html#developers-get-source-from-github.
Install tvm from source, and export to PYTHON_PATH, and it will be visible to conda env.





---
[Visit Topic](https://discuss.tvm.apache.org/t/conda-tvm-py-target-build-llvm-is-not-enabled/9346/4) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/02198e63fd99ae8d9422d9b673cdecff202e688ac5b864c75b9a19581726bb46).

[Apache TVM Discuss] [Questions] [conda] [tvm-py] `target.build.llvm` is not enabled

Posted by chayi via Apache TVM Discuss <no...@discuss.tvm.ai>.

I use the way of conda package like below:

conda install -c conda-forge tvm-py

Do you mean that we can "set llvm toolchain during the compilation of libtvm.so" when using the conda install?





---
[Visit Topic](https://discuss.tvm.apache.org/t/conda-tvm-py-target-build-llvm-is-not-enabled/9346/3) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/78ff3cb43865bc112d9ebcd6eb1ffd71914cb4b28352ab80b5d083aa8e30ef1e).

[Apache TVM Discuss] [Questions] [conda] [tvm-py] `target.build.llvm` is not enabled

Posted by Teng HUANG via Apache TVM Discuss <no...@discuss.tvm.ai>.

Have you set llvm toolchain during the compilation of libtvm.so ?





---
[Visit Topic](https://discuss.tvm.apache.org/t/conda-tvm-py-target-build-llvm-is-not-enabled/9346/2) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/2394d5920d23fcbdedb02c58ce5269f35fab1cfb8dce17262e69b6214455eb8b).