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

Slow permute(view) #367

Closed
maleadt opened this issue Jul 12, 2019 · 0 comments
Closed

Slow permute(view) #367

maleadt opened this issue Jul 12, 2019 · 0 comments
Labels

Comments

@maleadt
Copy link
Member

maleadt commented Jul 12, 2019

Reported on by @merckxiaan on Slack:

using CuArrays

inds = rand(1:100, 150, 150)
x = cu(rand(100, 10))

@time permutedims(view(x, inds, :), (3, 2, 1)) # about 20 seconds
@time permutedims(x[inds, :], (3, 2, 1)) # about 0.001 second
@maleadt maleadt added the bug label Jul 12, 2019
maleadt added a commit that referenced this issue Jul 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant