Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cricket-ci
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
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
ACS
Public
Virtualization
cricket-ci
Commits
b2aa91b6
Commit
b2aa91b6
authored
1 year ago
by
Niklas Eiling
Browse files
Options
Downloads
Patches
Plain Diff
enable optimization if debugging is turned off
parent
a269c616
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#1034893
passed
1 year ago
Stage: prepare
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/Makefile
+3
-1
3 additions, 1 deletion
cpu/Makefile
with
3 additions
and
1 deletion
cpu/Makefile
+
3
−
1
View file @
b2aa91b6
...
...
@@ -82,7 +82,7 @@ INC_FLAGS += -I$(CUDA_SRC)/include
LIB_FLAGS
+=
-L
$(
LIBTIRPC_PREFIX
)
/lib
LIB_FLAGS
+=
-L
$(
CUDA_SRC
)
/lib64
LIB_FLAGS
+=
-L
$(
CUDA_SRC
)
/lib64/stubs
CC_FLAGS
+=
-std
=
gnu11
$(
INC_FLAGS
)
#-O2
CC_FLAGS
+=
-std
=
gnu11
$(
INC_FLAGS
)
# TODO: use extern in header files instead of direct definition e.g. in cpu-common.h to remove -fcommon flag
CC_FLAGS
+=
-fcommon
LD_FLAGS
=
$(
LIB_FLAGS
)
-ltirpc
-ldl
-lcrypto
-lelf
...
...
@@ -90,6 +90,8 @@ LD_FLAGS = $(LIB_FLAGS) -ltirpc -ldl -lcrypto -lelf
ifdef
WITH_DEBUG
# use ASAN_OPTIONS=protect_shadow_gap=0 LSAN_OPTIONS=fast_unwind_on_malloc=0 when running
CC_FLAGS
+=
-g
-ggdb
#-static-libasan -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize-address-use-after-scope
else
CC_FLAGS
+=
-O2
endif
ifdef
WITH_IB
...
...
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