Hello im trying to run this for loop parallel on evwery Process but still getting Error ,I Triyed it in 2 ways, can someone Help please?thanks

using Distributed

addprocs(2)

@everywhere using DistributedArrays

@everywhere using SharedArrays

A = SharedArray[{Float64}(n-1,n-1)

```
@distributed (+) for i in 1:n-2
A[i,i+1] = -1
A[i,i] = 2
A[i+1,i] = -1
end
@sync @distributed for i in 1:n-2
A[i,i+1] = -1
A[i,i] = 2
A[i+1,i] = -1
end
```

ERROR: LoadError: SingularException(1)

Stacktrace:

[1] ldiv!(::Diagonal{Float64,Array{Float64,1}}, ::Array{Float64,2}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\LinearAlgebra\src\diagonal.jl:575