aboutsummaryrefslogtreecommitdiff
path: root/src/allocators/mesh.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-06-24 17:21:09 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-06-24 17:21:09 +0200
commitf20c5285a0c0351a4cb8ac68a994a8d69457963e (patch)
tree3c14906e3982bcd22eded5ae144bfc5478b2889a /src/allocators/mesh.py
parent6dc6cea0b738c74852b920a9cf2fb1c49634dbe9 (diff)
downloadallocbench-f20c5285a0c0351a4cb8ac68a994a8d69457963e.tar.gz
allocbench-f20c5285a0c0351a4cb8ac68a994a8d69457963e.zip
add mesh and lockless_allocator definitions
Diffstat (limited to 'src/allocators/mesh.py')
-rw-r--r--src/allocators/mesh.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/allocators/mesh.py b/src/allocators/mesh.py
new file mode 100644
index 0000000..843685b
--- /dev/null
+++ b/src/allocators/mesh.py
@@ -0,0 +1,22 @@
+import src.allocator
+
+sources = src.allocator.Allocator_Sources("Mesh",
+ retrieve_cmds=["git clone https://github.com/plasma-umass/Mesh"],
+ reset_cmds=["git stash"])
+
+
+class Mesh (src.allocator.Allocator):
+ """Mesh definition for allocbench"""
+ def __init__(self, name, **kwargs):
+
+ kwargs["sources"] = sources
+ kwargs["LD_PRELOAD"] = "{srcdir}/libmesh.so"
+ kwargs["build_cmds"] = ["cd {srcdir}; git submodule update --init",
+ "cd {srcdir}; ./configure",
+ "cd {srcdir}; make -j 4",
+ "mkdir -p {dir}"]
+
+ super().__init__(name, **kwargs)
+
+
+mesh = Mesh("Mesh")