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.
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.
I only edited this part of the Base.julia_cmd() function
|
@guilhermebodin you can workaround this nasty pwsh quirk by using I guess it was inspired by bash's |
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.