a question about MPI# Computation - 科学计算
K*N
1 楼
i have a 3 nodes (each nodes with 32 processors) machine.
but why if i run the following:
*****************************************************
/* Starts MPI processes ... */
MPI_Init(&argc,&argv); /* starts MPI */
MPI_Comm_rank(MPI_COMM_WORLD, &myid); /* get current process id */
MPI_Comm_size(MPI_COMM_WORLD, &p); /* get number of processes */
*****************************************************
p value is always 1?
how to access all 32 processes?
thanks.
but why if i run the following:
*****************************************************
/* Starts MPI processes ... */
MPI_Init(&argc,&argv); /* starts MPI */
MPI_Comm_rank(MPI_COMM_WORLD, &myid); /* get current process id */
MPI_Comm_size(MPI_COMM_WORLD, &p); /* get number of processes */
*****************************************************
p value is always 1?
how to access all 32 processes?
thanks.