You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to perform a number of operations over ShardedDeviceArrays, and finding that all of them are orders of magnitudes slower than normal DeviceArrays. I posted #6626 about reshaping, but even for simple operations like indexing, the same problem appears.
For example, I want to index a particular row for each device. Simply indexing that row doesn't work - the resulting array is no longer sharded.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to perform a number of operations over ShardedDeviceArrays, and finding that all of them are orders of magnitudes slower than normal DeviceArrays. I posted #6626 about reshaping, but even for simple operations like indexing, the same problem appears.
For example, I want to index a particular row for each device. Simply indexing that row doesn't work - the resulting array is no longer sharded.
Using pmap results in a sharded array, but is extremely slow, hundreds of times slower than normal indexing.
What is the right way to work with arrays on multiple devices?
Beta Was this translation helpful? Give feedback.
All reactions