# Cuda kernel error

**URL:** <https://discourse.julialang.org/t/cuda-kernel-error/31876>\
**Category:** New to Julia\
**Tags:** gpu\
**Created:** [December 4, 2019, 10:41pm UTC](https://discourse.julialang.org/t/cuda-kernel-error/31876 "2019-12-04T22:41:45Z")\
**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:** [December 6, 2019, 5:13pm UTC](https://discourse.julialang.org/t/cuda-kernel-error/31876/2 "2019-12-06T17:13:28Z")

</div>

> [@henry2004y](#):
>
> ERROR: a exception was thrown during kernel execution. Run Julia on debug level 2 for device stack traces.

To see the actual error, and stack trace, you need to follow the suggestion: start Julia on debug level 2, e.g., `julia -g2 my_script.jl` or just `julia -g2` to get a REPL. The reason is that these messages and traces are embedded in the generated code (we don’t have stack unwinding), and thus have a fairly large cost in performance.

---

_[View the full topic](https://discourse.julialang.org/t/cuda-kernel-error/31876)._
