Dear all,

I am trying to compile the latest development version of dealii (9.1.0-pre, 
shortrev c6b7876) using gcc/7.2.0, openmpi/3.0.0/gcc/7.2.0,  cuda/9.2 
and cmake-3.12.2. <http://3.10.0.2/>

During compilation I get the following error:

[ 57%] Building CUDA object 
source/base/CMakeFiles/obj_base_debug.dir/cuda.cu.o
In file included from 
/gpfs/gpfs0/groups/gavini/dsambit/software/dealii/dealii/include/deal.II/base/cuda.h:19:0,
                 from 
/gpfs/gpfs0/groups/gavini/dsambit/software/dealii/dealii/source/base/cuda.cu:16:
/gpfs/gpfs0/groups/gavini/dsambit/software/dealii/build/include/deal.II/base/config.h:421:12:
 
fatal error: mpi.h: No such file or directory
 #  include <mpi.h>
            ^~~~~~~
compilation terminated.


I have attached the detailed.log file. 

I have used the following configuration line:
cmake  -DDEAL_II_CXX_FLAGS_RELEASE="-O3" -DDEAL_II_WITH_CXX17=OFF 
-DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx 
 -DCMAKE_Fortran_COMPILER=mpif90 -DDEAL_II_WITH_CUDA=ON 
-DDEAL_II_COMPONENT_EXAMPLES=OFF
 -DDEAL_II_WITH_MPI=ON -DDEAL_II_WITH_64BIT_INDICES=ON
 -DP4EST_DIR="/gpfs/gpfs0/groups/gavini/dsambit/software/p4est/installGcc7.2.0" 
 
../dealii

 Interestingly, if I remove -DDEAL_II_WITH_CUDA=ON, compilation is 
successful. I am wondering if I am missing any cuda related compilation 
flags.

Thanks a lot in advance,

Best,
Sambit

