aboutsummaryrefslogtreecommitdiff
path: root/src/allocators/mesh.py
diff options
context:
space:
mode:
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")