Re: [eigen] help: eigen3.3 desn't imporve the speed with multitreading. |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: eigen@xxxxxxxxxxxxxxxxxxx <eigen@xxxxxxxxxxxxxxxxxxx>*Subject*: Re: [eigen] help: eigen3.3 desn't imporve the speed with multitreading.*From*: ztdepyahoo <ztdepyahoo@xxxxxxxxx>*Date*: Thu, 10 Sep 2020 20:53:04 +0800*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-transfer-encoding; bh=mfwYplSoaVGAjveIFBF71KanXwqq3nWzh9216ew5PVE=; b=MVHGnCkM7ojy3KHglWGPBwc9b8fJ4E+IM+kyH5QmMpmEUcYLHkjWrv5tH9aG+voSiH 0O5lb/B7MOW2Q3DcQ3FDbe4qN2MZk1lKLbBkb86nfdOvAfMxTB2qXPJgt4NgUzNvvbNM 1ZGwd2YRZc/nyQvARIFzGZX6NE+ayECxnzY9KvzQCz5Oe4PYOwbBviB5KoNQBEaj+zru HMUWfRrRfgWrZl4PBJLnBb1gRwvjkYb0zBMxzjqajHar5tvnMqAisHi2vWIeHGrkBIFA Gg4zkvRcb0KQPAksPQb/8F4M4MbdigwK0Tj76sY3+EKtxT81KT7U0RP8uP4vLMBu37T5 SGaQ==

yes, -fopenmp is in the flag. I have tried many times. it doen'twork.

On 9/10/2020 20:47，Gael Guennebaud<gael.guennebaud@xxxxxxxxx> wrote：

Hi,make sure to use Eigen's head, and to compile with OpenMP enabled on your compiler, for instance with -fopenmp with GCC.GaëlOn Thu, Sep 10, 2020 at 6:25 AM ztdepyahoo <ztdepyahoo@xxxxxxxxx> wrote:I have set the tread =12 in the program . Eigen::nbThreads( ) also feedbacks correct number.but the speed of solution seems doesn't change.what is the reason.RegardsEigen::setNbThreads(12);int nthreads = Eigen::nbThreads( );std::cout << "THREADS = " << nthreads <<std::ends; // returns '1'BiCGSTAB<SparseMatrix<double, RowMajor>, IncompleteLUT<double>> solver;solver.setTolerance(1e-10);solver.setMaxIterations(1000);solver.compute(A);VectorXd x = solver.solve(b);

**References**:**[eigen] help: eigen3.3 desn't imporve the speed with multitreading.***From:*ztdepyahoo

**Re: [eigen] help: eigen3.3 desn't imporve the speed with multitreading.***From:*Gael Guennebaud

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] help: eigen3.3 desn't imporve the speed with multitreading.** - Next by Date:
**Re: [eigen] help: eigen3.3 desn't imporve the speed with multitreading.** - Previous by thread:
**Re: [eigen] help: eigen3.3 desn't imporve the speed with multitreading.** - Next by thread:
**Re: [eigen] help: eigen3.3 desn't imporve the speed with multitreading.**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |