← Back to team overview

dolfin team mailing list archive

Re: cmake.local - try it

 

On 13 August 2010 23:40, Garth N. Wells <gnw20@xxxxxxxxx> wrote:
> On Fri, 2010-08-13 at 23:36 +0200, Kristian Ølgaard wrote:
>> On 13 August 2010 15:23, Garth N. Wells <gnw20@xxxxxxxxx> wrote:
>> > I've added a 'cmake.local' file to DOLFIN (analogous to 'scons.local')
>> > to make building with CMake easy. It would be good if any who is
>> > interested could try it out and send feedback. My impression is that
>> > partial re-builds are *much* faster with CMake compared to SCons.
>>
>> Running cmake.local crashes on my machine:
>>
>> [ 17%] Building CXX object dolfin/CMakeFiles/dolfin.dir/graph/ParMETIS.cpp.o
>> cd /home/oelgaard/software/fenics/dolfin/dolfin && /usr/bin/c++
>> -Ddolfin_EXPORTS -DPACKAGE_VERSION=\"0.9.8\" -DHAS_MPI -DHAS_CGAL
>> -DHAS_MTL4 -DHAS_PETSC -DHAS_SLEPC -DHAS_UMFPACK -DHAS_CHOLMOD
>> -DHAS_PARMETIS -DHAS_SCOTCH -DHAS_GMP -ansi -pipe -O2 -Wall
>> -frounding-math -g -fPIC -I/home/oelgaard/software/fenics/dolfin
>> -I/usr/include/libxml2 -I/home/oelgaard/local/include
>> -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi
>> -I/home/oelgaard/local/lib/mtl4
>> -I/home/oelgaard/local/lib/petsc-3.0.0-p12/linux-gnu-cxx-debug/include
>> -I/home/oelgaard/local/lib/petsc-3.0.0-p12/include
>> -I/usr/lib/openmpi/lib
>> -I/home/oelgaard/local/lib/slepc-3.0.0-p7/include
>> -I/usr/include/suitesparse
>> -I/home/oelgaard/local/lib/scotch_5.1/include   -o
>> CMakeFiles/dolfin.dir/graph/ParMETIS.cpp.o -c
>> /home/oelgaard/software/fenics/dolfin/dolfin/graph/ParMETIS.cpp
>> /home/oelgaard/software/fenics/dolfin/dolfin/graph/ParMETIS.cpp: In
>> static member function ‘static void
>> dolfin::ParMETIS::compute_partition(std::vector<unsigned int,
>> std::allocator<unsigned int> >&, const dolfin::LocalMeshData&)’:
>> /home/oelgaard/software/fenics/dolfin/dolfin/graph/ParMETIS.cpp:100:
>> error: ‘ParMETIS_V3_PartMeshKway’ was not declared in this scope
>>
>> I switched off parmetis using ccmake to make it work.
>>
>
> Did you install ParMETIS via the package manager or by hand?

I have libparmetis-dev 3.1.1-1 and libparmetis3.1 3.1.1-1 installed
through synaptic.

>
>> Cmake also failed to find trilinos (I have libtrilinos and
>> libtrilinos-dev 10.0.4.dfsg-1 installed through synaptic):
>>
>> CMake Warning at CMakeLists.txt:117 (find_package):
>>   Could not find a configuration file for package Trilinos.
>>
>>   Set Trilinos_DIR to the directory containing a CMake configuration file for
>>   Trilinos.  The file will have one of the following names:
>>
>>     TrilinosConfig.cmake
>>     trilinos-config.cmake
>>
>
> You need at least Trilinos 10.2 - before that Trilinos didn't create the
> cmake config file that we use.

> Did it still build (without Trilinos)?

It appears so, but when I tried to build the poisson demo using the
Makefile I got a lot of:

/home/oelgaard/local/lib/slepc-3.0.0-p7/linux-gnu-cxx-debug/lib/libslepc.so:
undefined reference to `VecNormalize(_p_Vec*, double*)'
/home/oelgaard/local/lib/slepc-3.0.0-p7/linux-gnu-cxx-debug/lib/libslepc.so:
undefined reference to `ISCreateStride(ompi_communicator_t*, int, int,
int, _p_IS**)'
/home/oelgaard/software/fenics/dolfin/local/lib/libdolfin.so:
undefined reference to `MatGetSize(_p_Mat*, int*, int*)'
/home/oelgaard/software/fenics/dolfin/local/lib/libdolfin.so:
undefined reference to `VecGetSize(_p_Vec*, int*)'
/home/oelgaard/local/lib/slepc-3.0.0-p7/linux-gnu-cxx-debug/lib/libslepc.so:
undefined reference to `VecTDot(_p_Vec*, _p_Vec*, double*)'

but maybe I need to update my petsc/slepc installation.

Kristian

> Garth
>
>> Kristian
>>
>> > Garth
>> >
>> >
>> > _______________________________________________
>> > Mailing list: https://launchpad.net/~dolfin
>> > Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
>> > Unsubscribe : https://launchpad.net/~dolfin
>> > More help   : https://help.launchpad.net/ListHelp
>> >
>
>
>



References