JuliaParallel / JuliaParallel/Elemental.jl

How do I use svdvals in parallel ?

Open
#75 19 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
85
Forks
13
PR merge metrics
No merged PRs in 30d

Description

My goal is to add svd(A::DArray) to the julia interface to elemental. I have been looking at svdvals
for understanding how to do it. But I do not know how to use svdvals in parallel. The following program
has a sum of diffs of close to 0 when using a single process. When I run it with julia -p 2 or mpiexecjl -n 2 the sum of diffs is large.
How do I convert the program to run in parallel ?

```julia
using Elemental
using DistributedArrays
using LinearAlgebra

A = drandn(50,50)
Al = Matrix(A)

a = svdvals(Al)
b = Elemental.svdvals(A)
println("sum of diffs= ",sum(a-b))
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.