-
Notifications
You must be signed in to change notification settings - Fork 4
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
HdpH crash with polymorphic closure instances #1
Comments
Sorry for the late reply; this email's escaped my attention for months. The problem is the lack of static support in GHC and the way HdpH emulates The problem in your code is that you actually use two different instances HdpH needs a one-to-one correspondence between the "instance ToClosure On Thu, Oct 24, 2013 at 9:00 PM, cirodrig notifications@github.com wrote:
|
Parallel HdpH code fails when using polymorphic list instances of ToClosure and ForceCC. It fails when a closure environment is deserialized. I guess that the closure-generating code is choosing the wrong static index of a polymorphic function, because the failure can be changed by reordering static declarations.
The following code uses a trivial parallel loop with parMapNF to demonstrate the problem. Switching from polymorphic to monomorphic instances (by changing #if 1 to #if 0) makes the problem go away.
The text was updated successfully, but these errors were encountered: