Skip to content

Conversation

@maleadt
Copy link
Member

@maleadt maleadt commented Sep 3, 2025

Otherwise:

julia> while true
           x = rand(Float32, 1000)
           Is = rand(1:1000, 2)
           x[Is] .= NaN
           if !isequal(findmin(x), findmin(CuArray(x)))
               @show Is
               @show findmin(x)
               @show findmin(CuArray(x))
               break
           end
       end
Is = [734, 990]
findmin(x) = (NaN32, 734)
findmin(CuArray(x)) = (NaN32, 990)

@maleadt maleadt merged commit 7582269 into master Sep 3, 2025
12 of 16 checks passed
@maleadt maleadt deleted the tb/findminmax_nan branch September 3, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants