[Trilinos-Users] Update-2 Re: update..Re: Teuchos_RCP error

Natarajan CS csnataraj at gmail.com
Wed Oct 12 15:34:26 MDT 2011


Sorry for the overload, gave into my temptation. Seems that changing the
Ordinal type was not propagated to timing tests in teuchos. Also found a few
things in sacado_trad that might be issues: for eg: (1508) if ((a =
ADVari::..)); should this be a relational operator?

Cheers,
C.S.N

On Wed, Oct 12, 2011 at 2:25 PM, Natarajan CS <csnataraj at gmail.com> wrote:

> Changing the Teuchos_Ordinal_type to int gets me past the error, but I am
> not sure whether this is a correct thing to do. Is there a way to declare
> int as 64-bit? Maybe, this would resolve the issue (hoping that the
> diagnosis is correct)?
>
> On Wed, Oct 12, 2011 at 1:31 PM, Natarajan CS <csnataraj at gmail.com> wrote:
>
>> Hello all,
>>       I am getting an error (below) while building Teuchos tests for
>> 10.8.2 with MKL BLAS and LAPACK. I couldn't find a similar error in the mail
>> archive ( I haven't come across this error in my previous build of 10.2) and
>> I am a little wary of futzing around in the source. I was wondering if
>> someone might know the workaround.
>>
>> Thanks in advance,
>> C.S.N
>>
>>
>> *****************************************ERROR*************************************************
>> /hpc/soft/natac0/trilinos-10.8.2-Source/packages/teuchos/src/Teuchos_RCP.hpp(288):
>> error: a value of type
>> "Teuchos::SerialComm<Teuchos::Ordinal={Teuchos_Ordinal={ptrdiff_t={long}}}>
>> *" cannot be used to initialize an entity of type "const Teuchos::Comm<int>
>> *"
>>     : ptr_(r_ptr.get()), // will not compile if T is not base class of T2
>>            ^
>>           detected during:
>>             instantiation of "Teuchos::RCP<T>::RCP(const Teuchos::RCP<T2>
>> &) [with T=const Teuchos::Comm<int>,
>> T2=Teuchos::SerialComm<Teuchos::Ordinal={Teuchos_Ordinal={ptrdiff_t={long}}}>]"
>> at line 119 of
>> "/hpc/soft/natac0/trilinos-10.8.2-Source/packages/teuchos/src/Teuchos_DefaultComm.hpp"
>>             implicit definition of "Teuchos::RCP<const Teuchos::Comm<int>>
>> Teuchos::DefaultComm<Ordinal>::defaultSerialComm_ [with Ordinal=int]" at
>> line 109 of
>> "/hpc/soft/natac0/trilinos-10.8.2-Source/packages/teuchos/src/Teuchos_DefaultComm.hpp"
>>             instantiation of "Teuchos::RCP<const Teuchos::Comm<Ordinal>>
>> Teuchos::DefaultComm<Ordinal>::getDefaultSerialComm(const Teuchos::RCP<const
>> Teuchos::Comm<Ordinal>> &) [with Ordinal=int]" at line 173 of
>> "/hpc/soft/natac0/trilinos-10.8.2-Source/packages/teuchos/test/Time/TimeMonitor_UnitTests.cpp"
>>
>> compilation aborted for
>> /hpc/soft/natac0/trilinos-10.8.2-Source/packages/teuchos/test/Time/TimeMonitor_UnitTests.cpp
>> (code 2)
>> make[2]: ***
>> [packages/teuchos/test/Time/CMakeFiles/Teuchos_TimeMonitor_UnitTests.dir/TimeMonitor_UnitTests.cpp.o]
>> Error 2
>> make[2]: *** Waiting for unfinished jobs....
>>
>> ******************************************************************************************************************************************************
>> ********************************************BUILD
>> OPTIONS*****************************************************************
>> cmake \
>>   -D
>> CMAKE_AR:FILEPATH=/hpc/soft/intel/x86_64/ics-2011.0.013/composerxe-2011.4.191/bin/intel64/xiar\
>>   -D
>> CMAKE_LINKER:FILEPATH=/hpc/soft/intel/x86_64/ics-2011.0.013/composerxe-2011.4.191/bin/intel64/xild\
>>   -D
>> CMAKE_CXX_COMPILER:FILEPATH=/hpc/soft/intel/x86_64/ics-2011.0.013/impi/
>> 4.0.2.003/intel64/bin/mpiicpc\ <http://4.0.2.003/intel64/bin/mpiicpc%5C>
>>   -D CMAKE_C_COMPILER:FILEPATH=/hpc/soft/intel/x86_64/ics-2011.0.013/impi/
>> 4.0.2.003/intel64/bin/mpiicc\ <http://4.0.2.003/intel64/bin/mpiicc%5C>
>>   -D
>> CMAKE_Fortran_COMPILER:FILEPATH=/hpc/soft/intel/x86_64/ics-2011.0.013/impi/
>> 4.0.2.003/intel64/bin/mpiifort\<http://4.0.2.003/intel64/bin/mpiifort%5C>
>>   -D CMAKE_INSTALL_PREFIX:PATH=/hpc/soft/natac0/tl_10_8_2 \
>>   -D Trilinos_ENABLE_Epetra:BOOL=ON\
>>   -D Trilinos_ENABLE_Stratimikos:BOOL=ON\
>>   -D Trilinos_ENABLE_Teuchos:BOOL=ON\
>>   -D Trilinos_ENABLE_AztecOO:BOOL=ON\
>>   -D Trilinos_ENABLE_Triutils:BOOL=ON\
>>   -D Trilinos_ENABLE_ML:BOOL=ON\
>>   -D Trilinos_ENABLE_ML_Metis:BOOL=ON\
>>   -D Trilinos_ENABLE_Galeri:BOOL=ON\
>>   -D Trilinos_ENABLE_Amesos:BOOL=ON\
>>   -D Trilinos_ENABLE_Didasko:BOOL=ON\
>>   -D Trilinos_ENABLE_Pamgen:BOOL=ON\
>>   -D Trilinos_ENABLE_FEI:BOOL=ON\
>>   -D Trilinos_ENABLE_Sacado:BOOL=ON\
>>   -D TPL_ENABLE_ParMETIS:BOOL=ON \
>>   -D ParMETIS_INCLUDE_DIRS:PATH=/hpc/soft/natac0/ParMetis-3.1.1\
>>   -D ParMETIS_LIBRARY_DIRS:PATH=/hpc/soft/natac0/ParMetis-3.1.1\
>>   -D TPL_ENABLE_METIS:BOOL=ON\
>>   -D METIS_INCLUDE_DIRS:PATH=/hpc/soft/natac0/ParMetis-3.1.1/METISLib\
>>   -D METIS_LIBRARY_DIRS:PATH=/hpc/soft/natac0/ParMetis-3.1.1\
>>   -D TPL_ENABLE_BLAS:BOOL=ON\
>>   -D
>> TPL_BLAS_LIBRARIES:STRING="-L$MKL_PATH;-lmkl_intel_lp64;-lmkl_sequential;-lmkl_core;;-lpthread;"\
>>   -D TPL_ENABLE_LAPACK:BOOL=ON\
>>   -D
>> TPL_LAPACK_LIBRARIES:STRING="-L$MKL_PATH;-lmkl_intel_lp64;-lmkl_sequential;-lmkl_core;-lpthread"\
>>   -D Trilinos_ENABLE_TESTS:BOOL=ON\
>>   -D DART_TESTING_TIMEOUT:STRING=600\
>>   -D TPL_ENABLE_MPI:BOOL=ON\
>>   -D MPI_BASE_DIR:PATH=/hpc/soft/intel/x86_64/default/impi/lib64\
>>   -D MPI_BIN_DIR:PATH=/hpc/soft/intel/x86_64/default/impi/bin64\
>>   -D CMAKE_CXX_FLAGS:STRING="-limf -O3 -DMPICH_IGNORE_CXX_SEEK"\
>>   -D MPI_USE_COMPILER_WRAPPERS:BOOL=OFF\
>>   $EXTRA_ARGS\
>>   ${TRILINOS_HOME}
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20111012/3f1582c8/attachment.html 


More information about the Trilinos-Users mailing list