Difference between revisions of "Applications/keep-Perl"
From HPC
m |
m (→Further Information) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
==Usage Examples== | ==Usage Examples== | ||
| + | |||
| + | ===Interactive=== | ||
<pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;"> | <pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;"> | ||
| Line 21: | Line 23: | ||
</pre> | </pre> | ||
| − | * you can ignore the ''export'' command above if you're not | + | * you can ignore the ''export'' command above if you're not bothered about the ''locale warnings''. |
| − | === | + | ===Batch File=== |
| − | [ | + | |
| + | |||
| + | <pre style="background-color: grey; color: black; border: 2px solid black; font-family: monospace, sans-serif;"> | ||
| + | #!/bin/bash | ||
| + | |||
| + | #SBATCH -J openPERL-node | ||
| + | #SBATCH -N 1 | ||
| + | #SBATCH --ntasks-per-node 20 | ||
| + | #SBATCH -o %N.%j.%a.out | ||
| + | #SBATCH -e %N.%j.%a.err | ||
| + | #SBATCH -p compute | ||
| + | #SBATCH --exclusive | ||
| + | |||
| + | echo $SLURM_JOB_NODELIST | ||
| + | |||
| + | module purge | ||
| + | module add perl/5.24.0 | ||
| + | |||
| + | export I_MPI_DEBUG=5 | ||
| + | export I_MPI_FABRICS=shm:tmi | ||
| + | export I_MPI_FALLBACK=no | ||
| + | |||
| + | perl /home/user/PERL/demoPERL.pl | ||
| + | |||
| + | </pre> | ||
| + | |||
| + | And to submit the batch: | ||
| + | |||
| + | |||
| + | <pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;"> | ||
| + | [username@login01 ~]$ sbatch demoPERL.job | ||
| + | Submitted batch job 289352 | ||
| + | </pre> | ||
| − | == | + | ===Further Information=== |
| + | *[[Programming/Perl|Perl Programming Support]] | ||
| − | + | {{Modulepagenav}} | |
| − | |||
| − | |||
| − | |||
Latest revision as of 10:55, 16 November 2022
Contents
Application Details
- Description: Perl is a family of high-level, general-purpose, interpreted, dynamic programming languages.
- Version: 5.24.0
- Modules: perl/5.24.0
- Licence:GNU Licence
Usage Examples
Interactive
[pysdlb@login01 ~]$ interactive salloc: Granted job allocation 2294929 Job ID 2294929 connecting to c024, please wait... [pysdlb@c024 ~]$ module load perl/5.24.0 [pysdlb@c024 ~]$ export LANGUAGE=C [pysdlb@c024 ~]$ export LC_ALL=C [pysdlb@c024 ~]$ export LANG=C [pysdlb@c024 ~]$ perl
- you can ignore the export command above if you're not bothered about the locale warnings.
Batch File
#!/bin/bash #SBATCH -J openPERL-node #SBATCH -N 1 #SBATCH --ntasks-per-node 20 #SBATCH -o %N.%j.%a.out #SBATCH -e %N.%j.%a.err #SBATCH -p compute #SBATCH --exclusive echo $SLURM_JOB_NODELIST module purge module add perl/5.24.0 export I_MPI_DEBUG=5 export I_MPI_FABRICS=shm:tmi export I_MPI_FALLBACK=no perl /home/user/PERL/demoPERL.pl
And to submit the batch:
[username@login01 ~]$ sbatch demoPERL.job Submitted batch job 289352