Difference between revisions of "Applications/keep-Perl"

From HPC
Jump to: navigation , search
m
m
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 22: Line 24:
  
 
* you can ignore the ''export'' command above if you're not bother about the ''locale warnings''.
 
* you can ignore the ''export'' command above if you're not bother about the ''locale warnings''.
 +
 +
===Batch File===
 +
 +
 +
<pre style="background-color: black; color: white; 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===

Revision as of 14:56, 10 February 2020

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 bother 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

Perl Programming Support


Navigation