# How to use FluxMPI on slurm?

**URL:** https://discourse.julialang.org/t/how-to-use-fluxmpi-on-slurm/94251
**Category:** Machine Learning
**Tags:** question, hpc, mpi, lux
**Created:** [February 8, 2023, 4:16am UTC](https://discourse.julialang.org/t/how-to-use-fluxmpi-on-slurm/94251 "2023-02-08T04:16:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Emrick\_Liu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/emrick_liu/32/30820_2.png) [@Emrick\_Liu](https://discourse.julialang.org/u/Emrick_Liu)
#### Post date: [February 8, 2023, 4:16am UTC](https://discourse.julialang.org/t/how-to-use-fluxmpi-on-slurm/94251/1 "2023-02-08T04:16:08Z")

</div>

Hi, I tried to use FluxMPI on Slurm, couldn’t figure out the configuration. Can anyone provide a minimum example?

Currently, I’m basically doing something like this:

```julia
#SBATCH --ntasks=3

export JULIA_CUDA_MEMORY_POOL=none

mpiexecjl --project=. -n 3 julia mpitraining.jl

```

where the `mpitraining.jl` is the example code I get from FluxMPI repo. Currently, I got error like

```julia
slurmstepd: error: Detected 1 oom-kill event(s) in StepId=15447183.0. Some of your processes may have been killed by the cgroup out-of-memory handler.
srun: error: skl-a-62: task 2: Out Of Memory

```

I’m not sure how to resolve this, since I’m quite new to the distributed computing; another question is: What argument should I provide via `sbatch` file, and what arguments should I use `ClusterManagers.jl`? What would be a good

Any suggestion is welcome and much appreciated.
