Skip to content

Commit

Permalink
Updated tcmalloc build
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrug committed Nov 5, 2024
1 parent d18d5bf commit 2c8eb16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ WORKDIR /src/

# Install dependencies
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked apt-get update && \
apt-get install -y git libssl-dev pkg-config make google-perftools

# Workaround for missing library link
RUN ln -d /usr/lib/x86_64-linux-gnu/libtcmalloc.so.4 /usr/lib/x86_64-linux-gnu/libtcmalloc.so
apt-get install -y git libssl-dev pkg-config make libgoogle-perftools-dev

# Copy and Build Code
COPY . .
Expand Down Expand Up @@ -56,7 +53,7 @@ ENTRYPOINT [ "solvers" ]
# Extract Binary
FROM intermediate
RUN apt-get update && \
apt-get install -y build-essential cmake git zlib1g-dev libelf-dev libdw-dev libboost-dev libboost-iostreams-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libunwind-dev libzstd-dev git
apt-get install -y build-essential cmake git zlib1g-dev libelf-dev libdw-dev libboost-dev libboost-iostreams-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libunwind-dev libzstd-dev libgoogle-perftools4
RUN git clone https://invent.kde.org/sdk/heaptrack.git /heaptrack && \
mkdir /heaptrack/build && cd /heaptrack/build && \
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI=OFF .. && \
Expand Down
2 changes: 1 addition & 1 deletion crates/alloc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ doctest = false
workspace = true

[features]
default = [ "allocator-jemalloc" ]
default = [ "allocator-tcmalloc" ]
allocator-mimalloc = [ "dep:mimalloc" ]
allocator-tcmalloc = [ "dep:tcmalloc" ]
allocator-jemalloc = [ "dep:tikv-jemallocator" ]

0 comments on commit 2c8eb16

Please sign in to comment.