# Distributed.ProcessExitedException error using Pardiso.jl

**URL:** https://discourse.julialang.org/t/distributed-processexitedexception-error-using-pardiso-jl/81065
**Category:** New to Julia
**Tags:** factorization
**Created:** [May 14, 2022, 3:16pm UTC](https://discourse.julialang.org/t/distributed-processexitedexception-error-using-pardiso-jl/81065 "2022-05-14T15:16:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ahmed](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@ahmed](https://discourse.julialang.org/u/ahmed)
#### Post date: [May 14, 2022, 3:16pm UTC](https://discourse.julialang.org/t/distributed-processexitedexception-error-using-pardiso-jl/81065/1 "2022-05-14T15:16:40Z")

</div>

I’m trying to learn Pardiso.jl to use it to do matrix factorization. The following code creates random Hermitian matrices and then do the numerical factorization on them. For some matrices, this works fine and sometimes I just get the Distributed.ProcessExitedException error at the last step. Any idea why this happens?  
This is my code:

```julia
using LinearAlgebra,Serialization,Arpack,Pardiso,LinearMaps,SparseArrays
A1=sprand(ComplexF64,300,300,0.002);
A=A1+adjoint(A1)
ps = MKLPardisoSolver();
set_matrixtype!(ps, -4);
pardisoinit(ps);
fix_iparm!(ps, :N);
A_pardiso = get_matrix(ps, A, :N);
b = rand(ComplexF64, size(A, 1));
set_phase!(ps, Pardiso.ANALYSIS);
pardiso(ps, A_pardiso, b);
set_phase!(ps, Pardiso.NUM_FACT);
pardiso(ps, A_pardiso, b)

```
