-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Update for julia-0.7 #156
Update for julia-0.7 #156
Conversation
Thanks. I might try to continue from here. |
Various other fixes
This caught some additional deprecations.
This fixes (works around?) `localpart` getting dispatched wrongly on the workers. No idea why.
It has been dropped from Base.
All mapreduce tests passing.
Note: (map)reducedim probably currently falls back to the method for AbstractArray.
This fixes extreme slowness of convert(Array, ::DArray) which was falling back to the generic constructor from AbstractArray.
There was a leftover get from the Nullable times. This should cause an exception, but resulted in a deadlock. Julia bug?
All tests pass without deprecation warnings now.
- update compatibility status - update example code Also, remove superfluous method for mapreduce.
`deepcopy(::DArray)` calls `similar` and deepcopies the localparts. Tests to ensure that `copy` makes a shadllow copy and `deepcopy` makes a deep copy.
indexing and some other cleanup.
I think I've now managed to fix all the cases that hit the slow fallbacks and are covered by tests. The tests now set |
This change makes DistributedArrays work on julia 0.7, but compatibility with 0.6 is lost. All tests pass without deprecation warnings.
There are many minor syntax/library changes, and the following major changes:
broadcast
implementation has been rewritten. The basic strategy is to rewrite theBroadcasted
object into its equivalent for the localparts. This will probably only work if all involved arrays are distributed in a "compatible" way. More work is needed to make it fully general.localindexes
renamed tolocalindices
, reflecting the current convention in Julia.deepcopy(::DArray)
added.importall Base
was removed.Note that there seems to be an obscure issue in Julia which one currently has to work around by calling
using DistributedArrays
on the master process before calling@everywhere using DistributedArrays
.Calls to
reduce
andmapreduce
with thedims
keyword (which replace thereducedim
andmapreducedim
functions) are currently slow and I guess some part is falling back to methods forAbstractArray
. There is related code insrc/darray.jl
which is still getting called, but I haven't managed to figure out the call path from theBase
method.