# Julia vs Trilinos

**URL:** https://discourse.julialang.org/t/julia-vs-trilinos/82128
**Category:** Performance
**Created:** [June 2, 2022, 1:02pm UTC](https://discourse.julialang.org/t/julia-vs-trilinos/82128 "2022-06-02T13:02:49Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [June 2, 2022, 1:02pm UTC](https://discourse.julialang.org/t/julia-vs-trilinos/82128/1 "2022-06-02T13:02:49Z")

</div>

Hi all,

I am just learning about Julia, and see another package for mathematics named Trilinos.  
[TrilinosHandsOnTutorial · trilinos/Trilinos\_tutorial Wiki](https://github.com/trilinos/Trilinos_tutorial/wiki/TrilinosHandsOnTutorial)

[https://trilinos.github.io/](https://trilinos.github.io/)

I was thinking and wondering if I can get Julia’ packages that can do what Trilinos’ packages could do to solve Linear problems and non-linear problems?

Anyone ever try Trilinos wholly and compare the computation performance with Julia? for example in computing eigenvalue, in Trilinos we got Anasazi, what is the best eigenvalue solver in Julia?

 ![Summary-of-Trilinos-packages](https://global.discourse-cdn.com/julialang/original/3X/6/e/6e267347e73f128d94b2fa05a5ea1ad3687325fb.png)

---

<div class="post-metadata">

### Author: ![johnmyleswhite](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnmyleswhite/32/31_2.png) [@johnmyleswhite](https://discourse.julialang.org/u/johnmyleswhite)
#### Post date: [June 2, 2022, 1:07pm UTC](https://discourse.julialang.org/t/julia-vs-trilinos/82128/2 "2022-06-02T13:07:53Z")

</div>

Trilinos seems to be a family of libraries rather than a language. Are you interested in exposing those libraries in Julia? Having Julia libraries compete with them?

---

<div class="post-metadata">

### Author: ![brenhinkeller](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brenhinkeller/32/36648_2.png) [@brenhinkeller](https://discourse.julialang.org/u/brenhinkeller)
#### Post date: [June 2, 2022, 1:14pm UTC](https://discourse.julialang.org/t/julia-vs-trilinos/82128/3 "2022-06-02T13:14:17Z")

</div>

Yeah, Trilinos is a set of libraries (primarily parallel solvers for various numerical problems), not a language. If you want to use Trilinos solvers in Julia there is [GitHub - barche/Trilinos.jl: Julia wrappers for Trilinos](https://github.com/barche/Trilinos.jl)

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [June 2, 2022, 1:18pm UTC](https://discourse.julialang.org/t/julia-vs-trilinos/82128/4 "2022-06-02T13:18:39Z")

</div>

Yes I want to calculate the computation time for Julia libraries head to head with Trilinos libraries. Is it done already?

---

<div class="post-metadata">

### Author: ![brenhinkeller](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brenhinkeller/32/36648_2.png) [@brenhinkeller](https://discourse.julialang.org/u/brenhinkeller)
#### Post date: [June 2, 2022, 1:33pm UTC](https://discourse.julialang.org/t/julia-vs-trilinos/82128/5 "2022-06-02T13:33:39Z")

</div>

Good question, I’m not sure

---

<div class="post-metadata">

### Author: ![slmcbane](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/slmcbane/32/36592_2.png) [@slmcbane](https://discourse.julialang.org/u/slmcbane)
#### Post date: [June 2, 2022, 1:48pm UTC](https://discourse.julialang.org/t/julia-vs-trilinos/82128/6 "2022-06-02T13:48:17Z")

</div>

I don’t think you’ll find any Julia libraries for parallel algorithms that are as sophisticated as Trilinos, except for libraries that just wrap Trilinos. Pure Julia implementations of distributed algorithms aren’t there, in my experience. It’s something I’d like to work on.

That said, Trilinos (and PETSc which I think is most people’s favored option in the C/C++ ecosystem today) represent a monumental engineering effort and recreating their functionality in Julia is probably not a good use of time unless the Julia implementation brings something new to the table.

I should add for problems on a shared memory machine Julia implementations are probably competitive; for sparse matrices of floating point types you’ll just get calls to optimized implementations in C anyway.

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [June 2, 2022, 2:03pm UTC](https://discourse.julialang.org/t/julia-vs-trilinos/82128/7 "2022-06-02T14:03:04Z")

</div>

Thanks for this, I will try this Julia wrappers.

---

<div class="post-metadata">

### Author: ![slmcbane](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/slmcbane/32/36592_2.png) [@slmcbane](https://discourse.julialang.org/u/slmcbane)
#### Post date: [June 2, 2022, 2:07pm UTC](https://discourse.julialang.org/t/julia-vs-trilinos/82128/8 "2022-06-02T14:07:20Z")

</div>

FYI I just took a look and saw that that wrapper package has not been updated in 4 years and is likely broken. It doesn’t expose very much of Trilinos’ functionality, either. Seems like an opportunity for someone to make an up to date wrapper, if the functionality is in demand.

There’s a much more up-to-date wrapper for [PETSc](https://github.com/JuliaParallel/PETSc.jl), which should be able to do most of the same things.

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [June 2, 2022, 2:15pm UTC](https://discourse.julialang.org/t/julia-vs-trilinos/82128/9 "2022-06-02T14:15:07Z")

</div>

Yes it has not been updated since 4 years ago. I don’t really know how to make a wrapper. It could be nice to create one, I will try it then.

I just know about PETSc today. Thanks
