-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
map() and pmap() interfaces differ in return type and shape #4606
Comments
I second that it would be nice for |
This still seems to be an issue. |
method(map) reveals that map has the following definition actually, map function has been specialized to various datatypes. Whereas pmap has only one implementation for any iterable object. To fix this issue, a specialized implementation of pmap for AbstractArray has to added much like the map specialization. I can patch this up. I need to know what is the right place to add such an implementation. May be in abstractarray.jl ? |
Was there progress on this? This is still an issue in 0.5. |
We also need to leverage the different map implementations. I am wondering if the right way to do this is to implement 2-passes using regular
We will need a much lighter equivalent of |
+1, I just bumped into this as well. |
If a) the collection length is not very large and this should return the same type and shape as
Works for regular arrays, tuples and sparse arrays. Retains shape for bit arrays but not type. Wrap The above code starts a new task for every element in the collection and then collects the return value from each task at the end which makes it very inefficient in terms of memory usage. |
Closed by #19447 |
As discussed on the julia-users mailing list thread "parallelized comprehensions"
https://groups.google.com/forum/#!topic/julia-users/DTyTqib3iOk
map preserves the shape of the input and does type deduction, whereas pmap does not:
From a user's perspective it would be good if both functions had the same interface.
The text was updated successfully, but these errors were encountered: