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 Chou Meng Wai via Apache TVM Discuss <no...@discuss.tvm.ai> on 2021/06/25 11:43:01 UTC
[Apache TVM Discuss] [Application] Cuda is not enable while using
pycharm to remote debug
The code is in the remote server. It can pass if I run a python file in terminal, but if i use pycharm to remote debug, there is an error: target.build.cuda is not enabled
> Traceback (most recent call last):
> File "/disk1/NiCholas/TVMTest/TEOperator/tensor_expr_get_started.py", line 347, in <module>
> fadd = tvm.build(s, [A, B, C], target=tgt_gpu, name="myadd")
> File "/disk1/NiCholas/anaconda3/envs/tvm/lib/python3.7/site-packages/tvm/driver/build_module.py", line 468, in build
> mod_host, mdev = _build_for_device(input_mod, tar, target_host)
> File "/disk1/NiCholas/anaconda3/envs/tvm/lib/python3.7/site-packages/tvm/driver/build_module.py", line 334, in _build_for_device
> rt_mod_dev = codegen.build_module(mod_dev, target) if len(mod_dev.functions) != 0 else None
> File "/disk1/NiCholas/anaconda3/envs/tvm/lib/python3.7/site-packages/tvm/target/codegen.py", line 39, in build_module
> return _ffi_api.Build(mod, target)
> File "tvm/_ffi/_cython/./packed_func.pxi", line 323, in tvm._ffi._cy3.core.PackedFuncBase.__call__
> File "tvm/_ffi/_cython/./packed_func.pxi", line 257, in tvm._ffi._cy3.core.FuncCall
> File "tvm/_ffi/_cython/./packed_func.pxi", line 246, in tvm._ffi._cy3.core.FuncCall3
> File "tvm/_ffi/_cython/./base.pxi", line 163, in tvm._ffi._cy3.core.CALL
> tvm._ffi.base.TVMError: Traceback (most recent call last):
> 2: TVMFuncCall
> 1: std::_Function_handler<void (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), std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}>::_M_invoke(std::_Any_data const&, tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&)
> 0: tvm::codegen::Build(tvm::IRModule, tvm::Target)
> File "/disk1/NiCholas/anaconda3/conda-bld/tvm-package_1624600965814/work/src/target/codegen.cc", line 53
> TVMError:
> ---------------------------------------------------------------
> An error occurred during the execution of TVM.
> For more information, please see: https://tvm.apache.org/docs/errors.html
> ---------------------------------------------------------------
> Check failed: (bf != nullptr) is false: target.build.cuda is not enabled
---
[Visit Topic](https://discuss.tvm.apache.org/t/cuda-is-not-enable-while-using-pycharm-to-remote-debug/10323/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/ef10fd1200cb9b08cc48af6d61be79464b4bea80f74c0080bfdd512426047ecf).
[Apache TVM Discuss] [Questions] Cuda is not enable while using
pycharm to remote debug
Posted by Chou Meng Wai via Apache TVM Discuss <no...@discuss.tvm.ai>.
Should add tvm/python to the paths of interpreter !
---
[Visit Topic](https://discuss.tvm.apache.org/t/cuda-is-not-enable-while-using-pycharm-to-remote-debug/10323/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/5de4e55c70cc9e869b0b3037255442597299270c08c3f42464057525c1ff0ec8).