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 7193241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:07:46+00:00 2026-05-28T20:07:46+00:00

I understand that MPI_init can only be called more than once per executable instance.

  • 0

I understand that MPI_init can only be called more than once per executable instance. Can anyone clarify the limits of this language: ie:

  1. I know multiple python exec on mpiexec can be run.
  2. Is there anything like fork() or threads that can lead to something that qualifies? Is the criterion that they have to happen first and then invoke mpiexec?

Thanks!

  • 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-05-28T20:07:47+00:00Added an answer on May 28, 2026 at 8:07 pm

    If I understand you correctly, the easiest way would be to intercept the calls to MPI_Init and execute it only once. For C, MPI provides the PMPI Profiling Interface that allows you to override any MPI symbol and provides an additional PMPI symbol. E.g. you define a function MPI_Init and in that function, depending if it is called for the firs time, call PMPI_Init. The same (in reverse) for MPI_Finalize.

    I am not sure about the most elegant way to do that in Python. I assume you could just hack into the python bindings or LD_PRELOAD a simple C library doing the magic.

    All of that is just a workaround, that might have bad side effects. MPI Implementations advise you to not do much before an MPI_Init. The real solution would be fixing the code to use MPI appropriately.

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

Sidebar

Related Questions

I understand that only the class can access the data so therefore it is
I understand that SimpleXML is far more efficient than DOMDocument. Any advice on how
I understand that there is a *.className selector since there can be multiple html
I understand that the page load of asp.net (mvc 2.0ish) sites can suffer for
I understand that CGAffineTransformMakeRotation can rotate an image, and CGAffineTransformMakeTranslation translates an image. I
I understand that repr() 's purpose is to return a string, that can be
I understand that a IQueryable cannot be serialized. That means that queries can not
I understand that a const pointer can be declared a couple ways: const int
I understand that PHP stores a user's session id in a cookie called PHPSESSID
I understand that in the Air for IOS settings you can set the Resolution

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.