Skip to content

Do parallel runs always need N+1 tasks? #945

Closed

Description

@Sbte

If I want to run a code (in my case POP from OMUSE) on N cores (number_of_workers), say 128, it seems like I need to request N+1, so 129, tasks (in slurm), because AMUSE will call MPI.Spawn 128 times, but the original process already used 1 task, so that makes the total 129.

  • I can not use 127 workers for the code I run through AMUSE, because that will mess up the domain partitioning.
  • If I use 129 tasks, it means that I have to use two supercomputer nodes (each node having 128 cores) so that's also not an option.
  • If I use oversubscribe, I can not pin each process to a physical core, so that's probably bad for performance (this could double the computational time because two processes share a core).

What's the proper way to solve this? Is it really not possible to reuse the original process for a worker?

Activity

  1. ipelupessy commented on Apr 14, 2023

    @ipelupessy
    Member

    it depends, the N+1 option is safe if you can do it..oversubscribe is an option, but as you say this could be bad for performance: you should be careful that the MPI is not using any CPU when idling (depends on the MPI for example openmpi has --mca mpi_yield_when_idle 1) then it should be ok.

  2. locked and limited conversation to collaborators on Apr 15, 2023
  3. converted this issue into a discussion #946 on Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions