Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
PP-04-MPI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mohamadbashar.disoki
PP-04-MPI
Commits
6dd972cd
Commit
6dd972cd
authored
Nov 29, 2023
by
mohamadbashar.disoki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update READEME.md
parent
4e8d0f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+4
-4
No files found.
README.md
View file @
6dd972cd
...
...
@@ -24,20 +24,20 @@ the way given below, to generate an executable *mpi_sample*.
mpicc -o mpi_sample mpi_sample.c
```
**Note**
: compile your code
within
the
**/nfs**
shared directory
**Note**
: compile your code
under
the
**/nfs**
shared directory
To run it only in your machine (with 2 processes), you do
```
mpirun -np 2 ./mpi_sample
```
Now, to run it
within a
cluster (add the hostname of the cluster's node you want to use),
Now, to run it
in the
cluster (add the hostname of the cluster's node you want to use),
```
mpirun -np 5 -hosts master,
localhost
./mpi_sample
mpirun -np 5 -hosts master,
slave1
./mpi_sample
```
Or specify the same in a hostfile
Or specify the same in a hostfile
(add user=mpiuser for slave1, slave2 hosts)
```
mpirun -np 3 -f mpi_hosts ./mpi_sampl
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment