Sambit,

Can you try with a different version of CMake. We do not support CMake 3.12 
with CUDA at the moment.

Best,

Bruno

On Monday, September 17, 2018 at 8:56:31 PM UTC-4, Sambit Das wrote:
>
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to