dummy "executor" for sequential (single-thread)
tpapp opened this issue · comments
Tamas K. Papp commented
Suppose I want to allow the user to run something like
function floop_map!(f, ys, xs, ex = ThreadedEx())
@floop ex for i in eachindex(ys, xs)
@inbounds ys[i] = f(xs[i])
end
return ys
end
end
without threads (ie sequentially). Is there a "placeholder" executor I can use for this purpose?
Nappael commented
From the documentation, I believe SequentialEx() is what you are looking for. See the Executors section: https://juliahub.com/docs/FLoops/99zMn/0.1.10/tutorials/parallel/#tutorials-executor