# CuArray find first negative value along columns

**URL:** <https://discourse.julialang.org/t/cuarray-find-first-negative-value-along-columns/45012>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [August 15, 2020, 9:21pm UTC](https://discourse.julialang.org/t/cuarray-find-first-negative-value-along-columns/45012 "2020-08-15T21:21:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [August 15, 2020, 11:06pm UTC](https://discourse.julialang.org/t/cuarray-find-first-negative-value-along-columns/45012/2 "2020-08-15T23:06:34Z")

</div>

I think you can / should do this by writing a kernel similar to [CUDA.findfirst](https://github.com/JuliaGPU/CUDA.jl/blob/f2ee969226759fc15c8092dcd180f155f7305269/src/indexing.jl#L96).

---

_[View the full topic](https://discourse.julialang.org/t/cuarray-find-first-negative-value-along-columns/45012)._
