calcoloscientifico:guidautente_slurm_en
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:guidautente_slurm_en [24/04/2018 12:44] – [Serial jobs, compiler GNU] paolo.oggiano | calcoloscientifico:guidautente_slurm_en [27/04/2018 10:01] (versione attuale) – [Batch job ===== ====SLURM FATTO] roberto.alfieri | ||
---|---|---|---|
Linea 9: | Linea 9: | ||
===== Access / Login ===== | ===== Access / Login ===== | ||
- | In order to access the resources, you must be included in the database | + | In order to access the resources, you must be included in the LDAP database |
Requests for access or general assistance must be sent to: es_calcolo@unipr.it. | Requests for access or general assistance must be sent to: es_calcolo@unipr.it. | ||
- | Once enabled, the login is done throughput | + | Once enabled, the login is done through |
ssh < | ssh < | ||
- | Password access is allowed only within the University network (160.78.0.0/ | + | Password access is allowed only within the University network (160.78.0.0/ |
==== Access password-less between nodes ==== | ==== Access password-less between nodes ==== | ||
- | ** To use the cluster it is necessary to eliminate the need to use the password between | + | ** In order to use the cluster it is necessary to eliminate the need to use the password between nodes**, using public key authentication. It is necessary to generate on login.hpc.unipr.it the pair of keys, without passphrase, |
- | Key generation. Accept the defaults by pressing enter. | + | Key generation. Accept the defaults by pressing enter: |
ssh-keygen -t rsa | ssh-keygen -t rsa | ||
Linea 29: | Linea 29: | ||
cat ~/ | cat ~/ | ||
- | ==== Access | + | ==== External |
- | The key pair must be generated with the client | + | The key pair must be generated with the SSH client. The private key should be protected by an appropriate passphrase (it is not mandarory |
- | be inserted | + | The public key must be included |
- | If you use the SSH client for Windows **PuTTY** (http:// | + | If you use the SSH client for Windows **PuTTY** (http:// |
- | The private key must be entered | + | The private key must be included |
Configuration -> Connection -> SSH -> Auth -> Private key file for authentication | Configuration -> Connection -> SSH -> Auth -> Private key file for authentication | ||
- | The public key must be inserted | + | The public key must be included |
Useful links for SSH clients configuration: | Useful links for SSH clients configuration: | ||
Linea 52: | Linea 52: | ||
SSH is the only protocol for external communication and can also be used for file transfer. | SSH is the only protocol for external communication and can also be used for file transfer. | ||
- | In a Unix-like | + | If you use |
- | In Windows, the most used program | + | On Windows |
- | SSH can also be used to mount a remote file-system using SshFS (see http:// | + | SSH can also be used to mount a remote file-system using SshFS (see http:// |
===== Hardware ===== | ===== Hardware ===== | ||
Linea 79: | Linea 79: | ||
Nodes details: | Nodes details: | ||
- | [[ http:// | + | [[ calcoloscientifico: |
- | - | ||
- | [[ http:// | + | [[ http:// |
Peak performance (double precision): | Peak performance (double precision): | ||
Linea 102: | Linea 102: | ||
Environment Software (libraries, compilers e tools): | Environment Software (libraries, compilers e tools): | ||
- | [[ http:// | + | [[ http:// |
Some software components must be loaded in order to be used. | Some software components must be loaded in order to be used. | ||
Linea 137: | Linea 137: | ||
</ | </ | ||
- | [[ http:// | + | [[ calcoloscientifico: |
Linea 254: | Linea 254: | ||
Specifies the account to be charged for using resources. (Mandatory ??) | Specifies the account to be charged for using resources. (Mandatory ??) | ||
- | Default group equal to account ??? | ||
See [[ calcoloscientifico: | See [[ calcoloscientifico: | ||
Linea 361: | Linea 360: | ||
- | ===== Batch job ===== ====SLURM FATTO ===== | + | ===== Batch job ===== |
A shell script must be created that includes the SLURM options and the commands that must be executed on the nodes. | A shell script must be created that includes the SLURM options and the commands that must be executed on the nodes. | ||
Linea 393: | Linea 392: | ||
#SBATCH -p bdw -N1 -n32 | #SBATCH -p bdw -N1 -n32 | ||
- | #< Its declares that the job will last at most 30 minutes (days-hours: | + | #< Its declares that the job will last at most 30 minutes (days-hours: |
#SBATCH --time 0-00:30:00 | #SBATCH --time 0-00:30:00 | ||
Linea 402: | Linea 401: | ||
cat $SLURM_JOB_NODELIST | cat $SLURM_JOB_NODELIST | ||
- | # Enter the directory that contains the script | + | #< Enter the directory that contains the script |
cd " | cd " | ||
- | # Executes the program | + | #< Executes the program |
./mm | ./mm | ||
Linea 421: | Linea 420: | ||
scancel <Job id> | scancel <Job id> | ||
- | ==== Serial jobs, compiler Intel ==== ==== FATTO SLURM ==== | + | ==== Serial jobs, compiler Intel ==== |
Compiling the cpi_mc.c example for the calculation of Pi: | Compiling the cpi_mc.c example for the calculation of Pi: | ||
Linea 434: | Linea 433: | ||
#!/bin/bash | #!/bin/bash | ||
- | # Print the node name assigned | + | #< Print the node name assigned |
cat $SLURM_JOB_NODELIST | cat $SLURM_JOB_NODELIST | ||
- | # Load the compiler module Intel | + | #< Charge resources to own account |
+ | #SBATCH $SBATCH_ACCOUNT | ||
+ | |||
+ | #< Load the compiler module Intel | ||
module load intel | module load intel | ||
- | # Enter the directory that contains the script | + | #< Enter the directory that contains the script |
cd " | cd " | ||
- | # Executes the program | + | #< Executes the program |
N=10000000 | N=10000000 | ||
Linea 452: | Linea 454: | ||
Submission: | Submission: | ||
- | sbatch | + | sbatch cpi_mc.bash |
- | ==== Serial job, compiler PGI ==== ==== SLURM FATTO ==== | + | ==== Serial job, compiler PGI ==== |
Compiling the cpi_sqrt.c example for the computing of Pi: | Compiling the cpi_sqrt.c example for the computing of Pi: | ||
Linea 468: | Linea 470: | ||
#!/bin/bash | #!/bin/bash | ||
- | # Options SLURM default. They can be omitted | + | #< Options SLURM default. They can be omitted |
- | #SBATCH -p bdw_debug | + | #SBATCH -p bdw -N1 -n32 |
#SBATCH --time 0-00:30:00 | #SBATCH --time 0-00:30:00 | ||
- | # Print name node assigned | + | #< Charge resources to own account |
+ | #SBATCH $SBATCH_ACCOUNT | ||
+ | |||
+ | #< Print name node assigned | ||
cat $SLURM_JOB_NODELIST | cat $SLURM_JOB_NODELIST | ||
module load pgi | module load pgi | ||
- | # Enter the directory that contains the script | + | #< Enter the directory that contains the script |
cd " | cd " | ||
Linea 485: | Linea 490: | ||
</ | </ | ||
- | sbatch | + | sbatch cpi_sqrt_pgi.bash |
- | ==== Job OpenMP with GNU 4.8 ==== ==== SLURM FATTO ==== | + | ==== Job OpenMP with GNU 4.8 ==== |
cp / | cp / | ||
Linea 498: | Linea 503: | ||
#!/bin/bash | #!/bin/bash | ||
- | #SBATCH -p bdw_debug | + | #SBATCH -p bdw -N1 -n32 |
#SBATCH --exclusive | #SBATCH --exclusive | ||
#SBATCH -t 0-00:30:00 | #SBATCH -t 0-00:30:00 | ||
+ | #SBATCH $SBATCH_ACCOUNT | ||
- | #Merge strerr with stdout | + | #< Merge strerr with stdout |
#SBATCH -oe | #SBATCH -oe | ||
calcoloscientifico/guidautente_slurm_en.1524566651.txt.gz · Ultima modifica: 24/04/2018 12:44 da paolo.oggiano