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

Set JULIA_BINDIR when running mpiexecjl tests #858

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

giordano
Copy link
Member

@giordano giordano commented Aug 6, 2024

I don't have a good explanation of why this is necessary, but setting JULIA_BINDIR, as it was done in #481 for the other run in the same test set, fixes #857 for me. My only hypothesis is that this somehow helps Julia find its own libraries, perhaps especially if using juliaup, but honestly I can't tell what's failing without setting JULIA_BINDIR. Also, note that that I don't have problems using mpiexecjl normally, the issue reported in #857 appeared only when running the tests.

@giordano giordano force-pushed the mg/fix-mpiexecjl branch 2 times, most recently from f617bb5 to 2709d8e Compare August 6, 2024 19:43
Comment on lines -18 to +19
mpiexecjl = joinpath(dir, "mpiexecjl")
env = ["JULIA_BINDIR" => Sys.BINDIR]
mpiexecjl = addenv(`$(joinpath(dir, "mpiexecjl"))`, env...)
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm still not sure about why JULIA_BINDIR is needed, but I think that ensuring mpiexecjl is consistently called with the same environment in all these tests is a good change: it's less error-prone as it avoids missing something in possible future tests. As a side effect, we can slightly simplify the code in these tests whenever we call mpiexecjl.

@giordano giordano merged commit 1872411 into JuliaParallel:master Aug 6, 2024
47 of 50 checks passed
@giordano giordano deleted the mg/fix-mpiexecjl branch August 6, 2024 20:07
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.

mpiexecjl doesn't handle juliaup with non-default channel
1 participant