ddemidov / amgcl

C++ library for solving large sparse linear systems with algebraic multigrid method
http://amgcl.readthedocs.org/
MIT License
726 stars 111 forks source link

Why the example(poisson3Db)'s comsume time on my computer is so slower than you give? #229

Open kju512 opened 2 years ago

kju512 commented 2 years ago

Hello! I write a finite element system for my work, and I want to use amgcl to accelerate my system solving speed. but when I run the poisson3Db example or my system by amgcl on my computer, the solving speed is so slow. I don't know the reason. Can you give me some suggestions to solve this problem? my computer processor is Intel(R) Core(TM) i5-7200U CPU @2.50GHz. the running result of poisson3Db on my computer is like as follows:

Matrix c:\poisson3Db.mtx: 85623x85623 RHS c:\poisson3Db_b.mtx: 85623x1 Solver

Type: BiCGStab Unknowns: 85623 Memory footprint: 4.57 M

Preconditioner

Number of levels: 3 Operator complexity: 1.20 Grid complexity: 1.08 Memory footprint: 58.93 M

level unknowns nonzeros memory

0        85623        2374949     50.07 M (83.20%)
1         6361         446833      7.78 M (15.65%)
2          384          32566      1.08 M ( 1.14%)

Iters: 24 Error: 8.33789e-09

[poisson3Db: 132.982 s] (100.00%) [ read: 90.995 s] ( 68.43%) [ setup: 8.703 s] ( 6.54%) [ solve: 33.273 s] ( 25.02%)

ddemidov commented 2 years ago

I would check if the example is compiled with full optimization turned on (release mode in visual studio), and that no other processes compete for the CPU resources at the time of the test.

kju512 commented 2 years ago

Thank you so much for your reply,I'll try it.发自我的荣耀手机-------- 原始邮件 --------发件人: Denis Demidov @.>日期: 2022年5月29日周日 03:01收件人: ddemidov/amgcl @.>抄送: kju512 @.>, Author @.>主 题: Re: [ddemidov/amgcl] Why the example(poisson3Db)'s comsume time on my computer is so slower than you give? (Issue #229) I would check if the example is compiled with full optimization turned on (release mode in visual studio), and that no other processes compete for the CPU resources at the time of the test.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>