Open sethaxen opened 1 year ago
Here's an MWE for this error:
using LogDensityProblems, Pathfinder, Transducers
struct StdNormalProblem
n::Int
end
LogDensityProblems.capabilities(::Type{StdNormalProblem}) = LogDensityProblems.LogDensityOrder{1}()
LogDensityProblems.dimension(prob::StdNormalProblem) = prob.n
LogDensityProblems.logdensity(prob::StdNormalProblem, x) = -sum(abs2, x) / 2
LogDensityProblems.logdensity_and_gradient(prob::StdNormalProblem, x) = (-sum(abs2, x) / 2, -x)
ndraws = 100
nruns = 4
prob = StdNormalProblem(2)
multipathfinder(prob, ndraws; nruns) # fine
multipathfinder(prob, ndraws; nruns, executor=ThreadedEx()) # errors, see below
@marcobonici is this the error you observed when using Pathfinder with executor=PreferParallel()
?
This new failure in Transducers might be related: https://github.com/JuliaFolds/Transducers.jl/issues/557
Hi @sethaxen , yes, this is the same error I found. In order to deal with it I just downgraded to the previous version of Transducers.jl
, but I can understand that from a package mantainer point of view this is not satisfactory :sweat_smile:
The new issue to follow is https://github.com/JuliaFolds2/Transducers.jl/issues/10
Transducers v0.4.76 has caused our tests to fail (see first failure here).
Some not-necessarily-relevant notes: