Difference between revisions of "Applications/keep-Perl"

From HPC
Jump to: navigation , search
m (MSummerbell moved page Applications/Perl to Perl without leaving a redirect)
m (Further Information)
 
(9 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
*Version: 5.24.0
 
*Version: 5.24.0
 
*Modules: perl/5.24.0
 
*Modules: perl/5.24.0
*License:CC
+
*Licence:GNU Licence
  
 
==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;">
[username@login01 ~]$ module add perl/5.24.0
+
[pysdlb@login01 ~]$ interactive
[username@login01 ~]$ perl testPerl.pl
+
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
 
</pre>
 
</pre>
 +
 +
* 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===
 
===Further Information===
[[Programming/Perl|Perl Programming Support]]
+
*[[Programming/Perl|Perl Programming Support]]
 +
 
 +
{{Modulepagenav}}

Latest revision as of 10:55, 16 November 2022

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


Further Information





Modules | Main Page | Further Topics