[Dune] Strange problem with MPI_Comm ?

Benedikt Oswald benedikt.oswald at lspr.ch
Thu Mar 26 17:00:44 CET 2015


Hello Markus, thanks for the help, sorry for the late reply...we are a
bit under pressure.
I am right now trying out your suggestions. In fact, the MPI compile
flags are added in
the respective cmake file, cf. below, but when I run the compile with
make VERBOSE=1
then I see this:

Greetings & thanks, Benedikt


aint103 hades/3ddgfd> make VERBOSE=1
cd /scratch/daint/boswald/gitwork/hades/build-cmake &&
/apps/daint/cmake/2.8.12.2/bin/cmake
-H/scratch/daint/boswald/gitwork/hades
-B/scratch/daint/boswald/gitwork/hades/build-cmake --check-build-system
CMakeFiles/Makefile.cmake 0
cd /scratch/daint/boswald/gitwork/hades/build-cmake &&
/apps/daint/cmake/2.8.12.2/bin/cmake -E cmake_progress_start
/scratch/daint/boswald/gitwork/hades/build-cmake/CMakeFiles
/scratch/daint/boswald/gitwork/hades/build-cmake/hades/3ddgfd/CMakeFiles/progress.marks
cd /scratch/daint/boswald/gitwork/hades/build-cmake && make -f
CMakeFiles/Makefile2 hades/3ddgfd/all
make[1]: Entering directory
`/scratch/daint/boswald/gitwork/hades/build-cmake'
make -f hades/3ddgfd/CMakeFiles/hades3ddgfd.dir/build.make
hades/3ddgfd/CMakeFiles/hades3ddgfd.dir/depend
make[2]: Entering directory
`/scratch/daint/boswald/gitwork/hades/build-cmake'
cd /scratch/daint/boswald/gitwork/hades/build-cmake &&
/apps/daint/cmake/2.8.12.2/bin/cmake -E cmake_depends "Unix Makefiles"
/scratch/daint/boswald/gitwork/hades
/scratch/daint/boswald/gitwork/hades/hades/3ddgfd
/scratch/daint/boswald/gitwork/hades/build-cmake
/scratch/daint/boswald/gitwork/hades/build-cmake/hades/3ddgfd
/scratch/daint/boswald/gitwork/hades/build-cmake/hades/3ddgfd/CMakeFiles/hades3ddgfd.dir/DependInfo.cmake
--color=
make[2]: Leaving directory
`/scratch/daint/boswald/gitwork/hades/build-cmake'
make -f hades/3ddgfd/CMakeFiles/hades3ddgfd.dir/build.make
hades/3ddgfd/CMakeFiles/hades3ddgfd.dir/build
make[2]: Entering directory
`/scratch/daint/boswald/gitwork/hades/build-cmake'
/apps/daint/cmake/2.8.12.2/bin/cmake -E cmake_progress_report
/scratch/daint/boswald/gitwork/hades/build-cmake/CMakeFiles 8
[100%] Building CXX object
hades/3ddgfd/CMakeFiles/hades3ddgfd.dir/hades3ddgfd.cc.o
cd /scratch/daint/boswald/gitwork/hades/build-cmake/hades/3ddgfd &&
/opt/cray/craype/2.2.1/bin/CC   -DENABLE_BOOST -DHAVE_CONFIG_H -Wall -O2
-I/users/boswald/extlib/superludist/3.3/cray-mpich/7.1.1/gcc/4.9.2/SRC
-std=c++11  -I/scratch/daint/boswald/gitwork/hades/build-cmake
-I/scratch/daint/boswald/gitwork/hades
-I/scratch/daint/boswald/gitwork/dune-common
-I/scratch/daint/boswald/gitwork/dune-geometry
-I/scratch/daint/boswald/gitwork/dune-grid
-I/scratch/daint/boswald/gitwork/dune-alugrid
-I/scratch/daint/boswald/gitwork/dune-localfunctions
-I/scratch/daint/boswald/gitwork/dune-istl
-I/users/boswald/extlib/boost/1.57.0/gcc/4.9.2/include   
-DHAVE_SUPERLU_DIST -DCMAKE_SYSTEM_NAME=Linux -o
CMakeFiles/hades3ddgfd.dir/hades3ddgfd.cc.o -c
/scratch/daint/boswald/gitwork/hades/hades/3ddgfd/hades3ddgfd.cc
/scratch/daint/boswald/gitwork/hades/hades/3ddgfd/hades3ddgfd.cc:41:2:
warning: #warning "warning:::HAVE_MPI is def'd !!!" [-Wcpp]
 #warning "warning:::HAVE_MPI is def'd !!!"
  ^






On 25/03/15 17:08, Markus Blatt wrote:
> Hi,
>
> On Wed, Mar 25, 2015 at 05:01:12PM +0100, Benedikt Oswald wrote:
>> it may be a silly mistake of mine, but I keep getting errors like this,
>> cf. below, although I include the mpi helper class and mpi collective
>> communication etc.
>>
>> Would you have any idea on what is going wrong ?
>>
>> /scratch/daint/boswald/gitwork/hades/communicationinterface/globaluniqueindex.hh:101:58:
>> error: 'MPI_Comm' was not declared in this scope
>>   typedef typename Dune::template CollectiveCommunication<MPI_Comm>
>> Collective;
>>
> Maybe the MPI compile flags are not added for this particular
> executable? Can you see them with "make VERBOSE=1 <target>" ?
>
> Markus
>
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150326/5fae20b5/attachment.htm>


More information about the Dune mailing list