[Trilinos-Users] Error compiling with CMake

Nunion m.skates82 at gmail.com
Sun Nov 21 18:16:04 MST 2010


Hello all,

I've been dealing with a recurring issue installing and running Trilinos
packages.  When I configure with tests and examples enabled, I only end up
with executables of the examples (i.e. no source files).  This last time
enabling all tests and examples for the packages took almost 2hrs.  I have
attached my configure script.  Please let me know if you see anything out of
the ordinary.  Also I am interested in interlacing the vectors for
Epetra_multivector's i.e. as opposed to storing them as u1, u2, u3, v1, v2,
v3, storing them as u1, v1, u2, v2, u3, v3 in order to improve performance.
Is there a way to try this out in Epetra?  Is this offered in the Belos
package?

cmake \
-D Trilinos_ENABLE_STRONG_C_COMPILE_WARNINGS:BOOL=OFF \
-D CMAKE_INSTALL_PREFIX:PATH="${PWD}" \
-D CMAKE_BUILD_TYPE:STRING=DEBUG \
-D TPL_ENABLE_MPI:BOOL=OFF \
-D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_Amesos:BOOL=ON \
-D Trilinos_ENABLE_Anasazi:BOOL=ON \
-D Trilinos_ENABLE_AztecOO:BOOL=ON \
-D Trilinos_ENABLE_Belos:BOOL=ON \
-D Trilinos_ENABLE_CTrilinos:BOOL=ON \
-D Trilinos_ENABLE_Didasko:BOOL=ON \
-D Trilinos_ENABLE_Epetra:BOOL=ON \
-D Trilinos_ENABLE_EpetraExt:BOOL=ON \
-D Trilinos_ENABLE_Galeri:BOOL=ON \
-D Trilinos_ENABLE_Intrepid:BOOL=ON \
-D Trilinos_ENABLE_Ifpack:BOOL=ON \
-D Trilinos_ENABLE_Isorropia:BOOL=ON \
-D Trilinos_ENABLE_Komplex:BOOL=ON \
-D Trilinos_ENABLE_Meros:BOOL=ON \
-D Trilinos_ENABLE_Mesquite:BOOL=ON \
-D Trilinos_ENABLE_Moertel:BOOL=ON \
-D Trilinos_ENABLE_Moocho:BOOL=ON \
-D Trilinos_ENABLE_ML:BOOL=ON \
-D Trilinos_ENABLE_Stokhos:BOOL=ON \
-D Trilinos_ENABLE_Teuchos:BOOL=ON \
-D Trilinos_ENABLE_Thyros:BOOL=ON \
-D Trilinos_ENABLE_Tpetra:BOOL=ON \
-D Trilinos_ENABLE_TrilinosCouplings:BOOL=ON \
-D Trilinos_ENABLE_Triutils:BOOL=ON \
-D Trilinos_ENABLE_Zoltan:BOOL=ON \
-D Trilinos_ENABLE_TESTS:BOOL=ON \
-D TrilinosCouplings_ENABLE_TESTS:BOOL=ON \
-D TrilinosCouplings_ENABLE_EXAMPLES:BOOL=ON \
-D Trilinos_ENABLE_TESTS:BOOL=ON \
-D ML_ENABLE_TESTS:BOOL=ON \
-D ML_ENABLE_EXAMPLES:BOOL=ON \
-D DART_TESTING_TIMEOUT:STRING=600 \
/home/walker/Desktop/trilinos/trilinos-10.4.1-Source/


On Mon, Nov 15, 2010 at 3:36 PM, Willenbring, James M <jmwille at sandia.gov>wrote:

>  If you have the examples and tests you want to build enabled at configure
> time, you just have to type make in the directory where the examples are.
> If you don’t have tests and examples enabled, you don’t have to start over,
> you simply need to:
>
>
>
> (Option A: enable all tests and examples)
>
>
>
> rm CMakeCache.txt
>
>
>
> then add
>
>
>
> -DTrilinos_ENABLE_TESTS:BOOL=ON
>
>
>
> to your list of configure arguments, and then run cmake again.  Then you
> can use “make” to build the tests and examples.
>
>
>
> It is most common to simply turn on all tests and examples for the packages
> you are building.
>
>
>
> To enable ML examples specifically, you can
>
>
>
> rm CMakeCache.txt
>
>
>
> then add
>
>
>
> -DML_ENABLE_EXAMPLES:BOOL=ON
>
>
>
> To your list of configure arguments, then run cmake and make again.
>
>
>
> Jim
>
>
>
> *From:* michael.turnley at gmail.com [mailto:michael.turnley at gmail.com] *On
> Behalf Of *Nunion
> *Sent:* Monday, November 15, 2010 2:10 PM
> *To:* Salinger, Andrew
> *Cc:* Willenbring, James M
> *Subject:* Re: [Trilinos-Users] Error compiling with CMake
>
>
>
> Thanks for the response.  I have already installed several trilinos
> packages, ie. ML, Epetra, Aztec, etc.   I simply want to compile and run the
> examples in the example directories.  I guess I just need an example of the
> commands to do that from within the package, for example to compile the
> BasicExample files within ML.
>
>  On Mon, Nov 15, 2010 at 10:37 AM, Andy Salinger <agsalin at sandia.gov>
> wrote:
>
>
> I'm wondering if Mark is pointing to the ML CMakeLists.txt
> and not the to the top Trilinos one when he runs cmake.
> Make sure to run  "cmake [-D options] .." if you are building
> in a subdirectory of Trilinos or  "cmake [-D options] ../Trilinos"
> if you are in a directory even with Trilinos.
>
> Andy
>
>
>
> On Mon, 2010-11-15 at 09:14 -0700, Willenbring, James M wrote:
> > Mark,
> >
> >
> >
> > Please outline exactly what you did to arrive at this error.  The
> > Quickstart is appropriate for building and installing Trilinos.
> >
> >
> >
> > Jim
> >
> >
> >
> > From:trilinos-users-bounces at software.sandia.gov<From%3Atrilinos-users-bounces at software.sandia.gov>
> > [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of
> > Nunion
> > Sent: Sunday, November 14, 2010 11:37 AM
> > To: trilinos-users at software.sandia.gov
> > Subject: [Trilinos-Users] Error compiling with CMake
> >
> >
> >
> >
> >
> > Hello,
> >
> > I am new to the Trilinos package, and am trying to compile and run
> > some of the ML code located in the /examples/BasicExamples/ directory.
> > In particular, I am trying to compile with cmake.  However, I am not
> > clear as to how I am to proceed using this.  The Quickstart guide on
> > CMake seems to be tailored for installing the Trilinos package.  In
> > particular, I am getting the error:
> >
> >
> > INCLUDE Could not find include file: PackageAddExecutableAndTest
> > ...
> > ...
> > Unknown CMake command "PACKAGE_ADD_EXECUTABLE".
> >
> > These are present in the CMakeLists.txt file.  Is this file to be
> > edited and a specific file name is to be put in its place, i.e.
> > INCLUDE("package name")?
> >
> > Thanks in advance,
> >
> > Mark
> >
> >
> >
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20101121/0ffd5053/attachment.html 


More information about the Trilinos-Users mailing list