Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

cmake could not find mpi_fortran

ab9
Beginner
2,181 Views

Hello everyone,

I have the following output

-- Could NOT find MPI_Fortran (missing: MPI_Fortran_WORKS)
-- Could NOT find MPI (missing: MPI_Fortran_FOUND) (found version "3.1")

Probably, It is caused by some inconsistencies in the exported paths.

However, I checked that I sourced  /opt/intel/oneapi/setvars.sh and exported openmpi paths

OS Ubuntu 18.04.

cmake version 3.20.2

ifort (IFORT) 2021.2.0 20210228

CMakeLists.txt
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
PROJECT(test_mpi)
enable_language(Fortran)
find_package(MPI)

 

0 Kudos
0 Replies
Reply