This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
howto:magma [2022/03/10 15:10] wikiadmin created |
howto:magma [2024/06/21 15:59] (current) wikiadmin |
||
|---|---|---|---|
| Line 9: | Line 9: | ||
| magma | magma | ||
| - | However, Magma is licensed software and only licensed to run on the large memory nodes (usually called the "fat nodes). | + | However, Magma is licensed software and only licensed to run on the large memory nodes (usually called the "fat" |
| - | You will thus need to request a fat node using '' | + | You will thus need to request a fat node using '' |
| - | ====Interactive Session==== | + | =====Interactive Session===== |
| To request a login shell on a fat node use | To request a login shell on a fat node use | ||
| - | qsub -I -P PROJECTID -q bigmem -l ncpus=4 | + | qsub -I -P PROJECTID -q bigmem |
| | | ||
| where you must replace '' | where you must replace '' | ||
| Line 27: | Line 27: | ||
| then you do not currently have access to the '' | then you do not currently have access to the '' | ||
| + | Otherwise you should see a message similar to | ||
| + | |||
| + | qsub: waiting for job 4068905.sched01 to start | ||
| + | |||
| + | Note: the job ID number (" | ||
| + | |||
| + | Depending on how busy the '' | ||
| + | |||
| + | When the interactive session starts you will see that your command line prompt changes from '' | ||
| + | |||
| + | module load chpc/ | ||
| + | |||
| + | and start Magma with the command | ||
| + | |||
| + | magma | ||
| + | |||
| + | After you have finished running Magma and exited back to the command shell (the '' | ||
| + | |||
| + | ====Example interactive session: | ||
| + | |||
| + | <code bash> | ||
| + | fat04:~$ module load chpc/ | ||
| + | fat04:~$ magma | ||
| + | Magma V2.26-10 | ||
| + | Type ? for help. Type < | ||
| + | > | ||
| + | |||
| + | Total time: 0.399 seconds, Total memory usage: 32.09MB | ||
| + | </ | ||
| + | |||
| + | =====Job Script===== | ||
| + | |||
| + | Please see the [[quick: | ||
| + | |||
| + | ===Video=== | ||
| + | |||
| + | This video demonstrates job scripts for the '' | ||
| + | |||
| + | * [[https:// | ||
| + | |||
| + | ====Example Job Script==== | ||
| + | |||
| + | This example job script requests 8 cores on a fat node, and a maximum wall time (run time) of 1 hour and 30 minutes. | ||
| + | |||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | #PBS -N magma-example | ||
| + | #PBS -l select=1: | ||
| + | #PBS -l walltime=1: | ||
| + | #PBS -P PROJECTID | ||
| + | #PBS -q bigmem | ||
| + | #PBS -W group_list=bigmemq | ||
| + | |||
| + | |||
| + | CWD=/ | ||
| + | cd $CWD | ||
| + | |||
| + | module load chpc/ | ||
| + | |||
| + | nproc=`cat $PBS_NODEFILE | wc -l` | ||
| + | |||
| + | magma MAGMAPROGTORUN | ||
| + | </ | ||
| + | |||
| + | **Note:** | ||
| + | |||
| + | * Replace '' | ||
| + | * Always use a working sub-directory in your Lustre directory. | ||
| + | * Replace '' | ||
| + | * Replace '' | ||
| + | |||
| + | Save the file, for example as '' | ||
| + | |||
| + | qsub magma1.pbs | ||
| + | |||
| + | You can check the status of the queue with | ||
| + | |||
| + | qstat -u $USER | ||
| + | |||
| + | which should display something like: | ||
| + | |||
| + | Job id Name | ||
| + | ---------------- | ||
| + | 4088494.sched01 | ||
| + | |||
| + | The '' | ||
| + | |||
| + | Job id Name | ||
| + | ---------------- | ||
| + | 4088497.sched01 | ||
| + | |||
| + | with '' | ||
| + | |||
| + | > '' | ||