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

CuArrays can lose Blas on reshaped views #78

Closed
ChrisRackauckas opened this issue May 19, 2020 · 1 comment · Fixed by #450
Closed

CuArrays can lose Blas on reshaped views #78

ChrisRackauckas opened this issue May 19, 2020 · 1 comment · Fixed by #450
Labels
bug Something isn't working cuda array Stuff about CuArray.

Comments

@ChrisRackauckas
Copy link
Member

using CuArrays
CuArrays.allowscalar(false)
inn = 784; out = 32
p = randn(784*100) |> gpu
x = rand(Float32, 784, 100) |> gpu
p[reshape(1:(out*inn),out,inn)] * x
@view(p[reshape(1:(out*inn),out,inn)]) * x

Note that this now works in Julia Base on v1.5 because of @mbauman JuliaLang/julia#34729

@vchuravy
Copy link
Member

Yeah, two layers of abstraction is where things start to break and we stop defining definitions due to combinatorial explosion

@maleadt maleadt transferred this issue from JuliaGPU/CuArrays.jl May 27, 2020
@maleadt maleadt added bug Something isn't working cuda array Stuff about CuArray. labels May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cuda array Stuff about CuArray.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants