Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

Latest commit

 

History

History
19 lines (17 loc) · 931 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 931 Bytes

HPCManager.jl

This packages launches remote workers in Slurm cluster environment. It parse the environment variable SLURM_JOB_NODELIST to get the assigned nodes and their corresponding number of cores, then utilize the internal addprocs function to launch remote workers through ssh protocol. The simplest way to use this package is to create a start up file startup.jl containing the following lines

using Pkg
Pkg.activate(".")
using HPCManager

init_cluster()

@everywhere begin
  using Pkg
  Pkg.activate(".")
end

then in the .slurm file, -L argument to preload this start up file.

julia -L startup.jl my_code.jl

In the above example, it is assumed that this pacakge is installed locally for a julia project. A working examples of parallel Mote Carlo simulation using DifferentialEquations.jl pacakge can be found in examples folder.