From f20c5285a0c0351a4cb8ac68a994a8d69457963e Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 24 Jun 2019 17:21:09 +0200 Subject: add mesh and lockless_allocator definitions --- src/allocators/mesh.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/allocators/mesh.py (limited to 'src/allocators/mesh.py') 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") -- cgit v1.2.3