CustomDist sample_smc fails with multiple cores

Hi,

I am using sample_smc, with a blackbox likelihood. To calculate the pointwise log-likelihood, I am using a customDist with a logp function. This all works fine when using 1 core but fails for multiple cores, sigificantly slowing down the computation.

I have seen threads on GitHub regardig this issue:

I tried reading through the posts but could not understand anything. Is there any work around for this issue? This occurs on both my Windows and MacOS machines.

@kar_m I just merged the PR you linked to. Should be in the next release and hopefully fix your problem

1 Like

Patch included in Release v5.19.0 · pymc-devs/pymc · GitHub

2 Likes