Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dummy "executor" for sequential (single-thread) #74

Open
tpapp opened this issue Mar 19, 2021 · 1 comment
Open

dummy "executor" for sequential (single-thread) #74

tpapp opened this issue Mar 19, 2021 · 1 comment

Comments

@tpapp
Copy link

tpapp commented Mar 19, 2021

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
Copy link

Nappael commented May 30, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants