Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,107
    • Issues 4,107
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #21634
Closed
Open
Issue created Dec 26, 2020 by مهدي شينون (Mehdi Chinoune)@MehdiChinouneContributor

FindMPI: cmake error when trying to use Intel MPI 2021.1

cmake_minimum_required(VERSION 3.16)

project( bug_mpi_intel C )

find_package( MPI REQUIRED )
mkdir build && cd build
cmake ..
-- The C compiler identification is GNU 9.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error in /mnt/d/dev/Bugs/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
  Imported target "MPI::MPI_C" includes non-existent path
    "/mnt/d/dev/Bugs/'/opt/intel/oneapi/mpi/2021.1.1/include'"
  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
  * The path was deleted, renamed, or moved to another location.
  * An install or uninstall procedure did not complete successfully.
  * The installation package was faulty and references files it does not provide.
  
CMake Error in /mnt/d/dev/Bugs/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
  Imported target "MPI::MPI_C" includes non-existent path
    "/mnt/d/dev/Bugs/'/opt/intel/oneapi/mpi/2021.1.1/include'"
  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
  * The path was deleted, renamed, or moved to another location.
  * An install or uninstall procedure did not complete successfully.
  * The installation package was faulty and references files it does not provide.

CMake Error at /home/mehdi/.local/lib/python3.8/site-packages/cmake/data/share/cmake-3.18/Modules/FindMPI.cmake:1213 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  /home/mehdi/.local/lib/python3.8/site-packages/cmake/data/share/cmake-3.18/Modules/FindMPI.cmake:1264 (_MPI_try_staged_settings)
  /home/mehdi/.local/lib/python3.8/site-packages/cmake/data/share/cmake-3.18/Modules/FindMPI.cmake:1529 (_MPI_check_lang_works)
  CMakeLists.txt:5 (find_package)

-- Configuring incomplete, errors occurred!
See also "/mnt/d/dev/Bugs/build/CMakeFiles/CMakeOutput.log".
Edited Jan 04, 2021 by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking