Skip to content

Deadlock when using Particle Filter #18

Description

@dreyes17

Hello,

I am using the method Particle Filter explained here, and I am facing a deadlock of the threads of the particles when getting into stepsize. Here is the output of "tail particle*/beast.log":

==> particle0/beast.log <==
         Sample      posterior ESS(posterior)          prior     ESS(prior)     likelihood ESS(lik_ihood)
              0    -21975.2366              N       -78.0244              N    -21897.2122              N --
          10000     -4873.4365         2.0         -189.1466         2.0        -4684.2899         2.0    --
          20000     -4480.6041         3.0         -179.8027         3.0        -4300.8014         3.0    --
25000: writing /home/dreyes/prueba_antonio/sideritis_mcmc/particles_cpus/particleset3/particle0/particlelock0
25000: waiting for /home/dreyes/prueba_antonio/sideritis_mcmc/particles_cpus/particleset3/particle0/threadlock0

==> particle1/beast.log <==
         Sample      posterior ESS(posterior)          prior     ESS(prior)     likelihood ESS(lik_ihood)
              0    -21975.1679              N       -78.0244              N    -21897.1434              N --
          10000     -4844.3121         2.0         -216.0260         2.0        -4628.2860         2.0    --
          20000     -4431.8588         3.0         -168.5222         3.0        -4263.3365         3.0    --
25000: writing /home/dreyes/prueba_antonio/sideritis_mcmc/particles_cpus/particleset3/particle1/particlelock0
25000: waiting for /home/dreyes/prueba_antonio/sideritis_mcmc/particles_cpus/particleset3/particle1/threadlock0

==> particle2/beast.log <==
         Sample      posterior ESS(posterior)          prior     ESS(prior)     likelihood ESS(lik_ihood)
              0    -21975.1738              N       -78.0244              N    -21897.1493              N --
          10000     -4690.5879         2.0         -196.0932         2.0        -4494.4947         2.0    --
          20000     -4463.5546         3.0         -162.7462         3.0        -4300.8084         3.0    --
25000: writing /home/dreyes/prueba_antonio/sideritis_mcmc/particles_cpus/particleset3/particle2/particlelock0
25000: waiting for /home/dreyes/prueba_antonio/sideritis_mcmc/particles_cpus/particleset3/particle2/threadlock0

I have read the code and the deadlock probably happens somewhere in between the lines 60 to 69 of ParticleLauncherByFile.java. I have attached my code in a txt because github doesn't allow to attach xml files -> SIDERITIS.MultipleParticles.txt.

Best regards,

Daniel Reyes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions