Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Spills" from adjacent views of ROCVector #130

Closed
tkf opened this issue Apr 8, 2021 · 0 comments · Fixed by #131
Closed

"Spills" from adjacent views of ROCVector #130

tkf opened this issue Apr 8, 2021 · 0 comments · Fixed by #131

Comments

@tkf
Copy link
Contributor

tkf commented Apr 8, 2021

With AMDGPU 0.2.5, I get

julia> function f(xs)
           fill!(xs, 0)
           a = @view xs[1:end÷2]
           b = @view xs[end÷2+1:end]
           fill!(a, 1)
           a[1], a[end], b[1], b[end], b[[1, end]]
       end
f (generic function with 1 method)

julia> f(ROCVector{Int}(undef, 2^11))
(1, 1, 1, 1, [0, 0])

julia> f(Vector{Int}(undef, 2^11))
(1, 1, 0, 0, [0, 0])

but I expect b[1] == b[end] == 0. It's also strange that b[[1, end]] is different from [b[1], b[end]].

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 a pull request may close this issue.

1 participant