Without Trilinos, the linking takes 0.307s

So I am adding one library from Trilinos after another. I find that as I
add more Trilinos libraries, the linking takes increasing time.

until libifpack.so ==> 3m 47s
until libzoltan2.so ==> 3m 54s
until libaztecoo.so ==> 10m 6s

These times are already too high. So there is no single library in Trilinos
that is causing problem. Whole of Trilinos seems to be problematic.

I added --verbose to the linking step and here are some flags used

$ sh CMakeFiles/cmTC_a2bf5.dir/link.txt

Using built-in specs.

COLLECT_GCC=/usr/bin/g++

COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/6/lto-wrapper

Target: x86_64-suse-linux

Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada,go
--enable-offload-targets=hsa --enable-checking=release
--with-gxx-include-dir=/usr/include/c++/6 --enable-ssp --disable-libssp
--disable-libvtv --disable-libcc1 --enable-plugin --with-bugurl=
http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj
--with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --enable-linker-build-id
--enable-linux-futex --enable-gnu-indirect-function --program-suffix=-6
--without-system-libunwind --enable-multilib --with-arch-32=x86-64
--with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux

Thread model: posix

gcc version 6.2.1 20161209 [gcc-6-branch revision 243481] (SUSE Linux)

COMPILER_PATH=/usr/lib64/gcc/x86_64-suse-linux/6/:/usr/lib64/gcc/x86_64-suse-linux/6/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/6/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/6/../../../../x86_64-suse-linux/bin/

LIBRARY_PATH=/usr/lib64/gcc/x86_64-suse-linux/6/:/usr/lib64/gcc/x86_64-suse-linux/6/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib64/gcc/x86_64-suse-linux/6/../../../../x86_64-suse-linux/lib/:/usr/lib64/gcc/x86_64-suse-linux/6/../../../:/lib/:/usr/lib/

COLLECT_GCC_OPTIONS='-v' '-D' 'DEAL_II_HAVE_USABLE_FLAGS_DEBUG'
'-Wpedantic' '-fPIC' '-Wall' '-Wextra' '-Wpointer-arith' '-Wwrite-strings'
'-Wsynth' '-Wsign-compare' '-Wswitch' '-Woverloaded-virtual'
'-Wno-long-long' '-Wplacement-new=0' '-Wno-deprecated-declarations'
'-Wno-literal-suffix' '-fopenmp-simd' '-std=c++14'
'-Wno-unused-local-typedefs' '-Og' '-ggdb' '-o' 'cmTC_a2bf5'
'-L/home/spack/opt/spack/linux-opensuse20161217-x86_64/gcc-6/tbb-2017.3-zeacdx23pi4h4lrlo5xxg7p3ihx5qt4q/lib'
'-rdynamic' '-rdynamic' '-ggdb' '-I'
'/home/spack/opt/spack/linux-opensuse20161217-x86_64/gcc-6/openmpi-2.0.1-asdjmd22cnyktv2athcx3ouhrozknk22/include'
'-pthread'
'-L/home/spack/opt/spack/linux-opensuse20161217-x86_64/gcc-6/hwloc-1.11.4-7osold4o3nkppdzghwo5fjlgmxpsqb4h/lib'
'-L/home/spack/opt/spack/linux-opensuse20161217-x86_64/gcc-6/openmpi-2.0.1-asdjmd22cnyktv2athcx3ouhrozknk22/lib64'
'-shared-libgcc' '-mtune=generic' '-march=x86-64'


Best
praveen


On Tue, Dec 20, 2016 at 1:08 PM, Wolfgang Bangerth <[email protected]>
wrote:

> On 12/19/2016 09:19 PM, Praveen C wrote:
>
>> I removed all the libraries and do
>>
>> /home/spack/opt/spack/linux-opensuse20161217-x86_64/gcc-6/op
>> enmpi-2.0.1-asdjmd22cnyktv2athcx3ouhrozknk22/bin/mpic++
>>   -DDEAL_II_HAVE_USABLE_FLAGS_DEBUG -pedantic -fPIC -Wall -Wextra
>> -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Wswitch
>> -Woverloaded-virtual -Wno-long-long -Wno-placement-new
>> -Wno-deprecated-declarations -Wno-literal-suffix -fopenmp-simd -std=c++14
>> -Wno-unused-local-typedefs -Og -ggdb -Wa,--compress-debug-sections
>> CMakeFiles/cmTC_427e9.dir/src.cxx.o  -o cmTC_427e9
>>
>>
>> which works. There are whole bunch of libraries that are being linked and
>> one
>> of them seems to be causing the problem.
>>
>
> You need to find out which one it is. Just start with the original command
> line and remove things one by one until you can't remove anything any more
> without the problem happening.
>
> Best
>  W.
>
>
> --
> ------------------------------------------------------------------------
> Wolfgang Bangerth          email:                 [email protected]
>                            www: http://www.math.colostate.edu/~bangerth/
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see https://groups.google.com/d/fo
> rum/dealii?hl=en
> --- You received this message because you are subscribed to the Google
> Groups "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to