[Trilinos-Users] [EXTERNAL] Re: trilinos-12.0.1 with intel compiler - exo2mat error

Williams, Alan B william at sandia.gov
Tue Jun 23 18:44:18 EDT 2015


It looks like line 85 of snl_fei_MapContig.hpp is constructing 'value_type(0,0)' where the second argument to value_type is a template-parameter (named VAL_TYPE) that is actually a pointer.

So a quick work-around to try (if you don't mind trying something) would be to cast that second '0' like this: static_cast<VAL_TYPE>(0).
It looks like that change may also need to be made on line 87.

Which version of the intel compiler are you using? This code is quite old, and we've built it on intel versions 12 through 14 routinely.

Alan


From: Trilinos-Users [mailto:trilinos-users-bounces at trilinos.org] On Behalf Of Giuseppe Calo
Sent: Tuesday, June 23, 2015 10:00 AM
To: Rossi Simone
Cc: trilinos-users at trilinos.org
Subject: [EXTERNAL] Re: [Trilinos-Users] trilinos-12.0.1 with intel compiler - exo2mat error

Many Thanks Simone,

now the "make" get the 61% with:

[ 63%] Building CXX object packages/fei/base/CMakeFiles/fei_base.dir/snl_fei_RaggedTable_specialize.cpp.o
/usr/include/c++/4.4.6/bits/stl_pair.h(90): error: a value of type "int" cannot be used to initialize an entity of type "fei::ctg_set<int> *"
             second(std::forward<_U2>(__y)) { }
                    ^
          detected during:
            instantiation of "std::pair<_T1, _T2>::pair(_U1 &&, _U2 &&) [with _T1=int, _T2=fei::ctg_set<int> *, _U1=int, _U2=int]" at line 85 of "/users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/fei/base/snl_fei_MapContig.hpp"
            instantiation of "snl_fei::MapContig<VAL_TYPE>::value_type snl_fei::MapContig<VAL_TYPE>::iterator::operator*() [with VAL_TYPE=fei::ctg_set<int> *]" at line 37 of "/users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/fei/base/snl_fei_RaggedTable_specialize.hpp"

Any idea?
Regards,
--------------------------------------------------------------------
Giuseppe Calò
CMCC - Supercomputing Center
presso Complesso Ecotekne - Università del Salento
Prov.le Lecce - Monteroni - 73100 Lecce  IT
http://www.cmcc.it/supercomputingcenter

Mobile (+39) 320 8190020
Mail   giuseppe.calo at cmcc.it<mailto:giuseppe.calo at cmcc.it>
--------------------------------------------------------------------

Il giorno 23/giu/2015, alle ore 14:58, Rossi Simone <simone.rossi at epfl.ch<mailto:simone.rossi at epfl.ch>> ha scritto:


Dear Giuseppe,
"MAT_F_DONT_COPY_DATA" is a matio_flags.
My guess is that trillions cannot find Matio.h,
or you do not have it.
I compiled successfully seacas using the flag
-D TPL_ENABLE_Matio=OFF
in the configuration.
I hope this helps,
Best,
Simone

Simone Rossi,
Duke University
simone.rossi at duke.edu<mailto:simone.rossi at duke.edu>

________________________________
Da: Trilinos-Users [trilinos-users-bounces at trilinos.org<mailto:trilinos-users-bounces at trilinos.org>] per conto di Giuseppe Calo [giuseppe.calo at cmcc.it<mailto:giuseppe.calo at cmcc.it>]
Inviato: martedì 23 giugno 2015 10.05
A: trilinos-users at trilinos.org<mailto:trilinos-users at trilinos.org>
Cc: Giuseppe Calo
Oggetto: [Trilinos-Users] trilinos-12.0.1 with intel compiler - exo2mat error
Hi all,
I need to install "trilinos-12.0.1" with the intel compiler.

I have just compiled and installed (with the intel compiler):

 BOOST/boost-1.58.0
 EMOS/libemos-4.0.6
 IMPI/intel_mpi_5.0.3.048
 SZIP/szip-2.1_int15
 PARALLEL_NETCDF/parallel-netcdf-1.6.1
 GRIB_API/grib_api-1.13.1
 HDF5/hdf5-1.8.15-patch1_parallel
 MAGICS/magics-2.24.7
 NETCDF/netcdf-C_4.3.3.1-F_4.4.2_C++_4.2.1_parallel
 SWIG/swig-3.0.5
 UDUNITS/udunits-2.2.19
 CMAKE/cmake-3.3.0-rc1

Before to run "make":

- I load the current environment module:

 BOOST/boost-1.58.0
 EMOS/libemos-4.0.6
 IMPI/intel_mpi_5.0.3.048
 SZIP/szip-2.1_int15
 PARALLEL_NETCDF/parallel-netcdf-1.6.1
 GRIB_API/grib_api-1.13.1
 HDF5/hdf5-1.8.15-patch1_parallel
 MAGICS/magics-2.24.7
 NETCDF/netcdf-C_4.3.3.1-F_4.4.2_C++_4.2.1_parallel
 SWIG/swig-3.0.5
 UDUNITS/udunits-2.2.19
 CMAKE/cmake-3.3.0-rc1

- run "cmake" with:

cmake \
 -DMPI_BASE_DIR=/users/home/opt/intel/impi/5.0.3.048/intel64 \
 -DCMAKE_INSTALL_PREFIX:FILEPATH="/users/home/opt-intel_2015.3.187/trilinos/trilinos_12.0.1" \
 -DMPI_EXEC:FILEPATH=/users/home/opt/intel/impi/5.0.3.048/intel64/bin/mpirun \
 -DBLAS_LIBRARY_DIRS:FILEPATH=/users/home/opt/intel/composer_xe_2015.3.187/mkl/lib/intel64 \
 -DBLAS_LIBRARY_NAMES:STRING=mkl_rt \
 -D LAPACK_LIBRARY_NAMES:STRING=mkl_rt \
 -DLAPACK_LIBRARY_DIRS:FILEPATH=/users/home/opt/intel/composer_xe_2015.3.187/mkl/lib/intel64 \
 -DCMAKE_EXE_LINKER_FLAGS="-L/users/home/opt-intel_2015.3.187/netcdf/netcdf-C_4.3.3.1-F_4.4.2_C++_4.2.1-parallel/lib -lnetcdf -L/users/home/opt/intel/composer_xe_2015.3.187/compiler/lib/intel64 -L/users/home/opt/intel/composer_xe_2015.3.187/mkl/lib/intel64" \
-DTPL_ENABLE_MPI=ON \
-DTrilinos_ENABLE_ALL_PACKAGES=ON \
-DTPL_ENABLE_GLM=OFF \
-DTrilinos_ENABLE_CXX11=ON \
 -D Trilinos_ENABLE_Piro:BOOL=ON \
 -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
 -D Trilinos_ENABLE_Netcdf=ON \
 -D Trilinos_ENABLE_OpenMP:BOOL=ON \
          -D Trilinos_ENABLE_Epetra:BOOL=ON \
          -D Trilinos_ENABLE_Teuchos:BOOL=ON \
          -D Trilinos_ENABLE_CTrilinos:BOOL=ON \
          -D Trilinos_ENABLE_ForTrilinos:BOOL=ON \
          -D DART_TESTING_TIMEOUT:STRING=600 \
          -D Trilinos_EXTRA_LINK_FLAGS:STRING="$FORTRAN_LIBRARIES" \
 -D BUILD_SHARED_LIBS:BOOL=ON \
-D CMAKE_CXX_COMPILER:STRING=/users/home/opt/intel/impi/5.0.3.048/intel64/bin/mpiicpc \
-D CMAKE_Fortran_FLAGS:STRING="-lgfortran" \
/users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source

but I always receive:

Scanning dependencies of target exo2mat
[ 41%] Building C object packages/seacas/applications/exo2mat/CMakeFiles/exo2mat.dir/exo2mat.c.o
/users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/seacas/applications/exo2mat/exo2mat.c: In function 'matPutStr':
/users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/seacas/applications/exo2mat/exo2mat.c:163: error: 'MAT_F_DONT_COPY_DATA' undeclared (first use in this function)
/users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/seacas/applications/exo2mat/exo2mat.c:163: error: (Each undeclared identifier is reported only once
/users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/seacas/applications/exo2mat/exo2mat.c:163: error: for each function it appears in.)
........
...
.

Can someone help me?
Thanks.
--------------------------------------------------------------------
Giuseppe Calò
CMCC - Supercomputing Center
presso Complesso Ecotekne - Università del Salento
Prov.le Lecce - Monteroni - 73100 Lecce  IT
http://www.cmcc.it/supercomputingcenter

Mobile (+39) 320 8190020
Mail   giuseppe.calo at cmcc.it<mailto:giuseppe.calo at cmcc.it>
--------------------------------------------------------------------



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20150623/18d5c291/attachment.html>


More information about the Trilinos-Users mailing list