diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-09-29 15:35:02 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-09-29 15:35:02 +0200 |
| commit | 059d263a6b944c4cfc5a5a0f2716e6a85116cfc1 (patch) | |
| tree | 8169cefa09e08dab87f2f94967dc5a80ee2b425a /src/allocators/tbbmalloc.py | |
| parent | e9f41e9e3ef8f6d35dda10c6c58d77b52d577e8a (diff) | |
| parent | 3f43d0f464b8da5829ff652a3208720c74d1882b (diff) | |
| download | allocbench-059d263a6b944c4cfc5a5a0f2716e6a85116cfc1.tar.gz allocbench-059d263a6b944c4cfc5a5a0f2716e6a85116cfc1.zip | |
Merge branch 'artifact'
Diffstat (limited to 'src/allocators/tbbmalloc.py')
| -rw-r--r-- | src/allocators/tbbmalloc.py | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/allocators/tbbmalloc.py b/src/allocators/tbbmalloc.py index aa50253..a7af5a5 100644 --- a/src/allocators/tbbmalloc.py +++ b/src/allocators/tbbmalloc.py @@ -17,27 +17,22 @@ """tbbmalloc definition for allocbench""" -from src.allocator import Allocator, AllocatorSources - -VERSION = "2019_U8" - -source = AllocatorSources("tbb", - ["git clone https://github.com/intel/tbb.git"], - [f"git checkout {VERSION}"], - ["git reset --hard"]) +from src.allocator import Allocator +from src.artifact import GitArtifact class TBBMalloc(Allocator): """tbbmalloc allocator""" - def __init__(self, name, **kwargs): - kwargs["sources"] = source - kwargs["LD_PRELOAD"] = "{dir}/libtbbmalloc.so" - kwargs["build_cmds"] = ["cd {srcdir}; make tbbmalloc -j4", - "mkdir -p {dir}", - 'ln -f -s $(find {srcdir} -executable -name "*libtbbmalloc_proxy.so*" | head -1) {dir}/libtbbmalloc.so'] + sources = GitArtifact("tbb", "https://github.com/intel/tbb.git") + + def __init__(self, name, **kwargs): + self.LD_PRELOAD = "{dir}/libtbbmalloc.so" + self.build_cmds = ["cd {srcdir}; make tbbmalloc -j4", + "mkdir -p {dir}", + 'ln -f -s $(find {srcdir} -executable -name "*libtbbmalloc_proxy.so*" | head -1) {dir}/libtbbmalloc.so'] super().__init__(name, **kwargs) -tbbmalloc = TBBMalloc("tbbmalloc", color="xkcd:green") +tbbmalloc = TBBMalloc("tbbmalloc", color="xkcd:green", version="2019_U8") |
