代码之家  ›  专栏  ›  技术社区  ›  Fazeleh

MPI_GET未在此作用域中声明

  •  0
  • Fazeleh  · 技术社区  · 5 年前

    我是第一次使用RMA,我在互联网上搜索,找不到声明MPI_PUT和MPI_GET以及其他与RMA相关的标志的答案

    我在文件的开头声明MPI.h:

    #include <mpi.h>
    

    但我的RMA依赖项出现以下错误:

     error: ‘MPI_MODE_NOPROCEDE’ was not declared in this scope
    error: ‘MPI_GET’ was not declared in this scope
    error: ‘MPI_MODE_NOPROCEDE’ was not declared in this scope
    error: ‘MPI_PUT’ was not declared in this scope
    

    但对于创建窗口,我没有得到同样的错误,并声明mpi.h就足够了。

    0 回复  |  直到 5 年前