-- 
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.
For more options, visit https://groups.google.com/d/optout.
###
#
#  deal.II configuration:
#        CMAKE_BUILD_TYPE:       DebugRelease
#        BUILD_SHARED_LIBS:      ON
#        CMAKE_INSTALL_PREFIX:   /usr/local
#        CMAKE_SOURCE_DIR:       
/gpfs/gpfs0/groups/gavini/dsambit/software/dealii/dealii
#                                (version 9.1.0-pre, shortrev c6b7876)
#        CMAKE_BINARY_DIR:       
/gpfs/gpfs0/groups/gavini/dsambit/software/dealii/build
#        CMAKE_CXX_COMPILER:     GNU 7.2.0 on platform Linux ppc64le
#                                
/gpfs/gpfs0/software/rhel72/packages/openmpi/3.0.0/gcc-7.2.0/bin/mpicxx
#        CMAKE_C_COMPILER:       
/gpfs/gpfs0/software/rhel72/packages/openmpi/3.0.0/gcc-7.2.0/bin/mpicc
#        CMAKE_Fortran_COMPILER: 
/gpfs/gpfs0/software/rhel72/packages/openmpi/3.0.0/gcc-7.2.0/bin/mpif90
#        CMAKE_GENERATOR:        Unix Makefiles
#
#  Base configuration (prior to feature configuration):
#        DEAL_II_CXX_FLAGS:            -fPIC -Wall -Wextra -Wpointer-arith 
-Wwrite-strings -Wsynth -Wsign-compare -Wswitch -Woverloaded-virtual 
-Wsuggest-override -Wno-placement-new -Wno-deprecated-declarations 
-Wno-literal-suffix -Wno-psabi -fopenmp-simd -std=c++14
#        DEAL_II_CXX_FLAGS_RELEASE:    -O2 -funroll-loops -funroll-all-loops 
-fstrict-aliasing -Wno-unused-local-typedefs -O3
#        DEAL_II_CXX_FLAGS_DEBUG:      -Og -ggdb -Wa,--compress-debug-sections
#        DEAL_II_LINKER_FLAGS:         -Wl,--as-needed -rdynamic -fuse-ld=gold 
-fopenmp
#        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 = ON
#      ( 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 = 
/gpfs/gpfs0/groups/gavini/dsambit/software/dealii/dealii/bundled/boost-1.62.0/include
#            BOOST_LIBRARIES = rt
#        DEAL_II_WITH_CUDA set up with external dependencies
#            CUDA_VERSION = 9.2
#            CMAKE_CUDA_COMPILER = 
/gpfs/gpfs0/software/rhel72/packages/cuda/9.2/bin/nvcc
#            CUDA_COMPUTE_CAPABILITY = 3.5
#            DEAL_II_CUDA_FLAGS = -arch=sm_35 -std=c++14
#            DEAL_II_CUDA_FLAGS_RELEASE = 
#            DEAL_II_CUDA_FLAGS_DEBUG = -G
#            CUDA_INCLUDE_DIRS = 
/gpfs/gpfs0/software/rhel72/packages/cuda/9.2/include
#            CUDA_USER_INCLUDE_DIRS = 
/gpfs/gpfs0/software/rhel72/packages/cuda/9.2/include
#            CUDA_LIBRARIES = 
/gpfs/gpfs0/software/rhel72/packages/cuda/9.2/lib64/libcudart.so;/gpfs/gpfs0/software/rhel72/packages/cuda/9.2/lib64/libcusparse.so;/gpfs/gpfs0/software/rhel72/packages/cuda/9.2/lib64/libcusolver.so
#        DEAL_II_WITH_CXX14 = ON
#      ( DEAL_II_WITH_CXX17 = 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 = 3.1
#            MPI_C_COMPILER = 
/gpfs/gpfs0/software/rhel72/packages/openmpi/3.0.0/gcc-7.2.0/bin/mpicc
#            MPI_CXX_COMPILER = 
/gpfs/gpfs0/software/rhel72/packages/openmpi/3.0.0/gcc-7.2.0/bin/mpicxx
#            MPI_Fortran_COMPILER = 
/gpfs/gpfs0/software/rhel72/packages/openmpi/3.0.0/gcc-7.2.0/bin/mpif90
#            MPI_CXX_FLAGS = 
#            MPI_LINKER_FLAGS = 
#            MPI_INCLUDE_DIRS = 
#            MPI_USER_INCLUDE_DIRS = 
#            MPI_LIBRARIES = 
#        DEAL_II_WITH_MUPARSER set up with bundled packages
#            MUPARSER_BUNDLED_INCLUDE_DIRS = 
/gpfs/gpfs0/groups/gavini/dsambit/software/dealii/dealii/bundled/muparser_v2_2_4//include
#      ( DEAL_II_WITH_NANOFLANN = OFF )
#      ( DEAL_II_WITH_NETCDF = OFF )
#      ( DEAL_II_WITH_OPENCASCADE = OFF )
#        DEAL_II_WITH_P4EST set up with external dependencies
#            P4EST_VERSION = 2.0
#            P4EST_DIR = 
/gpfs/gpfs0/groups/gavini/dsambit/software/p4est/installGcc7.2.0
#            P4EST_INCLUDE_DIRS = 
/gpfs/gpfs0/groups/gavini/dsambit/software/p4est/installGcc7.2.0/FAST/include
#            P4EST_USER_INCLUDE_DIRS = 
/gpfs/gpfs0/groups/gavini/dsambit/software/p4est/installGcc7.2.0/FAST/include
#            P4EST_LIBRARIES = 
optimized;/gpfs/gpfs0/groups/gavini/dsambit/software/p4est/installGcc7.2.0/FAST/lib/libp4est.so;/gpfs/gpfs0/groups/gavini/dsambit/software/p4est/installGcc7.2.0/FAST/lib/libsc.so;debug;/gpfs/gpfs0/groups/gavini/dsambit/software/p4est/installGcc7.2.0/DEBUG/lib/libp4est.so;/gpfs/gpfs0/groups/gavini/dsambit/software/p4est/installGcc7.2.0/DEBUG/lib/libsc.so;general
#      ( DEAL_II_WITH_PETSC = OFF )
#      ( DEAL_II_WITH_SCALAPACK = OFF )
#      ( DEAL_II_WITH_SLEPC = OFF )
#      ( DEAL_II_WITH_SUNDIALS = OFF )
#        DEAL_II_WITH_THREADS set up with bundled packages
#            TBB_VERSION = 4.1
#            THREADS_CXX_FLAGS = -Wno-parentheses
#            THREADS_DEFINITIONS_DEBUG = TBB_USE_DEBUG;TBB_DO_ASSERT=1
#            THREADS_USER_DEFINITIONS_DEBUG = TBB_USE_DEBUG;TBB_DO_ASSERT=1
#            THREADS_BUNDLED_INCLUDE_DIRS = 
/gpfs/gpfs0/groups/gavini/dsambit/software/dealii/dealii/bundled/tbb-2018_U2/include
#            THREADS_LIBRARIES = dl
#      ( DEAL_II_WITH_TRILINOS = OFF )
#      ( DEAL_II_WITH_UMFPACK = OFF )
#        DEAL_II_WITH_ZLIB set up with external dependencies
#            ZLIB_VERSION = 1.2.7
#            ZLIB_INCLUDE_DIRS = /usr/include
#            ZLIB_LIBRARIES = /usr/lib64/libz.so
#
#  Component configuration:
#      ( DEAL_II_COMPONENT_DOCUMENTATION = OFF )
#      ( DEAL_II_COMPONENT_EXAMPLES = OFF )
#      ( DEAL_II_COMPONENT_PACKAGE = OFF )
#      ( DEAL_II_COMPONENT_PYTHON_BINDINGS = OFF )
#
###

Reply via email to