# How to run Juniper.jl concurrently

**URL:** <https://discourse.julialang.org/t/how-to-run-juniper-jl-concurrently/75275>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [January 27, 2022, 7:09am UTC](https://discourse.julialang.org/t/how-to-run-juniper-jl-concurrently/75275 "2022-01-27T07:09:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![manoj.centura](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/manoj.centura/32/216443_2.png) [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Post date:** [January 27, 2022, 7:09am UTC](https://discourse.julialang.org/t/how-to-run-juniper-jl-concurrently/75275/1 "2022-01-27T07:09:05Z")

</div>

Hi,  
is there a way to run Juniper concurrently ?

Thanks,  
Manoj

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [January 27, 2022, 10:09pm UTC](https://discourse.julialang.org/t/how-to-run-juniper-jl-concurrently/75275/2 "2022-01-27T22:09:12Z")

</div>

Do you mean multiple instances of Juniper in parallel, or a single instance of Juniper using multiple cores?

For the second, you need to start Julia with multiple procs using `julia -p N`:  
[https://lanl-ansi.github.io/Juniper.jl/stable/options/#Parallel](https://lanl-ansi.github.io/Juniper.jl/stable/options/#Parallel)

---

<div class="post-metadata">

**Author:** ![TheCedarPrince](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thecedarprince/32/17323_2.png) [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Post date:** [January 28, 2022, 3:26am UTC](https://discourse.julialang.org/t/how-to-run-juniper-jl-concurrently/75275/3 "2022-01-28T03:26:02Z")

</div>

CC @Wikunia 😃

---

<div class="post-metadata">

**Author:** ![Wikunia](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wikunia/32/2180_2.png) [@Wikunia](https://discourse.julialang.org/u/Wikunia)\
**Post date:** [January 28, 2022, 7:29am UTC](https://discourse.julialang.org/t/how-to-run-juniper-jl-concurrently/75275/4 "2022-01-28T07:29:15Z")

</div>

Hi there,

core developer of Juniper here.  
You actually need to also set an option to run a single instance in parallel. See:  
[https://lanl-ansi.github.io/Juniper.jl/stable/options/#Parallel](https://lanl-ansi.github.io/Juniper.jl/stable/options/#Parallel)

(edit: I somehow didn’t see the link by @odow …)

Hope that helps. Let me know if you have further questions.

Thanks for the ping @TheCedarPrince

Cheers,

Ole

---

<div class="post-metadata">

**Author:** ![manoj.centura](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/manoj.centura/32/216443_2.png) [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Post date:** [February 24, 2023, 3:24pm UTC](https://discourse.julialang.org/t/how-to-run-juniper-jl-concurrently/75275/5 "2023-02-24T15:24:06Z")

</div>

Hi @odow

is there a way to run multiple instance of juniper?

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [February 24, 2023, 5:20pm UTC](https://discourse.julialang.org/t/how-to-run-juniper-jl-concurrently/75275/6 "2023-02-24T17:20:49Z")

</div>

See [Parallelism · JuMP](https://jump.dev/JuMP.jl/stable/tutorials/algorithms/parallelism/)
