Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fmpi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
raphael.bach
fmpi
Commits
96e4e5c3
Verified
Commit
96e4e5c3
authored
3 years ago
by
raphael.bach
Browse files
Options
Downloads
Patches
Plain Diff
Add `array-sum-pp` and `pp` targets in Makefiles
parent
8b0b7cc0
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+2
-4
2 additions, 4 deletions
.gitignore
Makefile
+6
-0
6 additions, 0 deletions
Makefile
examples/array_sum/.gitignore
+1
-0
1 addition, 0 deletions
examples/array_sum/.gitignore
examples/array_sum/Makefile
+6
-0
6 additions, 0 deletions
examples/array_sum/Makefile
with
15 additions
and
4 deletions
.gitignore
+
2
−
4
View file @
96e4e5c3
...
@@ -42,15 +42,13 @@ src/fmpi_futhark_entry.c
...
@@ -42,15 +42,13 @@ src/fmpi_futhark_entry.c
log/
log/
# Misc
# Misc
cloc_exclude
.clocignore
scratchpad
# Object files
# Object files
*.o
*.o
obj/
obj/
# Scratchpads
scratchpad
# Static libraries
# Static libraries
*.a
*.a
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
6
−
0
View file @
96e4e5c3
...
@@ -102,6 +102,12 @@ examples: array-sum
...
@@ -102,6 +102,12 @@ examples: array-sum
.PHONY
:
array-sum
.PHONY
:
array-sum
array-sum
:
array-sum
:
$(
MAKE
)
-C
examples/array_sum all
$(
MAKE
)
-C
examples/array_sum all
.PHONY
:
array-sum-pp
array-sum-pp
:
export BUILD_MODE := $(BUILD_MODE)
array-sum-pp
:
export CFLAGS := $(filter-out -Iinclude
,
$(CFLAGS)) -I../../include
array-sum-pp
:
$(
MAKE
)
-C
examples/array_sum pp
################################################################################
################################################################################
# INSTALL TARGETS
# INSTALL TARGETS
################################################################################
################################################################################
...
...
This diff is collapsed.
Click to expand it.
examples/array_sum/.gitignore
+
1
−
0
View file @
96e4e5c3
...
@@ -3,3 +3,4 @@ as-release
...
@@ -3,3 +3,4 @@ as-release
as.c
as.c
as.h
as.h
as.json
as.json
main.pp
This diff is collapsed.
Click to expand it.
examples/array_sum/Makefile
+
6
−
0
View file @
96e4e5c3
...
@@ -17,6 +17,12 @@ as-$(BUILD_MODE): main.c as.c as.h
...
@@ -17,6 +17,12 @@ as-$(BUILD_MODE): main.c as.c as.h
as.h as.c &
:
as.fut
as.h as.c &
:
as.fut
futhark c
--library
$<
futhark c
--library
$<
.PHONY
:
pp
pp
:
main.pp
main.pp
:
main.c
$(
CC
)
$<
-o
$@
$(
CFLAGS
)
-dU
-E
################################################################################
################################################################################
# CLEAN TARGETS
# CLEAN TARGETS
################################################################################
################################################################################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment