[Trilinos-Users] [EXTERNAL] [Peridigm-users] Moocho

Eligiusz Postek ewpostek at googlemail.com
Mon Oct 30 18:37:14 EDT 2017


Hello Dave,
Finally, it appeared that it should be Netcdf and HDF5 libs
used  as parallel, for example (the build passes quite smoothly, some
warnings only):

-D TPL_HDF5_LIBRARIES=/opt/cray/hdf5-parallel/1.8.16/GNU/5.1/lib/libhdf5.so
\
-D TPL_HDF5_INCLUDE_DIRS=/opt/cray/hdf5-parallel/1.8.16/GNU/5.1/include \
-D Netcdf_LIBRARY_DIRS="/opt/cray/netcdf-hdf5parallel/4.4.0/GNU/5.1/lib" \
-D
Netcdf_INCLUDE_DIRS:PATH="/opt/cray/netcdf-hdf5parallel/4.4.0/GNU/5.1/include"
\
-D Netcdf_LIBRARY_NAMES:STRING="netcdf;hdf5" \

Anyway, there is a problem with peridigm.
I use the script:
/home/ewpostek/cmm/cmake-3.9.4-Linux-x86_64/bin/cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DTrilinos_DIR:PATH="/lustre/tetyda/home/ewpostek/Tri2/insta2/include" \
-DCMAKE_C_COMPILER:STRING="/opt/cray/craype/2.5.3/bin/cc" \
-DCMAKE_CXX_COMPILER:STRING="/opt/cray/craype/2.5.3/bin/CC" \
-D
Blas_LIBRARY:FILEPATH="/lustre/tetyda/home/ewpostek/lapack_build/lib_stat\libblas.a"
\
-D
Lapack_LIBRARY:FILEPATH="/lustre/tetyda/home/ewpostek/lapack_build/lib_stat/liblapack.a;/lustre/tetyda/home/ewpostek/lapack_build/lib_stat/libtmglib.a"
\
-D TRILINOS_DIR:PATH="/lustre/tetyda/home/ewpostek/Tri2/insta2" \
-DBOOST_ROOT:PATH=/apps/boost/1.60.0/GNU/5.3 \
-DCMAKE_CXX_FLAGS:STRING="-O2 -Wall -pedantic -std=c++11 -Wno-long-long
-ftrapv -Wno-deprecated" \
-DCMAKE_INSTALL_PREFIX:PATH=/lustre/tetyda/home/ewpostek/peri14a/insta \
/home/ewpostek/peri14a/peridigm-master

but I  got the seria of warnings and errors;
/home/ewpostek/Tri2/insta2/include/Epetra_MpiComm.h:497:0: warning:
ignoring #pragma omp critical [-Wunknown-pragmas]
 #pragma omp critical
 ^
/home/ewpostek/peri14a/peridigm-master/src/core/Peridigm_Factory.cpp:61:21:
fatal error: aprepro.h: No such file or directory
compilation terminated.
make[2]: *** [src/CMakeFiles/PeridigmLib.dir/core/Peridigm_Factory.cpp.o]
Error 1
make[2]: *** Waiting for unfinished jobs....

can  you still give a hint?

best  regards,
Elek  Postek




On Fri, Oct 27, 2017 at 1:19 PM, Eligiusz Postek <ewpostek at googlemail.com>
wrote:

> ​Dave,
> Anyway, it is true, that it is warning,
> the problem is rather with linking
> [ 57%] Linking CXX static library libmoocho.a
> [ 57%] Built target moocho
> make: *** [all] Error 2
> ​The warning passed.
> Elek
>>
>
> On Fri, Oct 27, 2017 at 10:46 AM, Eligiusz Postek <ewpostek at googlemail.com
> > wrote:
>
>> Dave,
>> thank you for the answer.
>> I do not have warnings-as-errors on.
>> I am examining the problem.
>>
>> It is considered as an issue
>> https://github.com/trilinos/Trilinos/issues/1877
>> It is opened by Bartlett Roscoe who works on Trilinos.
>>
>> I was just thinking about a temporary measure
>> to circumvent it.
>> The problem appears in version 11 as well.
>>
>> Best regards,
>> Elek
>>
>>
>>
>>
>>
>> On Wed, Oct 25, 2017 at 9:53 PM, Littlewood, David John <
>> djlittl at sandia.gov> wrote:
>>
>>> Elek,
>>>
>>>
>>>
>>> That looks like a warning, not an error.  The build should not fail
>>> because of a warning, unless you have warnings-as-errors turned on.  Are
>>> you certain that the moocho warning is the cause of the build failure?
>>>
>>>
>>>
>>> Further, the warning line tells you how to suppress the warning.  Or you
>>> could hack Trilinos to make the offending non-virtual destructor into a
>>> virtual destructor (maybe there is no destructor defined, in which case
>>> just add a virtual no-op destructor).  Admittedly, this shouldn’t be
>>> something you have to deal with.  Just trying to get you a path forward.
>>>
>>>
>>>
>>> I’m going to forward this to the Trilinos mailing list, as it’s not a
>>> Peridigm issue per se.
>>>
>>>
>>>
>>> Dave
>>>
>>>
>>>
>>>
>>>
>>> *From: *<peridigm-users-bounces at software.sandia.gov> on behalf of
>>> Eligiusz Postek <ewpostek at googlemail.com>
>>> *Date: *Wednesday, October 25, 2017 at 2:36 PM
>>> *To: *"peridigm-users at software.sandia.gov" <
>>> peridigm-users at software.sandia.gov>
>>> *Subject: *[EXTERNAL] [Peridigm-users] Moocho
>>>
>>>
>>>
>>> Dear Colleagues,
>>> Let me ask, is it a  method to avoid MOOCHO
>>> pack ?
>>> I build trilinos for peridigm.
>>>
>>> However, I get the error:
>>>
>>> /home/ewpostek/Tri2/trilinos-12.12.1-Source/packages/moocho/
>>> src/MoochoPack/configurations/MamaJama/MoochoPack_NLPAlgoConfigMamaJama.cpp:1922:1:
>>> required from here
>>> /home/ewpostek/Tri2/trilinos-12.12.1-Source/packages/teuchos
>>> /core/src/Teuchos_RCPDecl.hpp:985:33: warning: deleting object of
>>> polymorphic class type 'MoochoPack::CheckConvergenceStd_Strategy' which
>>> has non-virtual destructor might cause undefined behaviour
>>> [-Wdelete-non-virtual-dtor]
>>>    void free( T* ptr ) { if(ptr) delete ptr; }
>>>                                  ^
>>> [ 57%] Linking CXX static library libmoocho.a
>>> [ 57%] Built target moocho
>>> make: *** [all] Error 2
>>>
>>>
>>>
>>> No, it is an issue in trilinos, as below:
>>>
>>>
>>> https://github.com/trilinos/Trilinos/issues/1877
>>>
>>> I can't avoid this error working on two different clusters (cray xc40
>>> and another with centos).
>>>
>>> However, I guess you build the peridigm.
>>>
>>> Could you be so kind to give a hint ?
>>>
>>> Best regards,
>>>
>>> Elek
>>>
>>> orcid.org/0000-0002-5757-8757
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20171030/7d916bf9/attachment.html>


More information about the Trilinos-Users mailing list