Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
documentation:tools:software:lammps [2016/03/07 05:57] – [LAMMPS] cicalugadocumentation:tools:software:lammps [2020/10/15 07:01] (Version actuelle) cicaluga
Ligne 16: Ligne 16:
 |  7Dec15  |  openmpi-1.8.4-intel-14.0.1  |  Infiniband  | /applis/PSMN/debian7/Lammps/7Dec15/intel-14.0.1/openmpi-1.8.4/bin/lammps  |  Debian 7  | |  7Dec15  |  openmpi-1.8.4-intel-14.0.1  |  Infiniband  | /applis/PSMN/debian7/Lammps/7Dec15/intel-14.0.1/openmpi-1.8.4/bin/lammps  |  Debian 7  |
 | | **modulefile** : Lammps/7Dec15-mpi-1.8.4-intel-14.0.1 |||| | | **modulefile** : Lammps/7Dec15-mpi-1.8.4-intel-14.0.1 ||||
 +|  11Aug17  |  openmpi-3.0.0-intel/2017.4  |  Infiniband  | /applis/PSMN/debian9/software/Local/LAMMPS/11Aug17/iomkl-2017.4b-3.0.0/bin/  | Debian 7 |
 +| | **modulefile** : LAMMPS/11Aug17-iomkl-2017.4-3.0.0 ||||
 +|  22Aug2018  |  openmpi-3.0.0-intel/2017.4  |  Infiniband  | /applis/PSMN/debian9/software/Local/LAMMPS/22Aug2018/iomkl-2017.4b-3.0.0/bin/  | Debian 9 |
 +| | **modulefile** : LAMMPS/22Aug2018-iomkl-2017.4-3.0.0 ||||
 +|  15Nov2018  |  openmpi-3.0.0-intel/2017.4  |  Infiniband  | /applis/PSMN/debian9/software/Local/LAMMPS/15Nov2018/iomkl-2017.4b-3.0.0/bin/  | Debian 9 |
 +| | **modulefile** : LAMMPS/15Nov2018-iomkl-2017.4-3.0.0 ||||
 +|  19Sep2019  |  openmpi-3.0.0-intel/2017.4  |  Infiniband  | /applis/PSMN/debian9/software/Local/LAMMPS/19Sep19/iomkl-2017.4-3.0.0/bin/  | Debian 9 |
 +| | **modulefile** : LAMMPS/19Sep2019-iomkl-2017.4-3.0.0 ||||
 +|  3Mar20  |  openmpi-3.0.0-intel/2017.4  |  Infiniband  | /applis/PSMN/debian9/software/Local/LAMMPS/3Mar20/iomkl-2017.4-3.0.0/bin/  | Debian 9 |
 +| | **modulefile** : LAMMPS/3Mar20-iomkl-2017.4-3.0.0 ||||
 +|  3Mar20 avec GAP et QUIP  |  openmpi-3.0.0-intel/2017.4  |  Infiniband  | /applis/PSMN/debian9/software/Local/LAMMPS/3Mar20-quip-gap/iomkl-2017.4-3.0.0/bin/  | Debian 9 |
 +| | **modulefile** : LAMMPS/3Mar20-quip-gap-iomkl-2017.4-3.0.0 ||||
 +
  
  
Ligne 33: Ligne 46:
    $ cp -r /applis/PSMN/debian7/Lammps/28Jun14/intel-14.0.1/openmpi-1.8.4/bench/ /home/nom_login/bench_lammps    $ cp -r /applis/PSMN/debian7/Lammps/28Jun14/intel-14.0.1/openmpi-1.8.4/bench/ /home/nom_login/bench_lammps
    $ cd /home/nom_login/bench_lammps    $ cd /home/nom_login/bench_lammps
 +   $ source /usr/share/modules/init/tcsh # éventuellement (si pas déjà fait) ; pour un autre shell (bash) utiliser le fichier correspondant
 +   $ module use /applis/PSMN/Modules     # éventuellement (si pas déjà fait)
 +   $ module load Base/psmn               # éventuellement (si pas déjà fait)
    $ module load Lammps/28Jun14-mpi-1.8.4-intel-14.0.1    $ module load Lammps/28Jun14-mpi-1.8.4-intel-14.0.1
    $ mpirun -np 4 lammps < in.lj > log.out    $ mpirun -np 4 lammps < in.lj > log.out
 </code> </code>
  
 +Vous pouvez alors consulter le fichier log.out (et le fichier log.lammps).
 Dans ce qui précède, remplacer nom_login par votre login PSMN, le shell utilisé est tcsh (ou csh) et on charge le modulefile ''Lammps/28Jun14-mpi-1.8.4-intel-14.0.1'' pour configurer l'environnement d'éxecution. Dans ce qui précède, remplacer nom_login par votre login PSMN, le shell utilisé est tcsh (ou csh) et on charge le modulefile ''Lammps/28Jun14-mpi-1.8.4-intel-14.0.1'' pour configurer l'environnement d'éxecution.
