作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
=-6ren">
- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libusb-1.0>=1.0.17'
-- Found libusb-1.0, version 1.0.21
-- Checking for module 'opencv>=3.0'
-- Found opencv, version 3.2.0
-- Checking for module 'libcaer>=2.0'
-- Found libcaer, version 3.3.7
-- Could NOT find MPI_C (missing: MPI_C_WORKS)
-- Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so (found version "3.1")
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find MPI (missing: MPI_C_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:193 (find_package)
尝试一切导出路径完成我在google上发现的所有内容仍然有此烦人的错误。
Reading package lists... Done
Building dependency tree
Reading state information... Done
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
哪个命令结果:
endrel@Siraly:~/Developer/BrainHarmonics/build$ which mpicc
/usr/bin/mpicc
endrel@Siraly:~/Developer/BrainHarmonics/build$ which mpicxx
/usr/bin/mpicxx
最佳答案
If the find procedure fails for a variable
MPI_<lang>_WORKS
, then the settings detected by or passed to the module did not work and even a simple MPI test program failed to compile.
-- Could NOT find MPI_C (missing: MPI_C_WORKS)
CMakeLists.txt
是错误的,但是您没有提供它的内容,所以很难说。
关于c++ - 在Ubuntu 18.04上找不到MPI_C和MPI cmake,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63087881/
我是一名优秀的程序员,十分优秀!