-
-
Notifications
You must be signed in to change notification settings - Fork 122
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 mpiexecjl for windows #783
base: master
Are you sure you want to change the base?
Add mpiexecjl for windows #783
Conversation
Can you please rebase on |
@giordano it is currently failing silently with some very weird error
It is misparsing the sysimage part
I could not identify where it gets lost in the middle. Honestly, the $(julia) variable is used only for testing, we could simply write |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is currently failing silently with some very weird error
Why is the error silent and not loud? Sounds like that should be fixed.
It is misparsing the sysimage part
Where is this parsing happening?
Honestly, the $(julia) variable is used only for testing, we could simply write julia directly without betting it with Base.julia_cmd() and it would work correctly.
No, it wouldn't: #706, JuliaLang/julia#48039 (comment)
@giordano I fixed many things in the comments and got the Powershell script to not fail silently. It will rethrow the exit code of the underlying julia process. From my perspective the only problem left now is that powershell is splitting the command line switch: This happens in the PowerShell argument parsing. I am investigating how to avoid this behavior. https://github.com/JuliaParallel/MPI.jl/actions/runs/8377054363/job/22938230315 |
Found some material on it PowerShell/PowerShell#16432. |
@giordano The only solution I found with Powershell was to replace the |
# If pkgimage is set, malloc_log and code_coverage should not | ||
@assert opts.malloc_log == 0 && opts.code_coverage == 0 | ||
end | ||
return `$julia -C$cpu_target --sysimage=$image_file $addflags` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only edited this part of the Base.julia_cmd()
function
close #545
This is an attempt to have an mpiexecjl on windows. Currently, you have to call
powershell.exe -File ...
This could be avoided if we did a .bat file calling a .ps1 file but I find this too ugly.