This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tcr_sri003 [2020/12/17 06:57] – tmatejuk | tcr_sri003 [2023/08/01 01:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== LAMMPS version | + | ====== LAMMPS version 29 Oct 20 ====== |
==== description ==== | ==== description ==== | ||
LAMMPS is a classical molecular dynamics code with a focus on materials modeling. It's an acronym for Large-scale Atomic/ | LAMMPS is a classical molecular dynamics code with a focus on materials modeling. It's an acronym for Large-scale Atomic/ | ||
Line 12: | Line 12: | ||
srun -n16 -N1 --pty bash -l | srun -n16 -N1 --pty bash -l | ||
- | When interactive session is started go through | + | When interactive session is started go through |
#folder for source files | #folder for source files | ||
mkdir -p ~/ | mkdir -p ~/ | ||
Line 34: | Line 34: | ||
remember to end interactive session with '' | remember to end interactive session with '' | ||
+ | If no errors occurred, compiled LAMMP binary is available in ''/ | ||
- | TODO TODO TODO TODO TODO TODO TODO TODO TODO | + | ==== example file ==== |
+ | Create new folder for example file : | ||
+ | mkdir ~/ | ||
- | TODO TODO TODO TODO TODO TODO TODO TODO TODO | + | It is recommended that you test this script before you try to run your own LAMMPS problems. |
- | TODO TODO TODO TODO TODO TODO TODO TODO TODO | + | The example is a Lennard-Jones melt in a 3D box. The Lennard-Jones force has a cutoff at r = 2.5 sigma, where sigma is the distance at which the interparticle potential is zero. The system includes 32,000 atoms, and is to be modeled for 1000 time steps. |
- | https://arc.vt.edu/userguide/ | + | Store below in the filename '' |
+ | < | ||
+ | # 3d Lennard-Jones melt | ||
+ | variable x index 1 | ||
+ | variable y index 1 | ||
+ | variable z index 1 | ||
+ | variable t index 200000 | ||
- | #variable | + | variable |
+ | variable yy equal 20*$y | ||
+ | variable zz equal 20*$z | ||
+ | units lj | ||
+ | atom_style | ||
- | time srun -n160 -N10 --pty bash -l | + | lattice |
- | Total wall time: 0:01:20 | + | region |
+ | create_box | ||
+ | create_atoms | ||
+ | mass 1 1.0 | ||
+ | velocity all create 1.44 87287 loop geom | ||
- | time srun -n64 -N4 --pty bash -l | + | pair_style |
- | Total wall time: 0:02:08 | + | pair_coeff |
+ | neighbor 0.3 bin | ||
+ | neigh_modify | ||
- | time srun -n32 -N2 --pty bash -l | + | fix 1 all nve |
- | Total wall time: 0:03:25 | + | thermo |
- | + | run | |
- | + | </code> | |
- | time srun -n16 -N1 --pty bash -l | + | |
- | Total wall time: 0:05:46 | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | If no errors occurred, compiled LAMMP binary is available in ''/ | + | |
- | + | ||
- | https:// | + | |
==== sbatch example ==== | ==== sbatch example ==== | ||
- | Use LAMMPS 29Oct20. This description assumes that path to binaries is ''/ | + | Use LAMMPS 29Oct20. This description assumes that path to binaries is ''/ |
#!/bin/bash -l | #!/bin/bash -l | ||
- | #SBATCH --job-name=" | + | #SBATCH --job-name=" |
#SBATCH --nodes=2 | #SBATCH --nodes=2 | ||
#SBATCH --ntasks=32 | #SBATCH --ntasks=32 | ||
Line 80: | Line 90: | ||
#SBATCH --time=2: | #SBATCH --time=2: | ||
| | ||
- | WORKDIR="/ | + | WORKDIR="/ |
- | mkdir -p ${WORKDIR} | + | |
cd ${WORKDIR} | cd ${WORKDIR} | ||
| | ||
- | export BIN_DIR="/ | + | export BIN_DIR="/ |
export PATH=${BIN_DIR}: | export PATH=${BIN_DIR}: | ||
- | export PSEUDO_DIR=${WORKDIR} | ||
export TMP_DIR="/ | export TMP_DIR="/ | ||
- | #copy input files and pseudo files to ${WORKDIR} | ||
- | cp / | ||
- | | ||
module load mpi/ | module load mpi/ | ||
+ | module load compilers/ | ||
| | ||
T1=`date +%s` | T1=`date +%s` | ||
| | ||
- | mpirun -np ${SLURM_NTASKS} | + | mpirun -np ${SLURM_NTASKS} |
| | ||
T2=`date +%s` | T2=`date +%s` | ||
Line 102: | Line 108: | ||
==== performance tests ==== | ==== performance tests ==== | ||
- | Bellow results show time of computation in function of used resources (computation scalability) for a specific computational task done with '' | + | Bellow results show time of computation in function of used resources (computation scalability) for a specific computational task '' |
Assigning a larger amount of computing nodes does not always lead to a (efficient) reduction in computing time (wall-time of the job). To find the most appropriate number of nodes for a specific type of job, it is essential to run one's own benchmarks. In general, parallel <color # | Assigning a larger amount of computing nodes does not always lead to a (efficient) reduction in computing time (wall-time of the job). To find the most appropriate number of nodes for a specific type of job, it is essential to run one's own benchmarks. In general, parallel <color # | ||
- | Bellow results should be consider as results of this specific computational task on this specific hardware (TCR cluster) and not overall benchmark for Quantum Espresso | + | Bellow results should be consider as results of this specific computational task on this specific hardware (TCR cluster) and not overall benchmark for LAMMPS |
- | {{ tcr: | ||
^nodes ^min [s] ^avg [s] ^median [s] ^max [s] ^efficiency [%] ^ | ^nodes ^min [s] ^avg [s] ^median [s] ^max [s] ^efficiency [%] ^ | ||
- | |1 |1862 |2065.75 |2126 |2149 |<color # | + | |1 |349 |351.67 |349 |357 |<color # |
- | |2 |1105 |1192.75 |1157.5 |1351 |<color # | + | |2 |206 |209.33 |207 |215 |<color # |
- | |3 |763 |770 |768.5 |780 |<color #22b14c>81.35%</ | + | |3 |156 |156.33 |156 |157 |<color #22b14c>74.57%</ |
- | |4 |798 |1026.25 |868.5 |1570 |58.33%| | + | |4 |128 |128.67 |129 |129 |68.16%| |
- | |5 |571 |589.75 |574 |640 |65.22%| | + | |5 |121 |121.33 |121 |122 |57.69%| |
- | |6 |488 |536 |525.5 |605 |63.59%| | + | |6 |111 |111 |111 |111 |52.40%| |
- | |7 |372 |502.25 |414.5 |808 |<color # | + | |7 |92 |93 |93 |94 |54.19%| |
- | |8 |375 |489.75 |408.5 |767 |62.07%| | + | |8 |88 |88.67 |89 |89 |49.57%| |
- | |9 |324 |403.75 |346.5 |598 |63.85%| | + | |9 |83 |84 |84 |85 |46.72%| |
- | |10 |327 |456.25 |465.5 |567 |56.94%| | + | |
- | |12 |285 |429.4 |375 |609 |54.44%| | + | |
- | |16 |228 |274.25 |281.5 |306 |51.04%| | + | |
- | + | ||
- | + | ||
*) values (min, avg, median, max, efficiency) do not include failed runs \\ | *) values (min, avg, median, max, efficiency) do not include failed runs \\ | ||
+ | *) results are from 3 runs \\ | ||
*) efficiency as '' | *) efficiency as '' | ||
+ | ==== other ==== | ||
+ | above desciption uses default settings and do not include any extra LAMMPS packages that you may require. More about LAMMPS' | ||
+ | |||
+ | *) [[https:// |