Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8032939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:32:27+00:00 2026-06-05T01:32:27+00:00

When using MPI_Isend , can the MPI_Request parameter be a null pointer (when the

  • 0

When using MPI_Isend, can the MPI_Request parameter be a null pointer (when the sender doesn’t care about the message after it is sent)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:32:28+00:00Added an answer on June 5, 2026 at 1:32 am

    Short answer is no – the request handle parameter cannot be NULL.

    MPI_Isend() initiates an asynchronous send operation. All asynchronous operations are given a request handle that has to be acted on later in one of the following ways:

    • block and wait for the operation to finish with MPI_Wait() and friends
    • test the operation for completion with MPI_Test() and friends until the test turns out positive
    • free the handle with MPI_Request_free()

    Both waiting and testing functions free the request once it has completed. You can also free it immediately after it is returned by MPI_Isend(). This will not cancel the operation but rather mark the request for deletion as soon as it is finished. You won’t be able to get the status of the send operation though.

    If you don’t care about the outcome of the asynchronous operation (e.g. completion status, message receive status, error code, etc.), the right thing to do is as follows:

    MPI_Request req;
    ...
    MPI_Isend(..., &req);
    MPI_Request_free(&req);
    ...
    

    Caveat: this works for asynchronous sends since one can devise another method to verify that the send operation has completed, e.g. the destination process might respond after receiving the message. But one should never free an asynchronous receive request and should wait or test for completion instead as there will be no way to know when the operation has been completed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing a research about gpu in cluster environments using mpi to communicate. In
I am new to parallel programming. I researched a lot about using MPI and
I'm still confused about the implementation of my program using MPI. This is my
Using the code below, I am constructing polygons with various number of sides. Can
I have some parallel code (implemented using MPI) that needs to be documented. I'd
I want to sort array of random numbers using MPI library. The idea is
Say, I run a parallel program using MPI. Execution command mpirun -n 8 -npernode
I've got a one to all broadcast method for a hypercube, written using MPI:
The problem is to search a password into a big file of size about
I am using TotalView and am getting an MPI_Error. However, Totalview does not stop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.