hello-mpi

A basic "Hello world" example to output text to console from nodes over a network using MPI.

https://github.com/puzzlef/hello-mpi

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.9%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

A basic "Hello world" example to output text to console from nodes over a network using MPI.

Basic Info
  • Host: GitHub
  • Owner: puzzlef
  • License: mit
  • Language: C++
  • Default Branch: main
  • Homepage:
  • Size: 25.4 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created almost 3 years ago · Last pushed 11 months ago
Metadata Files
Readme License Citation

README.md

A basic "Hello world" example to output text to console from nodes over a network using MPI.

A cluster at IIIT has four SLURM nodes. We want to run one process on each node, and run 32 threads using OpenMP. In future, such a setup would allow us to run distributed algorithms that utilize each node's memory efficiently and minimize communication cost (within the same node). Output is saved in gist. Technical help from Semparithi Aravindan.

Note You can just copy main.sh to your system and run it. \ For the code, refer to main.cxx.


```bash $ scl enable gcc-toolset-11 bash $ sbatch main.sh

==========================================

SLURMJOBID = 3373

SLURM_NODELIST = node[01-04]

SLURMJOBGPUS =

==========================================

Cloning into 'hello-mpi'...

[node01.local:2180262] MCW rank 0 is not bound (or bound to all available processors)

[node02.local:3790641] MCW rank 1 is not bound (or bound to all available processors)

[node04.local:3758212] MCW rank 3 is not bound (or bound to all available processors)

[node03.local:3287974] MCW rank 2 is not bound (or bound to all available processors)

P00: NAME=node01.local

P00: OMPNUMTHREADS=32

P02: NAME=node03.local

P02: OMPNUMTHREADS=32

P03: NAME=node04.local

P03: OMPNUMTHREADS=32

P01: NAME=node02.local

P01: OMPNUMTHREADS=32

P00.T00: Hello MPI

P00.T24: Hello MPI

P00.T16: Hello MPI

P00.T26: Hello MPI

P00.T05: Hello MPI

P00.T29: Hello MPI

P00.T22: Hello MPI

P00.T06: Hello MPI

P00.T17: Hello MPI

P00.T23: Hello MPI

P00.T25: Hello MPI

P00.T13: Hello MPI

P00.T01: Hello MPI

P00.T09: Hello MPI

P00.T03: Hello MPI

P00.T02: Hello MPI

P00.T31: Hello MPI

P03.T00: Hello MPI

P03.T24: Hello MPI

P03.T05: Hello MPI

P03.T21: Hello MPI

P03.T04: Hello MPI

...

```



References




ORG DOI

Owner

  • Name: puzzlef
  • Login: puzzlef
  • Kind: organization

A summary of experiments.

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Sahu
    given-names: Subhajit
    orcid: https://orcid.org/0000-0001-5140-6578
title: "puzzlef/hello-mpi: A basic \"Hello world\" example to output text to console from nodes over a network using MPI"
version: 1.0.0
doi: 10.5281/zenodo.10030476
date-released: 2023-10-22

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels