Using Julia on a Supercomputer
Summit
Installation
Julia can be very easy to install on Summit. The instructions can be found here and are repeated in this section. It is highly recommended that you install the official generic binaries from the downloads page using the following set of commands. These commands extract the latest version of Julia (1.8.0) into a directory named julia-1.8.0
.
wget https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.0-linux-x86_64.tar.gz
tar zxvf julia-1.8.0-linux-x86_64.tar.gz
After running these commands, you want to add Julia to your path, otherwise you’ll need to specify the full path to where Julia is installed everytime. To add Julia to your path open your ~/.bashrc
or ~/.bash_profile
and add the line
export PATH=$PATH:/path/to/JuliaDirectory/bin
Don’t forget to source your .bashrc
or .bash_profile
afterwards. You should now be able to start a REPL by calling julia
anywhere in your system.
Submitting a Job
- Add
using Pkg
andPkg.activate(".")
at the top of a dedicatedrun.jl
file - Don’t use special characters in your code
Pulling from GitHub
Adding your own Packages
Unlike my experience locally, if you want to add a package of your own to you current environment dev PackageName
doesn’t work. Instead, you need to use the command dev "git@github.com:user/PackageName.jl.git"
.