[Trilinos-Users] [EXTERNAL] Compile/linking time

Bradley, Andrew Michael ambradl at sandia.gov
Mon Sep 14 18:02:51 EDT 2015


Great! Thanks for reporting the compile-time differences. -Andrew

________________________________
From: Christopher Thiele <christopher.thiele92 at gmail.com>
Sent: Monday, September 14, 2015 3:57 PM
To: Bradley, Andrew Michael
Cc: trilinos-users at trilinos.org
Subject: Re: [EXTERNAL] [Trilinos-Users] Compile/linking time

Hi Andrew,

Thank you very much for the quick reply. I did not know about the Trilinos_ENABLE_EXPLICIT_INSTANTIATION option. Setting it to true solved my problem and the build time is now around 40s instead of several minutes.

Thank you,
Christopher


On Mon, Sep 14, 2015 at 4:17 PM, Bradley, Andrew Michael <ambradl at sandia.gov<mailto:ambradl at sandia.gov>> wrote:

Hi Christopher,


Let's start with the most obvious possibilities. If you have not already done so, would you build Trilinos with these flags:

 -D Trilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON \
 -D BUILD_SHARED_LIBS:BOOL=ON \

(If you have already used these flags, we'll need to think more about what could be slowing down your driver's build time.)


Explicit instantiation will build object files for the Trilinos templated classes with the most common types. That should speed up compilation time for your driver.


Building with shared libs will speed up linking time for your driver.


You can use just one or the other of these two options; they are complementary.


Cheers,

Andrew


________________________________
From: Trilinos-Users <trilinos-users-bounces at trilinos.org<mailto:trilinos-users-bounces at trilinos.org>> on behalf of Christopher Thiele <christopher.thiele92 at gmail.com<mailto:christopher.thiele92 at gmail.com>>
Sent: Monday, September 14, 2015 10:41 AM
To: trilinos-users at trilinos.org<mailto:trilinos-users at trilinos.org>
Subject: [EXTERNAL] [Trilinos-Users] Compile/linking time

Hello,

I just installed Trilinos and tried some examples on solving linear systems with Tpetra, Belos and Ifpack2. So far it works fine, but compiling and linking my example code, which has less than 200 lines, takes very long (several minutes). This makes it a bit difficult for me to try different solver and preconditioner settings etc. I did not install any packages except the ones mentioned before, Muelu and dependencies. I already tried static and dynamic linking, but it does not make much of a difference.

I appreciate any suggestions.

Regards,
Christopher

P.S.: The call to the compiler reads:

mpicxx -std=c++11 -fopenmp -O3  test.cc -o test  -lteko -lstratimikos -lstratimikosbelos -lstratimikosaztecoo -lstratimikosamesos -lstratimikosml -lstratimikosifpack -lifpack2-adapters -lifpack2 -lzoltan2 -lanasazitpetra -lModeLaplace -lanasazi -lbelostpetra -lbelos -lml -lifpack -lpamgen_extras -lpamgen -lamesos2 -lamesos -lgaleri-xpetra -lgaleri -laztecoo -lisorropia -lthyratpetra -lthyracore -lthyratpetra -lthyracore -lxpetra-sup -lxpetra-ext -lxpetra -ltpetraext -ltpetrainout -ltpetra -lkokkostsqr -ltpetrakernels -ltpetraclassiclinalg -ltpetraclassicnodeapi -ltpetraclassic -ltpetraext -ltpetrainout -ltpetra -lkokkostsqr -ltpetrakernels -ltpetraclassiclinalg -ltpetraclassicnodeapi -ltpetraclassic -ltriutils -lzoltan -lrtop -lteuchoskokkoscomm -lteuchoskokkoscompat -lteuchosremainder -lteuchosnumerics -lteuchoscomm -lteuchosparameterlist -lteuchoscore -lteuchoskokkoscomm -lteuchoskokkoscompat -lteuchosremainder -lteuchosnumerics -lteuchoscomm -lteuchosparameterlist -lteuchoscore -lkokkosalgorithms -lkokkoscontainers -lkokkoscore -lkokkosalgorithms -lkokkoscontainers -lkokkoscore -ltpi -lgtest /usr/lib64/liblapack.so /usr/lib64/libblas.so


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20150914/6f97f0e8/attachment.html>


More information about the Trilinos-Users mailing list