Skip to content

Weird issue with distributed #7

@wcwitt

Description

@wcwitt

Posting so we don't lose track of this:

using Distributed
using ACE1pack

addprocs(2, exeflags="--project=$(Base.active_project())")

@everywhere using Distributed
@everywhere using ACE1pack

elements = [:Si]
basis = ACE1x.ace_basis(elements = elements,
                        order = 2,
                        totaldegree = 8,
                        rcut = 5.5)

# pass basis to workers
@everywhere basis = $basis

Causes errors like:

ERROR: LoadError: On worker 2:
UndefVarError: #7#8 not defined

From discussions with @cortner, seems likely the problem relates to serializing an anonymous function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions