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

Dependency Bump #66

Merged
merged 10 commits into from
Sep 5, 2024
Merged

Dependency Bump #66

merged 10 commits into from
Sep 5, 2024

Conversation

Joroks
Copy link
Collaborator

@Joroks Joroks commented Sep 3, 2024

No description provided.

@Joroks
Copy link
Collaborator Author

Joroks commented Sep 3, 2024

The MPI enabled LAMMPS_jll doesn't load on windows. This seems to be similar to JuliaSmoothOptimizers/MUMPS.jl#110. A temporary fix could be to disable MPI windows specifically.

@vchuravy
Copy link
Member

vchuravy commented Sep 3, 2024

Disabling MPI on Windows is fine.

@Joroks Joroks requested a review from vchuravy September 3, 2024 16:50
test/runtests.jl Outdated
@test LAMMPS.API.lammps_config_has_mpi_support() == 0
else
@test LAMMPS.API.lammps_config_has_mpi_support() != 0
@test success(pipeline(`$(MPI.mpiexec()) -n 2 $(Base.julia_cmd()) mpitest.jl`, stderr=stderr, stdout=stdout))
Copy link
Member

Choose a reason for hiding this comment

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

We should make this test error if it is run without MPI support

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So the plan is to fix MPI for windows and until that just have our tests automatically fail on windows?
I think we should also check wheter MPI is enabled in the init function and display a warning if it isn't. We should probably do the same for errors as well, as the REPL just crashes when lammps encounters an error if that isn't the case - Alltough starting from the 2024 versions errors are allways enabled

test/runtests.jl Outdated
@test success(pipeline(`$(MPI.mpiexec()) -n 2 $(Base.julia_cmd()) mpitest.jl`, stderr=stderr, stdout=stdout))
end
@test LAMMPS.API.lammps_config_has_mpi_support() != 0
@test success(pipeline(`$(MPI.mpiexec()) -n 2 $(Base.julia_cmd()) mpitest.jl`, stderr=stderr, stdout=stdout))
Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I meant, make the mpitest.jl fail if it is run without MPI support. In my earlier hybris, I trusted this test to not work without MPI support, but it would just happily run with LAMMPS not using MPI.

@Joroks
Copy link
Collaborator Author

Joroks commented Sep 4, 2024

The new mpitest fails on my windows machine, if I remove the if statement. So it should properly detect if MPI doesn't work

@Joroks Joroks merged commit d53eabb into cesmix-mit:main Sep 5, 2024
15 of 16 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