Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
MPI_HW
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
hasan.bahjat
MPI_HW
Commits
1822eacc
Commit
1822eacc
authored
Nov 18, 2024
by
hasan.bahjat
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Make File
parent
313e30fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
Makefile
Makefile
+42
-0
No files found.
Makefile
0 → 100644
View file @
1822eacc
## Compiler and flags
## c compiler
MPI_CC
=
mpicc
## C++ Compiler
MPI_PP
=
mpic++
## Genereal Flagse
CFLAGS
=
-O2
-Wall
-std
=
c++11
## Profiling Flags
PROF_FLAGS
=
-pg
## Hosts Flags
MPI_HOSTS
=
mpi_host
## Source file
SRC
=
$(Pr)
.c
TARGET
=
$(Pr)
.out
STATIONS_COUNT
=
$(n)
# Build the target
all
:
$(TARGET)
$(TARGET)
:
$(SRC)
$(MPI_PP)
$(CFLAGS)
-o
$(TARGET)
$(SRC)
## Build the program
build
:
$(MPI_PP)
$(CFLAGS)
-o
$(TARGET)
$(SRC)
## Run the program with a specified number of processes
run
:
mpirun
-n
STATIONS_COUNT
-f
$(MPI_HOSTS)
./
$(TARGET)
## Clean the build
clean
:
rm
-f
$(TARGET)
\ 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