c++ - 在 MPI 中,非阻塞 I/O 用于什么?
问题描述
我假设:非阻塞 I/O 用于利用数据加载和计算之间的差距。换句话说,在加载数据的同时,我们可以同时进行一些计算。因此,以下程序
MPI_File_read_at_all_begin(...);
... // do some computations
MPI_File_read_at_all_end(...);
表现应该比
MPI_File_read_at_all(...);
... // the same computations of the previous program
但是,我没有看到预期的结果。为什么?我误会了吗?</p>
解决方案
我用类似的东西修复了它
{ // run with a thread
MPI_File_read_at_all_begin(...);
MPI_File_read_at_all_end(...);
}
... // do some computations
推荐阅读
- vb.net - 使用 PrintForm 功能横向打印表单
- python-3.x - 如何标记语料库以进行词形还原?
- javascript - 将一组函数覆盖为 Promise
- javascript - 用于 javascript 代理的 Chrome Devtools 格式化程序
- error-handling - 如何使用 VBA 为表单、报表和数据表设置条件格式
- java - 编写方法重载的最佳方法是什么?
- sql-server - 具有默认为默认约束值的参数的存储过程
- api - 为什么 Clio Users 端点总是返回一个 null 的联系人对象?
- django - 在上传到 s3 之前压缩图像的最佳选择
- sql - 修改查询以消除对临时表的需要