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

USCqserver/HPCManager.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.