Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Solve time

More
2 years 4 months ago - 2 years 4 months ago #4110 by NV
Solve time was created by NV
Hello Everyone,
I have some problems with the solving speed on my windows computer. The solving procedure is a couple of times slower compared to solving the same solid mechanical problem on my Apple macbook. I cannot imagine this is only due to the hardware setting.
On the windows pc im using:
Code:
ngsolve.solvers.Newton(bfa, solution, inverse="pardiso", dirichletvalues=solution.vec)
On the Macbook I probably did not have to use pardiso but I can't check it anymore.
Do you have ideas why it is so much slower or tips how to solve the problem faster (e.g. use of another sparse solver)?
Last edit: 2 years 4 months ago by NV.
More
2 years 4 months ago #4112 by joachim
Replied by joachim on topic Solve time
Hi NV,

check the number running threads. If you use TaskManager from ngsolve, and pardiso/mkl uses multithreading it may happen that you heavily overload you machine. Here an MKL_NUM_THREADS=1 or similar helps.

if your system matrix is symmetric and positive definite, try the ngsolve-internal solver:
Code:
inverse="sparsecholesky"

Joachim
The following user(s) said Thank You: Nils
More
2 years 3 months ago #4118 by Nils
Replied by Nils on topic Solve time
Hi Joachim,
as always you helped a lot, thank you very much. It was just the TaskManager() which has not been used and on Windows only a single thread was running.
Wish you all merry Christmas and a good start into 2022.

Best regards,
Nils
Time to create page: 0.119 seconds