TuringLang / AbstractMCMC.jl

Abstract types and interfaces for Markov chain Monte Carlo methods
https://turinglang.org/AbstractMCMC.jl
MIT License
87 stars 18 forks source link

Unnecessary copies in multi-threaded parallel sampling #37

Closed xukai92 closed 4 years ago

xukai92 commented 4 years ago

The following lines

https://github.com/TuringLang/AbstractMCMC.jl/blob/master/src/sample.jl#L206-L208

could give unused copies if the number of threads is larget than the specified number of chains.

devmotion commented 4 years ago

Unfortunately, I don't think this can be fixed by us (see https://github.com/TuringLang/AbstractMCMC.jl/pull/38#issuecomment-629605149).