espressomd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ESPResSo-users] cmake can't find MPI. can anyone has some tips to h


From: Jean-Noël Grad
Subject: Re: [ESPResSo-users] cmake can't find MPI. can anyone has some tips to help me with that?
Date: Mon, 26 Aug 2019 12:05:33 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

Hi,

It depends on the operating system (Ubuntu, CentOS, ...) and MPI library (OpenMPI, MPICH, ...). Your CMake version should call the FindMPI function, which will call all known MPI compiler names until one is found in your environment. If your installation of MPI is not visible, you'll need to add it to your environment, using for example `export PATH=$PATH:/path/to/openmpi-4.0.1/bin` on Ubuntu or `module load mpi` on Fedora/CentOS. Sometimes, it also works if you just provide the path to MPI binaries as CMake options when compiling espresso: `cmake .. -DMPI_C_COMPILER=/path/to/openmpi-4.0.1/bin/mpicc -DMPI_CXX_COMPILER=/path/to/openmpi-4.0.1/bin/mpicxx`. CMake will deduce the paths to the other MPI files from them.

Hope this helps,
JN

On 8/23/19 11:02 PM, marcos nolasco wrote:
HI everyone. I'm trying to install espresso 4.0.2 about a week, and i solve most of the issues. but still appears an error when i call cmake.
  the error message is below.

-- Could NOT find MPI_CXX (missing: MPI_CXX_WORKS)
CMake Error at 
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
   Could NOT find MPI (missing: MPI_CXX_FOUND) (found version "3.1")
Call Stack (most recent call first):
   /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 
(_FPHSA_FAILURE_MESSAGE)
   /usr/share/cmake-3.10/Modules/FindMPI.cmake:1444 
(find_package_handle_standard_args)
   CMakeLists.txt:302 (find_package)


-- Configuring incomplete, errors occurred!
See also 
"/home/marcos/Downloads/espresso-4.0.2/espresso/build/CMakeFiles/CMakeOutput.log".




reply via email to

[Prev in Thread] Current Thread [Next in Thread]