- 
  
 ===== Doc admin-sys PSMN ===== ===== Doc admin-sys PSMN =====
Ligne 72: Ligne 88:
 </code> </code>
  
 +===== Exemples d'utilisation au PSMN ===== 
 +
 +L' exemple décri le mode d'utilisation de LAMMPS en mode parallèle MPI.
 +
 +
 +  - créer un répertoire de test et travailler dedans : <code bash> 
 +     mkdir $HOME/Test_LAMMPS
 +     cd $HOME/Test_LAMMPS </code>
 +     
 + - copier l'un des fichier test dans votre répertoire de test : <code bash> 
 +     cp /applis/PSMN/debian9/software/Local/LAMMPS/15Nov2018/iomkl-2017.4-3.0.0/bench/in.lj . </code>
 +     
 + - exécuter LAMMPS avec un script de soumission SGE et de soumettre ce script :  <code bash> 
 +
 +ccalugar@e5-2670comp1:~/Tests/Test_LAMMPS$ vi script_LAMMPS 
 +#!/bin/bash
 +#$ -S /bin/bash
 +#$ -N Test_Lammps
 +#$ -q E5_test
 +#$ -pe test_debian 4
 +#$ -cwd
 +#$ -V
 +HOSTFILE=${TMPDIR}/machines
 +
 +cd ${SGE_O_WORKDIR}
 +
 +### configurer l'environnement
 +module purge
 +module load LAMMPS/15Nov2018-iomkl-2017.4-3.0.0
 +
 +### au besoin, forcer l'env OpenMPI
 +PREFIX="/applis/PSMN/debian9/software/Compiler/IntelComp/2017.4/Core/OpenMPI/3.0.0"
 +MPIRUN="${PREFIX}/bin/mpirun"
 +
 +$MPIRUN -v -x LD_LIBRARY_PATH -hostfile ${HOSTFILE} -np ${NSLOTS} lammps < in.lj > lammps_in.log
 +
 +# fin
 +
 +</code>  
 +
 +<code bash>
 +ccalugar@e5-2670comp1:~/Tests/Test_LAMMPS$ qsub script_LAMMPS 
 +Your job 2534457 ("Test_Lammps") has been submitted
 +ccalugar@e5-2670comp1:~/Tests/Test_LAMMPS$ qstat
 +job-ID  prior   name       user         state submit/start at     queue                          slots ja-task-ID 
 +-----------------------------------------------------------------------------------------------------------------
 +2534457 0.00000 Test_Lammp ccalugar     qw    03/27/2019 17:07:45                                    4        
 +ccalugar@e5-2670comp1:~/Tests/Test_LAMMPS$ qstat
 +job-ID  prior   name       user         state submit/start at     queue                          slots ja-task-ID 
 +-----------------------------------------------------------------------------------------------------------------
 +2534457 0.07384 Test_Lammp ccalugar         03/27/2019 17:07:55 E5_test@c8220node123                      
 +ccalugar@e5-2670comp1:~/Tests/Test_LAMMPS$ qstat
 +job-ID  prior   name       user         state submit/start at     queue                          slots ja-task-ID 
 +
 +ccalugar@e5-2670comp1:~/Tests/Test_LAMMPS$ ls -ltr
 +total 11
 +-rw-r--r-- 1 ccalugar cbp  494 Mar 27 17:01 script_LAMMPS
 +-rw-r--r-- 1 ccalugar cbp  470 Mar 27 17:08 in.lj
 +-rw-r--r-- 1 ccalugar cbp    0 Mar 27 17:08 Test_Lammps.pe2534457
 +-rw-r--r-- 1 ccalugar cbp    0 Mar 27 17:08 Test_Lammps.o2534457
 +-rw-r--r-- 1 ccalugar cbp    0 Mar 27 17:08 Test_Lammps.e2534457
 +-rw-r--r-- 1 ccalugar cbp 2602 Mar 27 17:08 log.lammps
 +-rw-r--r-- 1 ccalugar cbp 2046 Mar 27 17:08 lammps_in.log
 +-rw-r--r-- 1 ccalugar cbp   51 Mar 27 17:08 Test_Lammps.po2534457
 +
 +</code>     
documentation/tools/software/lammps.1457330256.txt.gz · Dernière modification : 2020/08/25 15:58 (modification externe)