[Trilinos-Users] compile error

Hoemmen, Mark mhoemme at sandia.gov
Mon Jul 21 09:52:46 MDT 2014


Hi David -- sorry about the trouble!  I will try this out and see what's going on.  I haven't seen this issue on any of our test builds.  Note that your use of a thread-parallel BLAS (with OpenMP) might fight with ThreadPool for certain Tpetra::MultiVector operations.  Also, if you're not using an optional TPL (like TBB), you don't have to turn it OFF in your CMake options.

In general, if you are using Tpetra, I would recommend tracking the development version using the public git repository.  Tpetra is currently in a phase of rapid development to improve thread parallelism support.  We are doing our best to maintain backwards compatibility, but I think it would help to track the development version, rather than waiting three months for releases.  I would also recommend that you use the "Kokkos refactor" version of Tpetra for better thread support, if you are really interested in threads.  We've done a much better job with OpenMP, for example.  Send me an e-mail if you are interested.

Thanks!
mfh
________________________________________
Message: 1
Date: Fri, 18 Jul 2014 16:17:38 -0700
From: David Hysom <hysom1 at llnl.gov>
To: "trilinos-users at software.sandia.gov"
        <trilinos-users at software.sandia.gov>
Subject: [Trilinos-Users] compile error
Message-ID: <53C9AB12.108 at llnl.gov>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

Trying to compile with intel, I get the following error:

[ 34%] Building CXX object
packages/kokkos/classic/LinAlg/CMakeFiles/kokkoslinalg.dir/Kokkos_Mkl_RawSparseKernels.cpp.o
/p/lscratchd/hysom/trilinos-11.8.1-Source/packages/kokkos/classic/LinAlg/Kokkos_Mkl_RawSparseKernels.cpp(529):
error: expected a "}"

My cmake script follows:

TRILINOS_SOURCE_PATH=/p/lscratchd/hysom/trilinos-11.8.1-Source
TRILINOS_INSTALL_PATH=/p/lscratchd/hysom/trilinos_intel

EXTRA_ARGS=$@

rm -f CMakeCache.txt

cmake  \
           -D KokkosClassic_DefaultNode:STRING="Kokkos::OpenMPNode" \
           -D Teuchos_ENABLE_COMPLEX:BOOL=OFF \
           -D Tpetra_INST_COMPLEX_DOUBLE:BOOL=OFF \
           -D Trilinos_ENABLE_ThreadPool:BOOL=ON \
           -D Trilinos_ENABLE_TEUCHOS_TIME_MONITOR:BOOL=ON \
           -D TPL_ENABLE_Pthread:BOOL=ON  \
           -D TPL_ENABLE_MPI:BOOL=OFF \
           -D TPL_ENABLE_TBB:BOOL=OFF \
           -D TPL_ENABLE_MKL:BOOL=ON \
           -D
MKL_LIBRARY_DIRS:STRING="/opt/intel-14.0/mkl/lib/intel64;/opt/intel-14.0/compiler/lib/intel64/;/usr/lib64"
\
           -D MKL_LIBRARY_NAMES:STRING="mkl_intel_lp64;
mkl_intel_thread; mkl_core; iomp5; pthread" \
           -D TBB_LIBRARY_DIRS="/opt/intel-14.0/tbb/lib/intel64/" \
           -D
TBB_INCLUDE_DIRS="/opt/intel-14.0/tbb/include/tbb/;/opt/intel-14.0/tbb/include"
\
           -D TPL_MKL_INCLUDE_DIRS:STRING="/opt/intel-14.0/mkl/include" \
           -D Trilinos_ENABLE_Kokkos:BOOL=ON \
           -D Trilinos_ENABLE_OpenMP:BOOL=ON \
           -D Trilinos_ENABLE_Fortran:BOOL=ON \
           -D Trilinos_ENABLE_CHECKED_STL:BOOL=OFF \
           -D Trilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=OFF \
           -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=OFF \
           -D Trilinos_ENABLE_Anasazi:BOOL=ON \
           -D Trilinos_ENABLE_Tpetra:BOOL=ON \
           -D Trilinos_ENABLE_Epetra:BOOL=ON \
           -D Trilinos_ENABLE_EpetraExt:BOOL=ON \
           -D Trilinos_ENABLE_TESTS:BOOL=OFF \
           -D Trilinos_ENABLE_EXAMPLES:BOOL=OFF \
           -D CMAKE_INSTALL_PREFIX:STRING=${TRILINOS_INSTALL_PATH} \
           -D CMAKE_BUILD_TYPE:STRING=RELEASE \
           -D CMAKE_C_COMPILER:STRING="icc" \
           -D CMAKE_C_FLAGS:STRING="-O3 -g -Wall" \
           -D CMAKE_CXX_COMPILER:STRING="icpc " \
           -D CMAKE_CXX_FLAGS:STRING="-O3 -g -Wall " \
           -D Tpetra_ENABLE_RTI:BOOL=ONN \
           -D CMAKE_FORTRAN_FLAGS:STRING="-g -O3 " \
           -D BLAS_LIBRARY_NAMES:STRING="mkl_intel_lp64;
mkl_intel_thread; mkl_core; iomp5; pthread" \
           -D LAPACK_LIBRARY_NAMES:STRING="mkl_intel_lp64;
mkl_intel_thread; mkl_core; iomp5; pthread" \
           -D
BLAS_LIBRARY_DIRS:STRING="/opt/intel-14.0/mkl/lib/intel64;/opt/intel-14.0/compiler/lib/intel64/;/usr/lib64"
\
           -D
LAPACK_LIBRARY_DIRS:STRING="/opt/intel-14.0/mkl/lib/intel64;/opt/intel-14.0/compiler/lib/intel64/;/usr/lib64"
\
           -D TPL_ENABLE_LAPACK:STRING=ON \
           -D TPL_ENABLE_BLAS:STRING=ON \
           -D DART_TESTING_TIMEOUT:STRING=600 \
           ${EXTRA_ARGS} \
           ${TRILINOS_SOURCE_PATH}



------------------------------

_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
https://software.sandia.gov/mailman/listinfo/trilinos-users


End of Trilinos-Users Digest, Vol 107, Issue 10
***********************************************


More information about the Trilinos-Users mailing list