Skip to content

SBCL

Steel Bank Common Lisp (SBCL) is a high performance Common Lisp compiler. In addition to the compiler and runtime system for ANSI Common Lisp, it provides an interactive environment including a debugger, a statistical profiler, a code coverage tool, and many other extensions.

SBCL is available as a module on Apocrita.

Usage

To run the default installed version of SBCL, simply load the sbcl module:

$ module load sbcl
$ sbcl --help

Usage: sbcl [runtime-options] [toplevel-options] [user-options]

Then run the required script:

sbcl --script example.lisp

For interactive use of SBCL, use a qlogin session:

qlogin
module load sbcl
sbcl

Or enter the debug mode in a similar manner:

qlogin
module load sbcl
sbcl invoke-debugger

Example job

Serial job

Here is an example job running on 1 core and 1G memory:

#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe smp 1
#$ -l h_rt=1:0:0
#$ -l h_vmem=1G

module load sbcl
sbcl --script example.lisp

References