# Kernel Compilation error- KernelError: recursion is currently not supported

**URL:** <https://discourse.julialang.org/t/kernel-compilation-error-kernelerror-recursion-is-currently-not-supported/30853>\
**Category:** GPU\
**Created:** [November 8, 2019, 9:25am UTC](https://discourse.julialang.org/t/kernel-compilation-error-kernelerror-recursion-is-currently-not-supported/30853 "2019-11-08T09:25:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [November 8, 2019, 9:30am UTC](https://discourse.julialang.org/t/kernel-compilation-error-kernelerror-recursion-is-currently-not-supported/30853/2 "2019-11-08T09:30:46Z")

</div>

Please format your code using triple backticks. See [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757)

You are allocating a `CuArray` within your kernel, this is unsupported. `CuArray` is a host-side array, you can only pass it to a device kernel.

---

_[View the full topic](https://discourse.julialang.org/t/kernel-compilation-error-kernelerror-recursion-is-currently-not-supported/30853)._
