Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
High_End_Simulation_Exercises
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joanes Irigoien Kortabitarte
High_End_Simulation_Exercises
Merge requests
!4
1st upload
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
1st upload
mrk_br0
into
main
Overview
0
Commits
7
Pipelines
0
Changes
19
Closed
Masudur Rahaman Kazi
requested to merge
mrk_br0
into
main
1 year ago
Overview
0
Commits
7
Pipelines
0
Changes
19
Expand
0
0
Merge request reports
Compare
main
version 9
bc9dc037
1 year ago
version 8
cc9eed69
1 year ago
version 7
628440af
1 year ago
version 6
f77585f0
1 year ago
version 5
b7d6dfc6
1 year ago
version 4
c983fbc0
1 year ago
version 3
df780448
1 year ago
version 2
4aa34943
1 year ago
version 1
2e769504
1 year ago
main (base)
and
version 8
latest version
f692e61e
7 commits,
1 year ago
version 9
bc9dc037
6 commits,
1 year ago
version 8
cc9eed69
9 commits,
1 year ago
version 7
628440af
8 commits,
1 year ago
version 6
f77585f0
7 commits,
1 year ago
version 5
b7d6dfc6
6 commits,
1 year ago
version 4
c983fbc0
5 commits,
1 year ago
version 3
df780448
3 commits,
1 year ago
version 2
4aa34943
2 commits,
1 year ago
version 1
2e769504
1 commit,
1 year ago
19 files
+
1702
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
19
Search (e.g. *.vue) (Ctrl+P)
ex01-pt01/src/stream/Makefile
0 → 100644
+
63
−
0
Options
# configuration
TEST_CASE
=
stream
BUILD_DIR
=
../../build/
$(
TEST_CASE
)
# default benchmark parameters
NX
=
67108864
NWARM
=
2
NIT
=
10
PARAMETERS
=
${
NX
}
${
NWARM
}
${
NIT
}
# all
targets
=
$(
BUILD_DIR
)
/
$(
TEST_CASE
)
-base
$(
BUILD_DIR
)
/
$(
TEST_CASE
)
-omp-host
.PHONY
:
all
all
:
mk-target-dir $(targets)
mk-target-dir
:
mkdir
-p
$(
BUILD_DIR
)
# build rules
$(BUILD_DIR)/$(TEST_CASE)-base
:
$(TEST_CASE)-base.cpp $(TEST_CASE)-util.h ../util.h
g++
-O3
-march
=
native
-std
=
c++17
-o
$(
BUILD_DIR
)
/
$(
TEST_CASE
)
-base
$(
TEST_CASE
)
-base
.cpp
$(BUILD_DIR)/$(TEST_CASE)-omp-host
:
$(TEST_CASE)-omp-host.cpp $(TEST_CASE)-util.h ../util.h
g++
-O3
-march
=
native
-std
=
c++17
-fopenmp
-o
$(
BUILD_DIR
)
/
$(
TEST_CASE
)
-omp-host
$(
TEST_CASE
)
-omp-host
.cpp
# aliases without build directory
.PHONY
:
$(TEST_CASE)-base
$(TEST_CASE)-base
:
$(BUILD_DIR)/$(TEST_CASE)-base
.PHONY
:
$(TEST_CASE)-omp-host
$(TEST_CASE)-omp-host
:
$(BUILD_DIR)/$(TEST_CASE)-omp-host
# automated benchmark target
.PHONY
:
bench
bench
:
all
@
echo
"Base:"
$(
BUILD_DIR
)
/
$(
TEST_CASE
)
-base
$(
PARAMETERS
)
@
echo
""
@
echo
"OpenMP Host:"
$(
BUILD_DIR
)
/
$(
TEST_CASE
)
-omp-host
$(
PARAMETERS
)
@
echo
""
# clean target
.PHONY
:
clean
clean
:
rm
$(
targets
)
Loading