calcoloscientifico:userguide:crystal
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisioneRevisione precedenteProssima revisione | Revisione precedente | ||
calcoloscientifico:userguide:crystal [13/12/2023 12:22] – [Crystal14 serial job] fabio.spataro | calcoloscientifico:userguide:crystal [08/04/2024 18:11] (versione attuale) – fabio.spataro | ||
---|---|---|---|
Linea 1: | Linea 1: | ||
===== Crystal ===== | ===== Crystal ===== | ||
- | ==== Crystal14 | + | ==== Crystal14 ==== |
- | Script '' | + | [[calcoloscientifico:userguide: |
- | <code bash slurm-runcry14.sh> | + | ==== Crystal23 |
- | # | + | |
- | #SBATCH --job-name=runcry14 | + | |
- | #SBATCH --output=%x.o%j | + | |
- | #SBATCH --error=%x.e%j | + | |
- | #SBATCH --nodes=1 | + | |
- | #SBATCH --ntasks-per-node=1 | + | |
- | #SBATCH --partition=vrt | + | |
- | #SBATCH --qos=vrt | + | |
- | #SBATCH --mem=8G | + | |
- | #SBATCH --time=0-00: | + | |
- | ##SBATCH --account=< | + | |
- | module load crystal/ | + | [[calcoloscientifico:userguide:crystal:23|Crystal23]] |
- | + | ||
- | runcry14 test00 test00 | + | |
- | </ | + | |
- | + | ||
- | ==== Crystal14 MPI job ==== | + | |
- | + | ||
- | Script '' | + | |
- | + | ||
- | <code bash slurm-runmpi14.sh> | + | |
- | # | + | |
- | #SBATCH --job-name=runmpi14 | + | |
- | #SBATCH --output=%x.o%j | + | |
- | #SBATCH --error=%x.e%j | + | |
- | #SBATCH --nodes=2 | + | |
- | #SBATCH --ntasks-per-node=4 | + | |
- | #SBATCH --partition=cpu | + | |
- | #SBATCH --mem=8G | + | |
- | #SBATCH --time=0-00:30:00 | + | |
- | #SBATCH --account=< | + | |
- | + | ||
- | module load crystal/ | + | |
- | + | ||
- | #export CRY14P_MACH=" | + | |
- | #export CRY14_SCRDIR="/ | + | |
- | + | ||
- | srun -n$SLURM_NTASKS hostname -s | sort > machines.LINUX | + | |
- | uniq machines.LINUX > nodes.par | + | |
- | + | ||
- | runmpi14 $SLURM_NTASKS test00 test00 | + | |
- | + | ||
- | rm -f machines.LINUX | + | |
- | rm -f nodes.par | + | |
- | </ | + | |
- | + | ||
- | /* | + | |
- | ===== Crystal14 job (old version) ===== | + | |
- | + | ||
- | ==== Crystal14 MPI job (old version) ==== | + | |
- | + | ||
- | Script '' | + | |
- | + | ||
- | <code bash> | + | |
- | #!/bin/sh | + | |
- | + | ||
- | #SBATCH --job-name=" | + | |
- | #SBATCH --partition=cpu | + | |
- | #SBATCH --nodes=4 | + | |
- | #SBATCH --ntasks=8 | + | |
- | #SBATCH --time=0-168: | + | |
- | + | ||
- | #< Charge resources to account | + | |
- | #SBATCH --account=< | + | |
- | #SBATCH --mem=64G | + | |
- | + | ||
- | #< input files directory | + | |
- | CRY14_INP_DIR=' | + | |
- | + | ||
- | #< output files directory | + | |
- | CRY14_OUT_DIR=' | + | |
- | + | ||
- | #< ouput files prefix | + | |
- | CRY14_INP_PREFIX=' | + | |
- | + | ||
- | #< input wave function file prefix | + | |
- | CRY14_F9_PREFIX=' | + | |
- | + | ||
- | source / | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | We recommend creating a folder for each simulation. In each folder there must be a copy of the '' | + | |
- | + | ||
- | < | + | |
- | The script contains the definition of four variables: | + | |
- | + | ||
- | * **CRY14_INP_DIR**: | + | |
- | * **CRY14_OUT_DIR**: | + | |
- | * **CRY14_INP_PREFIX**: | + | |
- | * **CRY14_F9_PREFIX**: | + | |
- | + | ||
- | The '' | + | |
- | </ | + | |
- | + | ||
- | == Submission of the shell script == | + | |
- | + | ||
- | Navigate to the folder containing '' | + | |
- | + | ||
- | < | + | |
- | sbatch ./ | + | |
- | </ | + | |
- | + | ||
- | == Analysis of files produced by Crystal14 during job execution == | + | |
- | + | ||
- | During execution of the job a temporary '' | + | |
- | + | ||
- | < | + | |
- | nodes.par | + | |
- | machines.LINUX | + | |
- | </ | + | |
- | + | ||
- | The '' | + | |
- | + | ||
- | The '' | + | |
- | + | ||
- | To locate the temporary folders produced by Crystal14 during the execution of the job, run the following command directly from the login node: | + | |
- | + | ||
- | < | + | |
- | eval ls -d1 / | + | |
- | </ | + | |
- | + | ||
- | < | + | |
- | Be careful because the previous command contains the names of the currently available calculation nodes. This list and the corresponding command may change in the future. | + | |
- | </ | + | |
- | + | ||
- | To check the contents of the files produced by Crystal14 during the execution of the job, the user can move to one of the folders highlighted by the previous command. | + | |
- | + | ||
- | At the end of the execution of the job, the two files '' | + | |
- | + | ||
- | It is therefore not necessary to log in with SSH to the nodes participating in the processing to check the contents of the files produced by Crystal14. | + | |
- | */ | + | |
calcoloscientifico/userguide/crystal.1702466536.txt.gz · Ultima modifica: 13/12/2023 12:22 da fabio.spataro