-
Notifications
You must be signed in to change notification settings - Fork 32
Cartesianmap type error #129
Comments
The range over array is not supported in comprehension or I'll suggest you re-write the above using integer ranges. For example:
or
Or if we still prefer no-indexing, we can write it using |
The above program can also be writtten using
This works for Julia 0.5. Theoretically we can translate comprehension to map instead of cartesianmap. The challenge again is to get around type inference limitations and have Julia figure out the concrete types for all variables before AST gets passed to ParallelAccelerator. Since |
Thanks, Paul. The The |
how come, the par version works for me. |
I copy/pasted your
|
I only tried that one in Julia 0.4. I'm seeing the same error in 0.5, will investigate. |
Annotate the type of This kind of additional annotation is annoying, but a major departure from 0.4 is that escaping variables are given an opaque boxed type. I filed an issue here: JuliaLang/julia#16431, the decision in the end is just to go with explicit annotation. |
Ok, makes sense. Thanks. |
I have two versions of the same data parallel program (below). Both crash in DomainIR probably because of types not being inferred properly. Any suggestions?
The text was updated successfully, but these errors were encountered: