What is Julia
Julia is a relatively young programming language for numerical computing with JIT (Just-In-Time) techniques implemented for faster execution.
Using Julia in HPC system
To setup required environment variables for Julia, please use following command. The version shown in bold is the default version on the corresponding HPC system.
|module load julia/1.6.1
To work with Julia code interactively, type. To quit the julia environment, type in the julia prompt.
Interactive process that executes over 15 minutes would be killed automatically. User are advised to run Julia in batch mode by submitting job to the SLURM queuing system with the way specified in the next heading.
Run batch Julia jobs
Run parallel Julia jobs
Julia has its ownkeyword which provides both internode and intranode parallelism natively. Other libraries, such as OpenMP or MPI, are not needed.
Julia documentation on the https://docs.julialang.org/en/v0.6.2/stdlib/parallel/#Base.Distributed.@parallelkeyword is at
Sample SLURM command files and programs for both serial and parallel Julia program are provided at
Julia Package Managements
To initiate Julia’s built-in package managee, the “pkg” mode, presskey in the command prompt (to leave that mode, “backspace” at an empty prompt or use Ctrl+C). That should be acceptable for most users.
Selected package management commands:
To initialize the package directory, use.
To list packages installed, use.
To install a package called, type: .
For others, one is advised to consult Julia documents.