Skip to content

Julia#

Julia is a dynamic programming language that offers high performance while being easy to learn and develop code in.

This section contains demos (in the form of scripts and notebooks) and how-to guides for doing various things with Julia on NLR HPC environments.

Available modules#

Currently Julia 1.12.6 is available in the module julia/1.12.6 on Kestrel's CPU nodes. Load the module using,

module load julia/1.12.6

Julia 1.9.x does not work well on Sapphire Rapids

We advise against installing and using Julia 1.9.x on Kestrel as packages can fail to precompile and result in a segmentation fault. This is a known issue with Julia 1.9.x on Sapphire Rapids processors, possibly due to an LLVM issue.

Contents#

  1. Installing Julia
  2. Tour of Julia
  3. Parallel Computing in Julia
  4. Calling Python, C, and FORTRAN from Julia

Demo Scripts and Notebooks#

The following scripts and notebooks are available on the master branch of NatLabRockies/HPC to download and run,

Requirements and Installation#

Running the demos requires the python modules mpi4py and julia. For details on installing these modules, see the 'Environment Setup' section of the README found in the demos/scripts directory.

For more information on mpi4py, see the mpi4py documentation

For more information on PyJulia, see the PyJulia documentation.