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

add job queue mpi #10

Merged
merged 5 commits into from
Nov 21, 2024
Merged

add job queue mpi #10

merged 5 commits into from
Nov 21, 2024

Conversation

viniciusjusten
Copy link
Contributor

No description provided.

project_dir = dirname(Base.active_project())
parallel_script = joinpath(@__DIR__, "script_newsvendor_benders_job_queue.jl")

mpiexec(exe -> run(`$exe -n 2 $(Base.julia_cmd()) --project=$(project_dir) $(parallel_script)`))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meu único comentário seria testar com pelo menos 3 processos, ai ficam dois workers competindo. Se forem só 2 fica só um controller e um worker ai é meio que equivalente a rodar tudo em ordem.

@guilhermebodin guilhermebodin merged commit 48574f1 into master Nov 21, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants