Re: [deal.II] deal.II installation on cray XC50 giving MPI_VERSION=0.0

2020-02-06 Thread Wolfgang Bangerth

On 2/6/20 6:18 AM, Daniel Arndt wrote:


You can probably tell better than any of us if this works. Just try. It might 
quite well be that the compiler doesn't need any extra flags for MPI. Also, it 
looks like the MPI version could not be detected. This implies that the 
library doesn't use newer features but should still work. If you know to which 
standard the MPI installation is conforming, you could try to set it via


cmake -DMPI_VERSION=...

yourself.
If there any more problems, feel free to tell us.


But separately, we try to obtain the MPI version from the file mpi.h via the 
following cmake code in cmake/modules/FindMPI.h:


DEAL_II_FIND_FILE(MPI_MPI_H
  NAMES mpi.h
  HINTS ${MPI_CXX_INCLUDE_PATH} ${MPI_C_INCLUDE_PATH}
  )
IF(NOT MPI_MPI_H MATCHES "-NOTFOUND" AND NOT DEFINED MPI_VERSION)
  FILE(STRINGS "${MPI_MPI_H}" MPI_VERSION_MAJOR_STRING
REGEX "#define.*MPI_VERSION")
  STRING(REGEX REPLACE "^.*MPI_VERSION[ ]+([0-9]+).*" "\\1"
MPI_VERSION_MAJOR "${MPI_VERSION_MAJOR_STRING}"
)
  FILE(STRINGS ${MPI_MPI_H} MPI_VERSION_MINOR_STRING
REGEX "#define.*MPI_SUBVERSION")
  STRING(REGEX REPLACE "^.*MPI_SUBVERSION[ ]+([0-9]+).*" "\\1"
MPI_VERSION_MINOR "${MPI_VERSION_MINOR_STRING}"
)
  SET(MPI_VERSION "${MPI_VERSION_MAJOR}.${MPI_VERSION_MINOR}")
ENDIF()


It would be interesting to see why that files. Can you try and find out which 
mpi.h on your system is being used, and attach it to a reply?


Best
 W.

--

Wolfgang Bangerth  email: bange...@colostate.edu
   www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/bc310fe3-7b99-0d3e-14f0-71df4ccd21b0%40colostate.edu.


Re: [deal.II] deal.II installation on cray XC50 giving MPI_VERSION=0.0

2020-02-06 Thread Daniel Arndt
Vachan,

You can probably tell better than any of us if this works. Just try. It
might quite well be that the compiler doesn't need any extra flags for MPI.
Also, it looks like the MPI version could not be detected. This implies
that the library doesn't use newer features but should still work. If you
know to which standard the MPI installation is conforming, you could try to
set it via

cmake -DMPI_VERSION=...

yourself.
If there any more problems, feel free to tell us.

Best,
Daniel

On Thu, Feb 6, 2020, 1:10 AM vachan potluri 
wrote:

> Hello,
>
> I am trying to install deal.II on a cray XC50 supercomputer.
>
> cmake -DCMAKE_INSTALL_PREFIX=~/bin/dealii-9.1.1 \
> -DPREFIX_PATH=/opt/cray/pe \
> -DCMAKE_CXX_COMPILER=/opt/cray/pe/craype/2.5.13/bin/CC \
> -DWITH_MPI=ON \
> -DWITH_PETSC=OFF -DPETSC_DIR=$PETSC_DIR -DPETSC_ARCH=$PETSC_ARCH \
> -DWITH_P4EST=ON -DP4EST_DIR=~/bin/p4est-2.2 \
> ~/source/dealii-9.1.1
>
> I have attached detailed.log and summary.log. Although the configuring
> exits without errors, I can see in detailed.log that MPI_VERSION was not
> detected correctly. The compilers were correctly detected. All other
> variables are just blanks. The relevant snippet of detailed.log is as
> follows:
>
> #DEAL_II_WITH_MPI set up with external dependencies
> #MPI_VERSION = 0.0
> #MPI_C_COMPILER = /opt/cray/pe/craype/2.5.13/bin/cc
> #MPI_CXX_COMPILER = /opt/cray/pe/craype/2.5.13/bin/CC
> #MPI_Fortran_COMPILER = /opt/cray/pe/craype/2.5.13/bin/ftn
> #MPI_CXX_FLAGS =
> #MPI_LINKER_FLAGS =
> #MPI_INCLUDE_DIRS =
> #MPI_USER_INCLUDE_DIRS =
> #MPI_LIBRARIES =
>
> Is this an issue? How to fix this? I had loaded cray-mpich module before
> invoking cmake and switched PrgEnv-cray with PrgEnv-gnu.
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/71a50bd5-acf1-4cd5-b3a8-bcb0fd295399%40googlegroups.com
> 
> .
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAOYDWb%2BvyVruFzjC4NCam%2BxF%2BcPmSEpMbh_MSenzcd6hf5qkMg%40mail.gmail.com.


[deal.II] deal.II installation on cray XC50 giving MPI_VERSION=0.0

2020-02-05 Thread vachan potluri
Hello,

I am trying to install deal.II on a cray XC50 supercomputer.

cmake -DCMAKE_INSTALL_PREFIX=~/bin/dealii-9.1.1 \
-DPREFIX_PATH=/opt/cray/pe \
-DCMAKE_CXX_COMPILER=/opt/cray/pe/craype/2.5.13/bin/CC \
-DWITH_MPI=ON \
-DWITH_PETSC=OFF -DPETSC_DIR=$PETSC_DIR -DPETSC_ARCH=$PETSC_ARCH \
-DWITH_P4EST=ON -DP4EST_DIR=~/bin/p4est-2.2 \
~/source/dealii-9.1.1

