aboutsummaryrefslogtreecommitdiff
path: root/src/allocators/hoard.py
blob: cb2c0e1a0c539951d1aeaa2b41bdc0bf6efd97bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import src.allocator


version = 2.7
sources = src.allocator.Allocator_Sources("Hoard",
            retrieve_cmds=["git clone https://github.com/emeryberger/Hoard.git"],
            reset_cmds=["git reset --hard"])


class Hoard (src.allocator.Allocator):
    """Hoard definition for allocbench"""
    def __init__(self, name, **kwargs):

        kwargs["sources"] = sources
        kwargs["LD_PRELOAD"] = "{srcdir}/src/libhoard.so"
        kwargs["build_cmds"] = ["cd {srcdir}/src; make", "mkdir -p {dir}"]
        kwargs["patches"] = ["{patchdir}/hoard_make.patch"]

        super().__init__(name, **kwargs)


hoard = Hoard("Hoard", color="xkcd:brown")