Using various versions of SPM at the CBU

Launch spm with

spm {[versionnumber]} {matlab6.5 | matlab7.1 | matlab7.3} {nodesktop} {nojvm} {eeg|fmri|pet} {devel} {[machinename]} 

where {} indicate a parameter is optional and | indicates alternatives

By default Matlab is launched with a Java desktop tool. If you want to turn off the desktop add "nodesktop"

spm nodesktop

You'll probably usually want the FMRI defaults

spm fmri

By default, SPM 2 is launched under matlab 6.5, and SPM 5 under matlab 7.3 (upgraded from 7.1 14/8/2007). You may specify another version with the arguments matlab6.5, matlab7.1 and matlab7.3. See CbuComputingResources for information about which machines SPM runs on: this is dependent on the version of Matlab you are launching.

The "devel" argument for spm 5 adds /imaging/local/spm/spm5/cbu_updates_devel to your path. This is the wild frontier of local imaging updates.

The machine with the lowest load (as measured every 15 mins) is chosen. If, however, you wish to run it on a specific machine use spm [machinename], e.g., spm l13

TIP: if you're using the default Matlab desktop, to break into a script while it is running, go to the white "launchspm_inner" window and press ctrl-C

If you have a directory in your homespace ~/matlab which contains the file .addtospm then ~/matlab will be added to the top of your SPM paths.

Other useful commands

showload

Displays load on all machines

bestmegmachine

Returns the machine currently loafing most

Controlling the verbosity of output

Versions in current use

spm 8

The latest version of SPM, with all the current patches we could get. We recommend you use this version if you are starting a study from scratch. Run SPM5 at the CBU with:

spm

or

spm 8

at the unix prompt.

spm 5

Still widely used, especially for people finishing up older studies. Run SPM5 at the CBU with:

spm 5

at the unix prompt.