Skip to content

Julia

A high-performance numerical computing environment and language


Julia requires an environment module

In order to use Julia, you must first load the appropriate environment module:

module load julia

Julia is a high-level programming language which is designed for high performance numerical computing. It has a base library that contains a wealth of methods common to numerical computing and scientific/engineering applications. The language also has built-in support for parallel computing.

Using Julia on RCC resources#

To run Julia in interactive mode, type the julia command at the prompt and Julia console will appear. For detailed information about Julia usage, please refer to the official Julia documentation.

Submitting Julia HPC jobs#

Julia can be run in parallel on the HPC by submitting a job to the Slurm job scheduler.

The following shows a simple job submit script:

1
2
3
4
5
6
7
8
9
#!/bin/bash

#SBATCH -n 4         # Instruct the scheduler to reserve four CPU cores
#SBATCH -A genacc_q  # For this example, we submit to the genacc_q Slurm account
#SBATCH -t 00:10:00  # Instruct the scheduler to reserve 10 minutes on the cluster

module load julia    # Load the Julia module

julia -p 4 TEST.jl   # Run Julia (notice that we supply `-p 4`; this should match the #SBATCH -n value above)

Installing Julia with juliaup#

In addition to the system-provided Julia module, users may install their own Julia versions using the official Julia version manager juliaup. This approach installs Julia in your home directory and allows you to manage and switch between Julia versions independently of the system installation.

Warning

The juliaup installation is not compatible with the system-wide Julia module. If you have previously loaded the Julia module, unload it before using juliaup using the command module unload julia.

Installation Steps#

Load the web proxy module so that the installer can access the internet.

$ module load webproxy

Install Julia using the official juliaup installer.

$ curl -fsSL https://install.julialang.org | sh

Reload your shell environment so the new path is available.

$ . ~/.bashrc

Start Julia.

$ julia

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.12.5 (2026-02-09)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org release
|__/                   |

julia>

Notes#

  • juliaup installs the latest stable version of Julia by default.
  • Prior Julia versions can be installed and managed using juliaup commands:
1
2
3
juliaup add 1.11
juliaup default 1.11
juliaup status

For more information, see the official repository.