# Error in Cuda function : ERROR: LoadError: CuError(1, nothing)

**URL:** <https://discourse.julialang.org/t/error-in-cuda-function-error-loaderror-cuerror-1-nothing/26808>\
**Category:** General Usage\
**Tags:** question, cudanative, cuda\
**Created:** [July 25, 2019, 7:20pm UTC](https://discourse.julialang.org/t/error-in-cuda-function-error-loaderror-cuerror-1-nothing/26808 "2019-07-25T19:20:55Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [July 26, 2019, 8:04pm UTC](https://discourse.julialang.org/t/error-in-cuda-function-error-loaderror-cuerror-1-nothing/26808/7 "2019-07-26T20:04:45Z")

</div>

That’s now a _minimal_ example. Please see [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757)

Debugging an issue like this first requires getting rid of as much as code as possible while preserving the error. Doing so would reduce your last kernel to `SegmentsOnElement*segmentlength`, a multiplication if a device array and a scalar. That’s not supported on the GPU (requires allocating a new array).

---

_[View the full topic](https://discourse.julialang.org/t/error-in-cuda-function-error-loaderror-cuerror-1-nothing/26808)._
