# Issues with machinefile and SLURM

**URL:** <https://discourse.julialang.org/t/issues-with-machinefile-and-slurm/7882>\
**Category:** Julia at Scale\
**Created:** [December 20, 2017, 4:47pm UTC](https://discourse.julialang.org/t/issues-with-machinefile-and-slurm/7882 "2017-12-20T16:47:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![vchuravy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vchuravy/32/8_2.png) [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Post date:** [December 20, 2017, 7:23pm UTC](https://discourse.julialang.org/t/issues-with-machinefile-and-slurm/7882/2 "2017-12-20T19:23:33Z")

</div>

Using `srun` should be fine since that is the correct way of starting a job.

The workflow should work something like this:

```julia
salloc | sbatch # create resources.
julia> addprocs(SlurmManager(2)) # SlurmManager should inherit the outside allocation.

```

---

_[View the full topic](https://discourse.julialang.org/t/issues-with-machinefile-and-slurm/7882)._
