Skip to content

ENH: Compile the functions needed by SMC before the worker processes are started #7413

Open
@EliasRas

Description

@EliasRas

Before

No response

After

No response

Context for the issue:

As explained in #7224, sample_smc can fail on Windows if the model is defined using CustomDist. Everything works on Linux because the worker processes are forked by default whereas they're spawned on Windows. Spawning leads to missing dispatches.

#7241 addressed the issue by manually registering the dispatches in the worker processes. A better way to solve the problem would be to compile the necessary functions before starting the worker processes (as is done in sample).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions