Tag: cluster computing

openMPI在服务器集群上运行期间无限期等待?

我已成功在服务器和计算机之间设置密码减去ssh。 有一个简单的openMPI程序在单台计算机上运行良好。 但是,不幸的是,当我在群集上尝试这个时,我都没有得到密码提示(因为我已经设置了ssh授权),也没有执行正在向前发展。 Hostfile看起来像这样, # The Hostfile for Open MPI # The master node, ‘slots=8’ is used because it has 8 cores localhost slots=8 # The following slave nodes are single processor machines: gautam@pcys13.grm.polymtl.ca slots=8 gautam@srvgrm04 slots=160 我在群集上运行hello world MPI程序, int main(int argc, char *argv[]) { int numprocs, rank, namelen; char processor_name[MPI_MAX_PROCESSOR_NAME]; double t; MPI_Init(&argc, […]

bash:/ usr / bin / hydra_pmi_proxy:没有这样的文件或目录

在Ubuntu教程中设置MPICH2集群后,我正在努力设置MPI集群。 我有运行的东西,我的机器文件是这样的: pythagoras:2 # this will spawn 2 processes on pythagoras geomcomp # this will spawn 1 process on geomcomp 该教程指出: 并运行它(-n旁边的参数指定在节点之间生成和分发的进程数):mpiu @ ub0:〜$ mpiexec -n 8 -f machinefile ./mpi_hello 使用-n 1和-n 2它运行正常,但是使用-n 3,它会失败,如下所示: gsamaras@pythagoras:/mirror$ mpiexec -n 1 -f machinefile ./mpi_hello Hello from processor 0 of 1 gsamaras@pythagoras:/mirror$ mpiexec -n 2 -f machinefile ./mpi_hello Hello […]

如何在MPI中创建新类型

我是MPI的新手,我想为Residence struct创建一个新的数据类型。 我只是想看看我是否可以正确地创建新类型。 struct Residence {double x; 双y; }; 我的新MPI类型 MPI_Datatype createRecType() { // Set-up the arguments for the type constructor MPI_Datatype new_type; int count = 2; int blocklens[] = { 1,1 }; MPI_Aint indices[2]; //indices[0]=0; MPI_Type_extent( MPI_DOUBLE, &indices[0] ); MPI_Type_extent( MPI_DOUBLE, &indices[1] ); MPI_Datatype old_types[] = {MPI_DOUBLE,MPI_DOUBLE}; MPI_Type_struct(count,blocklens,indices,old_types,&new_type); MPI_Type_commit(&new_type); }