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
e82c4ec7
Verified
Commit
e82c4ec7
authored
3 years ago
by
raphael.bach
Browse files
Options
Downloads
Patches
Plain Diff
Update Makefile to remove warning when compiling `fmpi_futhark_entry.c`
parent
9e897a8b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+5
-0
5 additions, 0 deletions
Makefile
examples/array_sum/.gitignore
+3
-2
3 additions, 2 deletions
examples/array_sum/.gitignore
examples/array_sum/Makefile
+11
-1
11 additions, 1 deletion
examples/array_sum/Makefile
with
19 additions
and
3 deletions
Makefile
+
5
−
0
View file @
e82c4ec7
...
...
@@ -41,8 +41,10 @@ CFLAGS = -Wall -Walloc-zero -Warith-conversion -Warray-bounds=2 \
-funsafe-loop-optimizations
-ftrack-macro-expansion
=
0
-std
=
c17
ifeq
($(BUILD_MODE),debug)
CFLAGS
+=
-g3
-Og
CFLAGS_FUTHARK
+=
-g3
-Og
else
CFLAGS
+=
-O2
-fstack-protector-all
-fstack-protector-strong
-DNDEBUG
CFLAGS_FUTHARK
+=
-O2
-DNDEBUG
endif
CFLAGS
+=
-Iinclude
$(
MPI_INCDIRS
)
CPPFLAGS
=
-MMD
-MT
$@
-MP
-MF
build/
$(
BUILD_MODE
)
/obj/
$*
.d
...
...
@@ -64,6 +66,9 @@ all_debug:
all_release
:
$(
MAKE
)
all
BUILD_MODE
=
release
build/$(BUILD_MODE)/obj/fmpi_futhark_entry.o
:
fmpi_futhark_entry.c build/$(BUILD_MODE)/obj/fmpi_futhark_entry.d | build/$(BUILD_MODE)/obj
$(
CC
)
$<
-o
$@
-c
-fPIC
$(
CFLAGS_FUTHARK
)
-MMD
-MT
$@
-MP
-MF
build/
$(
BUILD_MODE
)
/obj/fmpi_futhark_entry.d
build/$(BUILD_MODE)/obj/%.o
:
%.c build/$(BUILD_MODE)/obj/%.d | build/$(BUILD_MODE)/obj
$(
CC
)
$<
-o
$@
-c
-fPIC
$(
CFLAGS
)
$(
CPPFLAGS
)
...
...
This diff is collapsed.
Click to expand it.
examples/array_sum/.gitignore
+
3
−
2
View file @
e82c4ec7
*.json
*.o
*.pp
as-debug
as-release
as.c
as.h
as.json
main.pp
This diff is collapsed.
Click to expand it.
examples/array_sum/Makefile
+
11
−
1
View file @
e82c4ec7
...
...
@@ -12,9 +12,15 @@ all_debug:
all_release
:
$(
MAKE
)
all
BUILD_MODE
=
release
as-$(BUILD_MODE)
:
main
.c as.c as.h
as-$(BUILD_MODE)
:
main
-$(BUILD_MODE).o as-$(BUILD_MODE).o
$(
CC
)
$^
-o
$@
$(
CFLAGS
)
$(
LDFLAGS
)
$(
LDLIBS
)
main-$(BUILD_MODE).o
:
main.c as.h
$(
CC
)
$<
-o
$@
-c
-fPIC
$(
CFLAGS
)
as-$(BUILD_MODE).o
:
as.c as.h
$(
CC
)
$<
-o
$@
-c
-fPIC
$(
CFLAGS_FUTHARK
)
as.h as.c &
:
as.fut
futhark c
--library
$<
...
...
@@ -35,10 +41,14 @@ clean-all: clean-debug clean-release clean-futhark
.PHONY
:
clean-debug
clean-debug
:
rm
-f
as-debug
rm
-f
as-debug.o
rm
-f
main-debug.o
.PHONY
:
clean-release
clean-release
:
rm
-f
as-release
rm
-f
as-release.o
rm
-f
main-release.o
.PHONY
:
clean-futhark
clean-futhark
:
...
...
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