# Append a custom target for TVM Context

**URL:** <https://discuss.tvm.apache.org/t/append-a-custom-target-for-tvm-context/7925>\
**Category:** RFC\
**Created:** [September 16, 2020, 9:59am UTC](https://discuss.tvm.apache.org/t/append-a-custom-target-for-tvm-context/7925 "2020-09-16T09:59:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![AkhilJ99](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/akhilj99/32/1855_2.png) [@AkhilJ99](https://discuss.tvm.apache.org/u/AkhilJ99)\
**Post date:** [September 17, 2020, 8:01am UTC](https://discuss.tvm.apache.org/t/append-a-custom-target-for-tvm-context/7925/4 "2020-09-17T08:01:08Z")

</div>

> [@comaniac](#):
>
> `https://github.com/apache/incubator-tvm/blob/master/src/target/target_kind.cc` .

Also Once I added the files for for my new target called rsim I got the folowing error

> File “sample\_gpu.py”, line 1, in import tvm File “/home/akhil/Downloads/TVM/tvm/python/tvm/ **init**.py”, line 25, in from .\_ffi.base import TVMError, **version** File “/home/akhil/Downloads/TVM/tvm/python/tvm/\_ffi/ **init**.py”, line 28, in from .base import register\_error File “/home/akhil/Downloads/TVM/tvm/python/tvm/\_ffi/base.py”, line 62, in \_LIB, \_LIB\_NAME = \_load\_lib() File “/home/akhil/Downloads/TVM/tvm/python/tvm/\_ffi/base.py”, line 50, in \_load\_lib lib = ctypes.CDLL(lib\_path[0], ctypes.RTLD\_GLOBAL) File “/usr/lib/python3.6/ctypes/ **init**.py”, line 348, in **init** self.\_handle = \_dlopen(self.\_name, mode) OSError: /home/akhil/Downloads/TVM/tvm/build/libtvm.so: undefined symbol: _ZN3tvm7runtime16RSIMModuleCreateENSt7\_\_cxx1112basic\_stringIcSt11char\_traitsIcESaIcEEES6\_St13unordered\_mapIS6\_NS0\_12FunctionInfoESt4hashIS6\_ESt8equal\_toIS6\_ESaISt4pairIKS6\_S8\_EEES6_

---

_[View the full topic](https://discuss.tvm.apache.org/t/append-a-custom-target-for-tvm-context/7925)._
