# MPI with srun, mpd error

**URL:** <https://discourse.julialang.org/t/mpi-with-srun-mpd-error/20999>\
**Category:** General Usage\
**Tags:** mpi\
**Created:** [February 20, 2019, 2:24am UTC](https://discourse.julialang.org/t/mpi-with-srun-mpd-error/20999 "2019-02-20T02:24:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tims\_Corbett](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@Tims\_Corbett](https://discourse.julialang.org/u/Tims_Corbett)\
**Post date:** [February 20, 2019, 2:24am UTC](https://discourse.julialang.org/t/mpi-with-srun-mpd-error/20999/1 "2019-02-20T02:24:32Z")

</div>

With intelmpi, srun results in the following error. What is the fix (other than using sbatch & mpirun)?

srun -p slurm -n 3 -t 00:10:00 /julia-0.7.0/bin/julia ./mpitest.jl  
mpiexec\_backend-0-0.local: cannot connect to local mpd (/tmp/mpd2.console\_svcarpacomp); possible causes:

1. no mpd is running on this host
2. an mpd is running but was started without a “console” (-n option)

this works normally:  
srun -p slurm -n 3 -t 00:10:00 /julia-0.7.0/bin/julia -e “using MPI”
