[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*: [eigen] help: eigen3.3 desn't imporve the speed with multitreading.*From*: ztdepyahoo <ztdepyahoo@xxxxxxxxx>*Date*: Thu, 10 Sep 2020 12:24:34 +0800*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version :content-transfer-encoding; bh=uVnLn6KLqlpCc4Dx+5vcp0In/A4Z3zmQdJnQVHJwqkw=; b=NBiPJaUcIxCPcjKdfBBJMChekLZp/USyujW4SfK5l5CZToNeHDDdkboD9HY1ghfvUN xMIHJcVlCJN4MgUwsGlzXNTFDUUSUzfE3QkvP1zatzMuAct2rZr0q+Fs8tml9LURpgMN GzsLJ4Z005FxFCqVOfIZCzhfpOpfBcndh4JiMZhfPxPU/m3XCfenIeBPqJUgm6lGAsL6 vACIuTFk9cItDf5FXr+uAPEuxgH3Qnh5KXIo+EtQmCccASRTfe5MoIOpjoRU+SgrnZi5 K425xc6q/f0iifEPBkTLsLbQtNfbMoLSGEnXDe8eK5SbNAbfQFYREnLkrxjAiHpNk2uC ojtg==

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.

Regards

Eigen::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);

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

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

**Messages sorted by:**[ date | thread ]- Prev by Date:
**[eigen] help: setNbThreads(12) doesn't work.** - Next by Date:
**Re: [eigen] help: eigen3.3 desn't imporve the speed with multitreading.** - Previous by thread:
**[eigen] help: setNbThreads(12) doesn't work.** - 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/ |