aboutsummaryrefslogtreecommitdiff
path: root/allocators/hoard_make.patch
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-02-09 12:45:38 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-02-09 12:45:38 +0100
commit4c0830ffbc045290c167e482855cb25a639df0e0 (patch)
treee66c2e0cbb209e5ab4442dfd7897cec23c8c5ff3 /allocators/hoard_make.patch
parentcd9264be5594a7715dde29b3c0be82a00baf5fd1 (diff)
downloadallocbench-4c0830ffbc045290c167e482855cb25a639df0e0.tar.gz
allocbench-4c0830ffbc045290c167e482855cb25a639df0e0.zip
add allocators build support and two allocator definitions
The allocators created by the file allocators/BA_allocators.py are those used in my BA thesis available at: https://muhq.space/ba.html. allocators/no_falsesharing.py builds patched versions of tcmalloc and glibc without any allocator inroduced falsesharing.
Diffstat (limited to 'allocators/hoard_make.patch')
-rw-r--r--allocators/hoard_make.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/allocators/hoard_make.patch b/allocators/hoard_make.patch
new file mode 100644
index 0000000..4848c57
--- /dev/null
+++ b/allocators/hoard_make.patch
@@ -0,0 +1,16 @@
+diff --git a/src/GNUmakefile b/src/GNUmakefile
+index 2b2958e..7fa433a 100644
+--- a/src/GNUmakefile
++++ b/src/GNUmakefile
+@@ -1,9 +1,9 @@
+ # Commands to compile Hoard for various targets.
+ # Run make (with no arguments) to see the complete target list.
+
+-CPPFLAGS = -std=c++14 -O3 -DNDEBUG -ffast-math -fno-builtin-malloc -Wall -Wextra -Wshadow -Wconversion -Wuninitialized
++CPPFLAGS = -std=c++14 -O2 -DNDEBUG -ffast-math -fno-builtin-malloc -Wall -Wextra -Wshadow -Wconversion -Wuninitialized
+ #CPPFLAGS = -std=c++14 -g -O0 -ffast-math -fno-builtin-malloc -Wall -Wextra -Wshadow -Wconversion -Wuninitialized
+-CXX = clang++
++CXX = g++
+
+ # Compute platform (OS and architecture) and build accordingly.
+