Page tree

The MPI.jl library contains wrappers of MPI functions for Julia.

The MPI interface for the Julia language is described here.

You can find some example codes using MPI.ji from here.

A very simple example script "01-hello.jl" is shown below

using MPI
MPI.Init()
comm = MPI.COMM_WORLD
print("Hello world, I am rank $(MPI.Comm_rank(comm)) of $(MPI.Comm_size(comm))\n")
MPI.Barrier(comm)

Gadi

You could submit a PBS job to run Rmpi in Gadi. The example job script is show below (make sure "gdata/dk92" is included in your storage request) 

#!/bin/bash
 
#PBS -l ncpus=4
#PBS -l mem=16GB
#PBS -l jobfs=20GB
#PBS -q normal
#PBS -P a00
#PBS -l walltime=00:30:00
#PBS -l storage=gdata/dk92+gdata/a00+scratch/a00
#PBS -l wd

module use /g/data/dk92/apps/Modules/modulefiles
module load NCI-data-analysis/22.06

mpirun julia 01-hello.jl >& output.log
  • No labels