aboutsummaryrefslogtreecommitdiff
path: root/src/allocators/glibc.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-19 13:12:30 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-19 13:12:30 +0100
commit7017f4774c5e33a84ddf662af9689b7b4ab290ce (patch)
treee602ad30bf8521c8c4a187bcfe4d00d8c2baea66 /src/allocators/glibc.py
parenta2ba38e85297ffc101b5db4a9b9f45330d224ca4 (diff)
parent64adaca5ef13770988dc732e23d17d5df10a58cc (diff)
downloadallocbench-7017f4774c5e33a84ddf662af9689b7b4ab290ce.tar.gz
allocbench-7017f4774c5e33a84ddf662af9689b7b4ab290ce.zip
Merge branch 'master' into align_to_cl
Diffstat (limited to 'src/allocators/glibc.py')
-rw-r--r--src/allocators/glibc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/allocators/glibc.py b/src/allocators/glibc.py
index 2718343..faeadd4 100644
--- a/src/allocators/glibc.py
+++ b/src/allocators/glibc.py
@@ -17,6 +17,8 @@
"""Glibc definitions"""
+from multiprocessing import cpu_count
+
from src.allocator import Allocator, LIBRARY_PATH
from src.artifact import GitArtifact
@@ -37,7 +39,7 @@ class Glibc(Allocator):
self.build_cmds = ["mkdir -p glibc-build",
"cd glibc-build; {srcdir}/configure --prefix={dir} " + configure_args,
"cd glibc-build; make",
- "cd glibc-build; make install"]
+ f"cd glibc-build; make -l {cpu_count()} install"]
self.cmd_prefix = "{dir}/lib/ld-linux-x86-64.so.2 --library-path {dir}/lib:" + LIBRARY_PATH