# Use TVM for TI DSP

**URL:** <https://discuss.tvm.apache.org/t/use-tvm-for-ti-dsp/1200>\
**Category:** Application\
**Created:** [November 23, 2018, 11:56pm UTC](https://discuss.tvm.apache.org/t/use-tvm-for-ti-dsp/1200 "2018-11-23T23:56:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jianjun](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/jianjun/32/411_2.png) [@jianjun](https://discuss.tvm.apache.org/u/jianjun)\
**Post date:** [November 23, 2018, 11:56pm UTC](https://discuss.tvm.apache.org/t/use-tvm-for-ti-dsp/1200/1 "2018-11-23T23:56:26Z")

</div>

Hello geeks, first time here.  
I am learning TVM now and I am working on a TI DSP with two c66x cores.I have seen that TVM can generate souce code for CUDA/OpenCL, so I am wondering if I could extend this to generate optimized c66x souce code, which use “#Pragma roll/iterate before the for loop” and “restrict keyword before the variable” to accelerate the loops. Would you give me some suggestions?

---

<div class="post-metadata">

**Author:** ![merrymercy](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/merrymercy/32/2150_2.png) [@merrymercy](https://discuss.tvm.apache.org/u/merrymercy)\
**Post date:** [November 25, 2018, 9:03am UTC](https://discuss.tvm.apache.org/t/use-tvm-for-ti-dsp/1200/2 "2018-11-25T09:03:21Z")

</div>

You can start by looking the codegen for some backends, such as opencl (already uses \_restrict), HLS (uses pragma).

> <https://github.com/dmlc/tvm/blob/master/src/codegen/codegen_opencl.cc>

> <https://github.com/dmlc/tvm/blob/master/src/codegen/codegen_vhls.cc>

---

<div class="post-metadata">

**Author:** ![jianjun](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/jianjun/32/411_2.png) [@jianjun](https://discuss.tvm.apache.org/u/jianjun)\
**Post date:** [November 26, 2018, 12:37am UTC](https://discuss.tvm.apache.org/t/use-tvm-for-ti-dsp/1200/3 "2018-11-26T00:37:34Z")

</div>

Thank you for your reply.

I will try to implement it.

---

<div class="post-metadata">

**Author:** ![briantse](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/b/3da27b/32.png) [@briantse](https://discuss.tvm.apache.org/u/briantse)\
**Post date:** [May 6, 2019, 1:14am UTC](https://discuss.tvm.apache.org/t/use-tvm-for-ti-dsp/1200/4 "2019-05-06T01:14:52Z")

</div>

@jianjun, hi, TVM supports the TI DSP such as TDA2X?

---

<div class="post-metadata">

**Author:** ![LanTn](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/lantn/32/672_2.png) [@LanTn](https://discuss.tvm.apache.org/u/LanTn)\
**Post date:** [May 8, 2019, 1:15am UTC](https://discuss.tvm.apache.org/t/use-tvm-for-ti-dsp/1200/5 "2019-05-08T01:15:40Z")

</div>

hi,I am using TVM to support a DSP similar to TI architecture，but i dont know how to implement it；so I would like to ask you something about it and ask for help，if you have time ，please reply me，Thanks

---

<div class="post-metadata">

**Author:** ![jianjun](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/jianjun/32/411_2.png) [@jianjun](https://discuss.tvm.apache.org/u/jianjun)\
**Post date:** [May 21, 2019, 2:12pm UTC](https://discuss.tvm.apache.org/t/use-tvm-for-ti-dsp/1200/6 "2019-05-21T14:12:03Z")

</div>

I don’t think so, you have to extend by yourself.

---

<div class="post-metadata">

**Author:** ![jianjun](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/jianjun/32/411_2.png) [@jianjun](https://discuss.tvm.apache.org/u/jianjun)\
**Post date:** [May 22, 2019, 2:01am UTC](https://discuss.tvm.apache.org/t/use-tvm-for-ti-dsp/1200/7 "2019-05-22T02:01:54Z")

</div>

I didn’t implement one neither.

---

<div class="post-metadata">

**Author:** ![tico](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/t/a88e57/32.png) [@tico](https://discuss.tvm.apache.org/u/tico)\
**Post date:** [January 20, 2020, 3:10pm UTC](https://discuss.tvm.apache.org/t/use-tvm-for-ti-dsp/1200/8 "2020-01-20T15:10:30Z")

</div>

Hi,

Is there any update on support for TI DSPs or guidelines to extend TVM code gen for new targets?

Thanks
