-
Notifications
You must be signed in to change notification settings - Fork 4
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
LAMMPS doesn't run in parallel #4
Comments
I haven't tried running the code using mpirun. I believe running on multiple processors requires 1) a lammps binary that supports mpirun and 2) a potential that is compatible as well. I think it is only faster if the simulation cell is very big (thousands or millions of atoms). For my use case, I haven't done more than 300 or so atoms. EDIT: To clarify, using mpirun only parallelizes the lammps energy calculation, but not the sampling. |
I have a LAMMPS binary compiled with MPI support. Some potentials are very slow, like ReaxFF and other reactive potentials. For that reason, when running a CG algorithm with a couple of thousand steps (for thousands of sweeps), parallelization comes in handy. The problem is, I don't know if I'm doing something wrong, but the environment variables don't seem to be working. As I mentioned before, the ASE documentation specifies that I can use something like this:
However, for some reason, this doesn't work for parallelizing both energy and optimization calculations. I believe the only LAMMPS binary that the software recognizes is the one that comes with |
I see what you mean now. To run using MPI, I think you can modify surface-sampling/mcmc/calculators.py Line 340 in 2b5f8a1
using the information over here: https://docs.lammps.org/Python_launch.html#running-lammps-and-python-in-parallel-with-mpi |
I have followed the instructions on the link you sent, adding something like I alse tested an unofficial LAMMPS implementation called |
Hi @m-barbosa, apologies, I was busy last week. I don't have much experience parallelizing LAMMPS. But if you're willing to send over the modified code, scripts, potential, and a test system (doesn't have to be exactly what you're doing), I can try out some runs myself. |
Hello @xiaochendu,
I was trying to run the code on multiple processors but couldn't find a way to make it work. I tried exporting the environment variables in my .bashrc:
and
just like on the ASE page, but it doesn't seem to work. Is there a way to run LAMMPS in parallel using surface-sampling?
The text was updated successfully, but these errors were encountered: