cmake-gui mpi

33 views
Skip to first unread message

Peng Ding

unread,
May 17, 2017, 12:08:02 AM5/17/17
to deal.II User Group
Dear professor:
   I use cmake-gui to configure deall.II. the package mpi  has installed to /usr/local, but cmake gui can not found it. 
i tried to run cmake withou gui, it also give the same problems
 how to resolve this problem. 

-- MPI not found but DEAL_II_WITH_MPI is set to TRUE. Try again with more aggressive search paths:

-- Performing Test MPI_HAVE_MPI_SEEK_SET
-- Performing Test MPI_HAVE_MPI_SEEK_SET - Success
-- Found MPI_MPI_H
--   MPI_VERSION: 3.1
--   MPI_LIBRARIES: *** Required variable "MPI_CXX_LIBRARIES" empty ***
--   MPI_INCLUDE_DIRS: *** Required variable "MPI_CXX_INCLUDE_PATH" empty ***
--   MPI_USER_INCLUDE_DIRS: *** Required variable "MPI_CXX_INCLUDE_PATH" empty ***
--   MPI_CXX_FLAGS:  
--   MPI_LINKER_FLAGS:  
-- Could NOT find MPI
-- DEAL_II_WITH_MPI has unmet external dependencies.
CMake Error at cmake/configure/configure_1_mpi.cmake:77 (MESSAGE):

Jean-Paul Pelteret

unread,
May 17, 2017, 1:14:50 AM5/17/17
to deal.II User Group
Dear Peng,

This part of the installation documentation suggests that you can explicitly indicate which MPI compilers to use with the following flags passed to CMake:

cmake -DDEAL_II_WITH_MPI:BOOL=ON -DCMAKE_C_COMPILER="<full/path/to/mpicc>" -DCMAKE_CXX_COMPILER="<full/path/to/mpicxx>" -DCMAKE_Fortran_COMPILER="<full/path/to/mpif90>" <...>

I would suggest in your case to pass the full paths to the MPI executables since deal.II couldn't pick them up in the first place. Presumably the means that the binaries are located at /usr/local/bin/<mpicc/mpicxx/mpif90> on your machine.

Does this help you solve the problem?

Jean-Paul

ztdep...@gmail.com

unread,
May 17, 2017, 6:30:38 PM5/17/17
to dealii
Thank you . I solve it by specify the "native compiler" as mpic++ when i start cmake-gui.
It works fine now.
Regards


--
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 a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/qCvyUwpjSXo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages