This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
howto:feko [2013/03/19 14:54] kevin created |
howto:feko [2021/12/09 16:42] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ** * * * UNDER CONSTRUCTION * * * ** | ||
| - | |||
| ====== FEKO at the CHPC ====== | ====== FEKO at the CHPC ====== | ||
| - | FEKO by EMSS is available | + | FEKO is available for use by authorised users. |
| ===== Example job script ===== | ===== Example job script ===== | ||
| - | <code bash> | + | ==== This is for TESTING purposes only ==== |
| + | |||
| + | Once you have this process working, you **MUST** start using your own campus licenses, as per the second example script. | ||
| + | |||
| + | <file bash fekorun.qsub> | ||
| #!/bin/bash | #!/bin/bash | ||
| - | #MSUB -l nodes=2:ppn=8 | + | ### This example script uses 2 compute nodes. |
| - | #MSUB -l walltime=1: | + | ### If only one node is being used, set #PBS -q smp (24 cores) |
| - | #MSUB -V | + | ### Or #PBS -q serial to for a few cores (<24) on a shared node |
| - | #MSUB -o /export/home/username/scratch/simulations/job-1.out | + | #PBS -l select=2:ncpus=24: |
| - | #MSUB -e /export/home/username/scratch/simulations/job-1.err | + | #PBS -P MECH**** |
| - | #MSUB -d /export/home/username/scratch/simulations | + | #PBS -q normal |
| - | #MSUB -M be your_emall@address | + | #PBS -l walltime=1: |
| - | #MSUB -q | + | #PBS -S /bin/bash |
| - | + | #PBS -o /mnt/lustre3p/users/jblogs/fekotest/fekostdout.txt | |
| - | mpirun -np 16 ### FIX ME !!! | + | #PBS -e /mnt/lustre3p/users/jblogs/fekotest/fekostderr.txt |
| - | </code> | + | ## The FEKO PATH |
| + | ## Find the version that you need in /apps/ | ||
| + | PATH_TO_FEKO=/ | ||
| + | export | ||
| + | ## FEKO_TMPDIR | ||
| + | export FEKO_TMPDIR=$FEKOJOBDIR/ | ||
| + | ## The path to the FEK-file | ||
| + | export FEK=$FEKOJOBDIR/ | ||
| + | cd $FEKOJOBDIR | ||
| + | ## additional setup | ||
| + | ulimit -s unlimited | ||
| + | ulimit -n 2400 | ||
| + | ulimit -a | ||
| + | export ALTAIR_LICENSE_PATH=6200@chpcviz1 | ||
| + | export FEKO_CSV_RESOURCE_REPORTING_PRESET=use_envvars | ||
| + | . $PATH_TO_FEKO/bin/ | ||
| + | export FEKO_WHICH_MPI=11 | ||
| + | runfeko `basename $FEK` --use-job-scheduler | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Example job script with remote license server ===== | ||
| + | |||
| + | <file bash fekorun.qsub> | ||
| + | #!/bin/bash | ||
| + | ### This example script uses 2 compute nodes. | ||
| + | ### If only one node is being used, set #PBS -q smp (24 cores) | ||
| + | ### Or #PBS -q serial to for a few cores (<24) on a shared node | ||
| + | #PBS -l select=2: | ||
| + | #PBS -P MECH**** | ||
| + | #PBS -q normal | ||
| + | #PBS -l walltime=1: | ||
| + | #PBS -S /bin/bash | ||
| + | #PBS -o / | ||
| + | #PBS -e / | ||
| + | ## The FEKO PATH | ||
| + | ## Find the version that you need in / | ||
| + | PATH_TO_FEKO=/ | ||
| + | export FEKOJOBDIR=/ | ||
| + | ## FEKO_TMPDIR | ||
| + | export FEKO_TMPDIR=$FEKOJOBDIR/ | ||
| + | ## The path to the FEK-file | ||
| + | export FEK=$FEKOJOBDIR/ | ||
| + | cd $FEKOJOBDIR | ||
| + | ## additional setup | ||
| + | ulimit -s unlimited | ||
| + | ulimit -n 2400 | ||
| + | ulimit -a | ||
| + | # Set up an ssh tunnel to your license server | ||
| + | # Firewalls at CHPC and at your facility need to be configured to allow the necessary traffic | ||
| + | # Use the appropriate port numbers for your particular setup | ||
| + | ssh -f username@chpclic1 -L 6200: | ||
| + | export ALTAIR_LICENSE_PATH=6200@localhost | ||
| + | export FEKO_CSV_RESOURCE_REPORTING_PRESET=use_envvars | ||
| + | . $PATH_TO_FEKO/ | ||
| + | export FEKO_WHICH_MPI=11 | ||
| + | runfeko `basename $FEK` --use-job-scheduler | ||
| + | # Remove the ssh tunnel to the license server | ||
| + | kill -9 `ps ux | grep "ssh -f" | grep -o -E ' | ||
| + | </ | ||