-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some performance improvements in the graph and tags preparation proce…
…ss, added version info to the built memory mapped files, please re-prepare your network with every new version as the data structure might have changed, also disabled the edge_ids export by default (can be enabled manually, in that case, please prepare the network with simplify=osm-aware in advance)
- Loading branch information
Showing
24 changed files
with
481 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Build and run from project directory: | ||
# docker build -t map_matching_2-clang-ubuntu-2004-build -f docker/build/clang/19-ubuntu-2004/Dockerfile . | ||
# docker run -u $(id -u):$(id -g) -v .:/tmp/map-matching-2 -it --rm map_matching_2-clang-ubuntu-2004-build | ||
|
||
FROM ubuntu:20.04 AS build | ||
|
||
ARG DEBIAN_FRONTEND="noninteractive" | ||
# only use major LLVM version | ||
ARG LLVM_VERSION=19 | ||
ARG CMAKE_VERSION=3.28.6 | ||
|
||
RUN apt-get update && apt-get dist-upgrade -y && \ | ||
apt-get install --no-install-recommends -y \ | ||
tzdata make lsb-release ca-certificates wget software-properties-common gnupg libssl-dev && \ | ||
# LLVM | ||
wget https://apt.llvm.org/llvm.sh && \ | ||
chmod +x llvm.sh && \ | ||
./llvm.sh $LLVM_VERSION all && \ | ||
rm llvm.sh && \ | ||
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-$LLVM_VERSION 100 \ | ||
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-$LLVM_VERSION \ | ||
--slave /usr/bin/lldb lldb /usr/bin/lldb-$LLVM_VERSION && \ | ||
# CMake | ||
wget "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz" && \ | ||
tar -xzf "cmake-${CMAKE_VERSION}.tar.gz" && \ | ||
rm -f "cmake-${CMAKE_VERSION}.tar.gz" && \ | ||
cd "cmake-${CMAKE_VERSION}" && \ | ||
./bootstrap --parallel=$(nproc) && make -j $(nproc) && make install && \ | ||
cd .. && rm -rf "cmake-${CMAKE_VERSION}" && \ | ||
update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 100 && \ | ||
# debug tools | ||
apt-get install --no-install-recommends -y \ | ||
gdb ninja-build valgrind \ | ||
locales-all dos2unix rsync tar python3 python3-dev linux-tools-$(uname -r) time git && \ | ||
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Build and run from project directory: | ||
# docker build -t map_matching_2-clang-build -f docker/build/clang/19/Dockerfile . | ||
# docker run -u $(id -u):$(id -g) -v .:/tmp/map-matching-2 -it --rm map_matching_2-clang-build | ||
|
||
FROM debian:12 AS build | ||
|
||
ARG DEBIAN_FRONTEND="noninteractive" | ||
# only use major LLVM version | ||
ARG LLVM_VERSION=19 | ||
ARG CMAKE_VERSION=3.28.6 | ||
|
||
RUN apt-get update && apt-get dist-upgrade -y && \ | ||
apt-get install --no-install-recommends -y \ | ||
tzdata make lsb-release ca-certificates wget software-properties-common gnupg libssl-dev && \ | ||
# https://github.com/hof/bookworm-apt-add-repository-issue | ||
[ ! -e /etc/apt/sources.list ] && echo "#" | tee /etc/apt/sources.list && \ | ||
# LLVM | ||
wget https://apt.llvm.org/llvm.sh && \ | ||
chmod +x llvm.sh && \ | ||
./llvm.sh $LLVM_VERSION all && \ | ||
rm llvm.sh && \ | ||
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-$LLVM_VERSION 100 \ | ||
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-$LLVM_VERSION \ | ||
--slave /usr/bin/lldb lldb /usr/bin/lldb-$LLVM_VERSION && \ | ||
# CMake | ||
wget "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz" && \ | ||
tar -xzf "cmake-${CMAKE_VERSION}.tar.gz" && \ | ||
rm -f "cmake-${CMAKE_VERSION}.tar.gz" && \ | ||
cd "cmake-${CMAKE_VERSION}" && \ | ||
./bootstrap --parallel=$(nproc) && make -j $(nproc) && make install && \ | ||
cd .. && rm -rf "cmake-${CMAKE_VERSION}" && \ | ||
update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 100 && \ | ||
# debug tools | ||
apt-get install --no-install-recommends -y \ | ||
gdb ninja-build valgrind \ | ||
locales-all dos2unix rsync tar python3 python3-dev linux-perf time git && \ | ||
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.