Skip to content

MPI_Q2 Sends message to itself which isnt recieved #1

@akhilraj95

Description

@akhilraj95

Process with rank = sender_rank sends message to itself. MPI_Finalize is never called on execution of the program because it is not received.

for(int i=0;i<size;i++){
    if(i!= TO_RANK)
        MPI_Send(msg,N,MPI_CHAR,i,msg_tag,MPI_COMM_WORLD);
}

This will resolve the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions