Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Kernel exception in findfirst #595

Closed
tanhevg opened this issue Feb 18, 2020 · 0 comments · Fixed by #597
Closed

Kernel exception in findfirst #595

tanhevg opened this issue Feb 18, 2020 · 0 comments · Fixed by #597
Labels

Comments

@tanhevg
Copy link

tanhevg commented Feb 18, 2020

MWE:

using CuArrays
xs = cu(rand(10,3,7))
findmin(xs, dims=1)

This simple script blows up with a kernel exception. Logs from running this with julia -g2 are in this gist. This only happens when dims=1, other dims look fine.

The offending code is in findfirst; somehow only the first row of indices is populated; the other two are filled with typemax(Int) after kernel is run.

CuArrays 1.7.2; Julia 1.3.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant