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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:24:55+00:00 2026-06-13T16:24:55+00:00

I have a machine with 8 processors. I want to alternate using OpenMP and

  • 0

I have a machine with 8 processors. I want to alternate using OpenMP and MPI on my code like this:

OpenMP phase:

  • ranks 1-7 wait on a MPI_Barrier
  • rank 0 uses all 8 processors with OpenMP

MPI phase:

  • rank 0 reaches barrier and all ranks use one processor each

So far, I’ve done:

  • set I_MPI_WAIT_MODE 1 so that ranks 1-7 don’t use the CPU while on the barrier.
  • set omp_set_num_threads(8) on rank 0 so that it launches 8 OpenMP threads.

It all worked. Rank 0 did launch 8 threads, but all are confined to one processor. On the OpenMP phase I get 8 threads from rank 0 running on one processor and all other processors are idle.

How do I tell MPI to allow rank 0 to use the other processors? I am using Intel MPI, but could switch to OpenMPI or MPICH if needed.

  • 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-13T16:24:56+00:00Added an answer on June 13, 2026 at 4:24 pm

    Thanks all for the comments and answers. You are all right. It’s all about the “PIN” option.

    To solve my problem, I just had to:

    I_MPI_WAIT_MODE=1

    I_MPI_PIN_DOMAIN=omp

    Simple as that. Now all processors are available to all ranks.

    The option

    I_MPI_DEBUG=4

    shows which processors each rank gets.

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

Sidebar

Related Questions

I have a machine control system in Python that currently looks roughly like this
I have this loop that parses machine code and emulates the instructions as if
I have several python.exe processes running on my Vista machine and I would like
I have a machine with Ubuntu 12.04 and have installed Jenkins ver. 1.424.6 using
I need to write to a text file using JavaScript. I have a machine
I want to learn machine code. Not for a specific reason. Just for the
On my dev machine, I want to be able to have an SSL server,
Suppose I have a machine, which has 2 x Intel Xeon x5550 quad-core processors
I have this many hundreds of cell long Mathematica file and I want to
I want to execute a Python script on several (15+) remote machine using SSH.

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.