由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - 请教各位大下, MPI并行计算的问题
相关主题
请教关于并行计算。Re: f90 and mpi
[合集] 你们有没有用windows 进行并行计算的?并行的算法
谁能推荐一台目前比较好的计算机作科学计算?大家作并行计算的时候都是怎么作load balancing的?
大家来8一8并行计算有哪些conference和journal吧MPI Write?
并行计算如何识别binary文件?
求一个communication-intensive的应用C++的程序,想改成并行计算,用什么好?
求推荐并行计算软件库问个并行算程序的问题?
P P C L Beowulf计算机群测试报告请教如何编写利用多核(multi-core)的Fortran 程序?
相关话题的讨论汇总
话题: mpi话题: nodes话题: do话题: mpi2话题: common
进入Computation版参与讨论
1 (共1页)
t*****o
发帖数: 74
1
1。 在FORTRAN下
MPI能不能传输一个COMMON BLOCK的数据, 里面有整数,浮点数, 用什么语句了?
2。 如果几个NODE想对同一个文件同时进行读和写的操作, MPI下能实现吗?
谢谢! 谢谢!
y***r
发帖数: 1845
2

Use MPI_SEND()
MPI_BYTE
you should calc the sizeof COMMON BLOCK by yourself.
Use MPI2. MPI1 cannot.

【在 t*****o 的大作中提到】
: 1。 在FORTRAN下
: MPI能不能传输一个COMMON BLOCK的数据, 里面有整数,浮点数, 用什么语句了?
: 2。 如果几个NODE想对同一个文件同时进行读和写的操作, MPI下能实现吗?
: 谢谢! 谢谢!

d*****w
发帖数: 124
3

This has nothing to do with MPI, because no communications between nodes.
What you need to do is do it as a serial code.

【在 t*****o 的大作中提到】
: 1。 在FORTRAN下
: MPI能不能传输一个COMMON BLOCK的数据, 里面有整数,浮点数, 用什么语句了?
: 2。 如果几个NODE想对同一个文件同时进行读和写的操作, MPI下能实现吗?
: 谢谢! 谢谢!

t*****o
发帖数: 74
4
Thanks a lot!

Can you explain a little more about how to do it under MPI2? thanks

【在 y***r 的大作中提到】
:
: Use MPI_SEND()
: MPI_BYTE
: you should calc the sizeof COMMON BLOCK by yourself.
: Use MPI2. MPI1 cannot.

t*****o
发帖数: 74
5

but how do you know if the file is used by other nodes or not? Even it is a
serial code, I think the nodes has to ommunicate to tell other nodes if it
open the file or finish reading/writing it...

【在 d*****w 的大作中提到】
:
: This has nothing to do with MPI, because no communications between nodes.
: What you need to do is do it as a serial code.

d*****w
发帖数: 124
6

实际上MPI分别在不同节点运行一个COPY. 如果你通过NFS指向同一个文件进行读写,那么
存在你说的问题;如果是各自节点上有独立的相同文件名的文件(内容可以不同),那么相互
之间独立.
如果你是第一种情况(也是大多数情况),最好的办法是在一个节点上读写,在广播到其他节
点上去. 你为什么想对一个文件用多个节点进行"写"呢?这个要求很奇怪,因为即使行,也
会得到很随即的结果.

【在 t*****o 的大作中提到】
:
: but how do you know if the file is used by other nodes or not? Even it is a
: serial code, I think the nodes has to ommunicate to tell other nodes if it
: open the file or finish reading/writing it...

1 (共1页)
进入Computation版参与讨论
相关主题
请教如何编写利用多核(multi-core)的Fortran 程序?并行计算
怎么让FORTRAN程序产生一个MPI错误求一个communication-intensive的应用
请教下关于C和Fortran混编的MPI并行问题!求推荐并行计算软件库
MPI I/O 问题P P C L Beowulf计算机群测试报告
请教关于并行计算。Re: f90 and mpi
[合集] 你们有没有用windows 进行并行计算的?并行的算法
谁能推荐一台目前比较好的计算机作科学计算?大家作并行计算的时候都是怎么作load balancing的?
大家来8一8并行计算有哪些conference和journal吧MPI Write?
相关话题的讨论汇总
话题: mpi话题: nodes话题: do话题: mpi2话题: common