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
f1f3145f
Commit
f1f3145f
authored
Dec 02, 2023
by
mohamadbashar.disoki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Makefile
parent
6dd972cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
Makefile
Makefile
+24
-0
README.md
README.md
+2
-0
No files found.
Makefile
0 → 100644
View file @
f1f3145f
# Makefile for MPI program
# Source file
SRC
=
hello_world.c
# number of process
NP
=
2
# Compiler
CC
=
mpicc
# Executable name
EXE
=
./out
all
:
$(EXE)
$(EXE)
:
$(SRC)
$(CC)
-o
$(EXE)
$(SRC)
clean
:
rm
-f
$(EXE)
run
:
mpirun
-np
$(NP)
-f
mpi_hosts
$(EXE)
\ No newline at end of file
README.md
View file @
f1f3145f
...
...
@@ -43,6 +43,8 @@ Or specify the same in a hostfile (add user=mpiuser for slave1, slave2 hosts)
mpirun -np 3 -f mpi_hosts ./mpi_sampl
```
Use Makefile
To compile the program type "make" which compiles the program with "mpicc".
*Useful Links*
*
[
MPI Tutorial
](
https://mpitutorial.com/tutorials/
)
\ No newline at end of file
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