I have attached detailed.log and summary.log. Although the configuring 
exits without errors, I can see in detailed.log that MPI_VERSION was not 
detected correctly. The compilers were correctly detected. All other 
variables are just blanks. The relevant snippet of detailed.log is as 
follows:

#DEAL_II_WITH_MPI set up with external dependencies
#MPI_VERSION = 0.0
#MPI_C_COMPILER = /opt/cray/pe/craype/2.5.13/bin/cc
#MPI_CXX_COMPILER = /opt/cray/pe/craype/2.5.13/bin/CC
#MPI_Fortran_COMPILER = /opt/cray/pe/craype/2.5.13/bin/ftn
#MPI_CXX_FLAGS = 
#MPI_LINKER_FLAGS = 
#MPI_INCLUDE_DIRS = 
#MPI_USER_INCLUDE_DIRS = 
#MPI_LIBRARIES = 

Is this an issue? How to fix this? I had loaded cray-mpich module before 
invoking cmake and switched PrgEnv-cray with PrgEnv-gnu.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/71a50bd5-acf1-4cd5-b3a8-bcb0fd295399%40googlegroups.com.
###
#
#  deal.II configuration:
#CMAKE_BUILD_TYPE:   DebugRelease
#BUILD_SHARED_LIBS:  ON
#CMAKE_INSTALL_PREFIX:   
/home/ComptGasDynLab/vachanpotluri/bin/dealii-9.1.1
#CMAKE_SOURCE_DIR:   
/home/ComptGasDynLab/vachanpotluri/source/dealii-9.1.1
#(version 9.1.1)
#CMAKE_BINARY_DIR:   
/home/ComptGasDynLab/vachanpotluri/build/dealii-9.1.1
#CMAKE_CXX_COMPILER: GNU 7.2.0 on platform Linux x86_64
#/opt/cray/pe/craype/2.5.13/bin/CC
#CMAKE_C_COMPILER:   /opt/cray/pe/craype/2.5.13/bin/cc
#CMAKE_Fortran_COMPILER: /opt/cray/pe/craype/2.5.13/bin/ftn
#CMAKE_GENERATOR:Unix Makefiles
#
#  Base configuration (prior to feature configuration):
#DEAL_II_CXX_FLAGS:-pedantic -fPIC -Wall -Wextra 
-Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wsuggest-override -Wswitch 
-Wsynth -Wwrite-strings -Wno-placement-new -Wno-deprecated-declarations 
-Wno-literal-suffix -Wno-psabi -fopenmp-simd -std=c++17
#DEAL_II_CXX_FLAGS_RELEASE:-O2 -funroll-loops -funroll-all-loops 
-fstrict-aliasing -Wno-unused-local-typedefs
#DEAL_II_CXX_FLAGS_DEBUG:  -O0 -ggdb -Wa,--compress-debug-sections
#DEAL_II_LINKER_FLAGS: -Wl,--as-needed -rdynamic -fuse-ld=gold
#DEAL_II_LINKER_FLAGS_RELEASE: 
#DEAL_II_LINKER_FLAGS_DEBUG:   -ggdb
#DEAL_II_DEFINITIONS:  
#DEAL_II_DEFINITIONS_RELEASE:  
#DEAL_II_DEFINITIONS_DEBUG:DEBUG
#DEAL_II_USER_DEFINITIONS: 
#DEAL_II_USER_DEFINITIONS_REL: 
#DEAL_II_USER_DEFINITIONS_DEB: DEBUG
#DEAL_II_INCLUDE_DIRS  
#DEAL_II_USER_INCLUDE_DIRS:
#DEAL_II_BUNDLED_INCLUDE_DIRS: 
#DEAL_II_LIBRARIES:
#DEAL_II_LIBRARIES_RELEASE:
#DEAL_II_LIBRARIES_DEBUG:  
#DEAL_II_COMPILER_VECTORIZATION_LEVEL: 0
#
#  Configured Features (DEAL_II_ALLOW_BUNDLED = ON, DEAL_II_ALLOW_AUTODETECTION 
= ON):
#  ( DEAL_II_WITH_64BIT_INDICES = OFF )
#  ( DEAL_II_WITH_ADOLC = OFF )
#  ( DEAL_II_WITH_ARPACK = OFF )
#  ( DEAL_II_WITH_ASSIMP = OFF )
#DEAL_II_WITH_BOOST set up with bundled packages
#BOOST_CXX_FLAGS = -Wno-unused-local-typedefs
#BOOST_DEFINITIONS = BOOST_NO_AUTO_PTR
#BOOST_USER_DEFINITIONS = BOOST_NO_AUTO_PTR
#BOOST_BUNDLED_INCLUDE_DIRS = 
/home/ComptGasDynLab/vachanpotluri/source/dealii-9.1.1/bundled/boost-1.62.0/include
#BOOST_LIBRARIES = rt
#DEAL_II_WITH_COMPLEX_VALUES = ON
#  ( DEAL_II_WITH_CUDA = OFF )
#DEAL_II_WITH_CXX14 = ON
#DEAL_II_WITH_CXX17 = ON
#  ( DEAL_II_WITH_GINKGO = OFF )
#  ( DEAL_II_WITH_GMSH = OFF )
#  ( DEAL_II_WITH_GSL = OFF )
#  ( DEAL_II_WITH_HDF5 = OFF )
#  ( DEAL_II_WITH_LAPACK = OFF )
#  ( DEAL_II_WITH_METIS = OFF )
#DEAL_II_WITH_MPI set up with external dependencies
#MPI_VERSION = 0.0
#MPI_C_COMPILER = /opt/cray/pe/craype/2.5.13/bin/cc
#MPI_CXX_COMPILER = /opt/cray/pe/craype/2.5.13/bin/CC