Skip to content

Commit a7993ee

Browse files
author
Denis Chapligin
authored
Merge pull request #5760 from woltapp/nostxxl
Removed STXXL support.
2 parents 699ca2b + 2d0b2ca commit a7993ee

File tree

16 files changed

+5
-201
lines changed

16 files changed

+5
-201
lines changed

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ Thumbs.db
7272
###########################
7373
.idea/
7474

75-
# stxxl related files #
76-
#######################
77-
.stxxl
78-
stxxl.log
79-
stxxl.errlog
80-
8175
# Compiled Binary Files #
8276
####################################
8377
/osrm-extract

.travis.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,6 @@ matrix:
151151
TARGET_ARCH='i686' CCOMPILER='gcc-7' CXXCOMPILER='g++-7' BUILD_TYPE='Release'
152152
CFLAGS='-m32 -msse2 -mfpmath=sse' CXXFLAGS='-m32 -msse2 -mfpmath=sse'
153153
154-
- os: linux
155-
compiler: "gcc-7-stxxl"
156-
addons: &gcc7
157-
apt:
158-
sources: ['ubuntu-toolchain-r-test']
159-
packages: ['g++-7', 'libbz2-dev', 'libstxxl-dev', 'libxml2-dev', 'libzip-dev', 'liblua5.2-dev', 'libtbb-dev', 'libboost-all-dev']
160-
env: CCOMPILER='gcc-7' CXXCOMPILER='g++-7' BUILD_TYPE='Release' ENABLE_STXXL=On
161-
162154
- os: linux
163155
compiler: "gcc-5-release"
164156
addons: &gcc49
@@ -483,7 +475,6 @@ install:
483475
-DENABLE_COVERAGE=${ENABLE_COVERAGE:-OFF} \
484476
-DENABLE_NODE_BINDINGS=${ENABLE_NODE_BINDINGS:-OFF} \
485477
-DENABLE_SANITIZER=${ENABLE_SANITIZER:-OFF} \
486-
-DENABLE_STXXL=${ENABLE_STXXL:-OFF} \
487478
-DBUILD_TOOLS=ON \
488479
-DENABLE_CCACHE=ON \
489480
-DCMAKE_INSTALL_PREFIX=${OSRM_INSTALL_DIR} \

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
- Misc:
2121
- CHANGED: Reduce memory usage for raster source handling. [#5572](https://github.com/Project-OSRM/osrm-backend/pull/5572)
2222
- CHANGED: Add cmake option `ENABLE_DEBUG_LOGGING` to control whether output debug logging. [#3427](https://github.com/Project-OSRM/osrm-backend/issues/3427)
23-
23+
- Infrastructure
24+
- REMOVED: STXXL support removed as STXXL became abandonware. [#5760](https://github.com/Project-OSRM/osrm-backend/pull/5760)
2425
# 5.21.0
2526
- Changes from 5.20.0
2627
- Features:

CMakeLists.txt

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ option(ENABLE_ASSERTIONS "Use assertions in release mode" OFF)
2626
option(ENABLE_DEBUG_LOGGING "Use debug logging in release mode" OFF)
2727
option(ENABLE_COVERAGE "Build with coverage instrumentalisation" OFF)
2828
option(ENABLE_SANITIZER "Use memory sanitizer for Debug build" OFF)
29-
option(ENABLE_STXXL "Use STXXL library" OFF)
3029
option(ENABLE_LTO "Use LTO if available" OFF)
3130
option(ENABLE_FUZZING "Fuzz testing using LLVM's libFuzzer" OFF)
3231
option(ENABLE_GOLD_LINKER "Use GNU gold linker if available" ON)
@@ -38,7 +37,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
3837
if(ENABLE_MASON)
3938
# versions in use
4039
set(MASON_BOOST_VERSION "1.65.1")
41-
set(MASON_STXXL_VERSION "1.4.1-1")
4240
set(MASON_EXPAT_VERSION "2.2.0")
4341
set(MASON_LUA_VERSION "5.2.4")
4442
set(MASON_BZIP2_VERSION "1.0.6")
@@ -480,13 +478,6 @@ if(ENABLE_MASON)
480478
mason_use(boost_libsystem VERSION ${MASON_BOOST_VERSION})
481479
set(Boost_SYSTEM_LIBRARY ${MASON_PACKAGE_boost_libsystem_STATIC_LIBS})
482480

483-
if (ENABLE_STXXL)
484-
mason_use(stxxl VERSION ${MASON_STXXL_VERSION})
485-
add_dependency_includes(${MASON_PACKAGE_stxxl_INCLUDE_DIRS})
486-
set(MAYBE_STXXL_LIBRARY ${MASON_PACKAGE_stxxl_STATIC_LIBS})
487-
add_definitions(-DUSE_STXXL_LIBRARY)
488-
endif()
489-
490481
mason_use(expat VERSION ${MASON_EXPAT_VERSION})
491482
add_dependency_includes(${MASON_PACKAGE_expat_INCLUDE_DIRS})
492483
set(EXPAT_LIBRARIES ${MASON_PACKAGE_expat_STATIC_LIBS})
@@ -542,17 +533,6 @@ else()
542533
find_package(EXPAT REQUIRED)
543534
add_dependency_includes(${EXPAT_INCLUDE_DIRS})
544535

545-
if (ENABLE_STXXL)
546-
find_package(STXXL)
547-
if (STXXL_FOUND)
548-
add_dependency_includes(${STXXL_INCLUDE_DIR})
549-
set(MAYBE_STXXL_LIBRARY ${STXXL_LIBRARY})
550-
add_definitions(-DUSE_STXXL_LIBRARY)
551-
else()
552-
MESSAGE(STATUS "STXXL was requested but not found, default STL will be used")
553-
endif()
554-
endif()
555-
556536
find_package(BZip2 REQUIRED)
557537
add_dependency_includes(${BZIP2_INCLUDE_DIR})
558538

@@ -612,15 +592,6 @@ add_dependency_defines(-DBOOST_SPIRIT_USE_PHOENIX_V3)
612592
add_dependency_defines(-DBOOST_RESULT_OF_USE_DECLTYPE)
613593
add_dependency_defines(-DBOOST_FILESYSTEM_NO_DEPRECATED)
614594

615-
if (ENABLE_STXXL)
616-
set(OpenMP_FIND_QUIETLY ON)
617-
find_package(OpenMP)
618-
if(OPENMP_FOUND)
619-
message(STATUS "OpenMP support found. Linking just in case for stxxl")
620-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
621-
endif()
622-
endif()
623-
624595
add_definitions(${OSRM_DEFINES})
625596
include_directories(SYSTEM ${DEPENDENCIES_INCLUDE_DIRS})
626597

@@ -653,7 +624,6 @@ set(EXTRACTOR_LIBRARIES
653624
${EXPAT_LIBRARIES}
654625
${USED_LUA_LIBRARIES}
655626
${OSMIUM_LIBRARIES}
656-
${MAYBE_STXXL_LIBRARY}
657627
${TBB_LIBRARIES}
658628
${ZLIB_LIBRARY}
659629
${MAYBE_COVERAGE_LIBRARIES})
@@ -687,7 +657,6 @@ set(CONTRACTOR_LIBRARIES
687657
${BOOST_BASE_LIBRARIES}
688658
${CMAKE_THREAD_LIBS_INIT}
689659
${USED_LUA_LIBRARIES}
690-
${MAYBE_STXXL_LIBRARY}
691660
${TBB_LIBRARIES}
692661
${MAYBE_RT_LIBRARY}
693662
${MAYBE_COVERAGE_LIBRARIES})
@@ -707,7 +676,6 @@ set(STORAGE_LIBRARIES
707676
set(UTIL_LIBRARIES
708677
${BOOST_BASE_LIBRARIES}
709678
${CMAKE_THREAD_LIBS_INIT}
710-
${MAYBE_STXXL_LIBRARY}
711679
${TBB_LIBRARIES}
712680
${MAYBE_COVERAGE_LIBRARIES}
713681
${ZLIB_LIBRARY})

cmake/FindSTXXL.cmake

Lines changed: 0 additions & 51 deletions
This file was deleted.

features/support/env.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,9 @@ module.exports = function () {
2222
this.PROFILES_PATH = path.resolve(this.ROOT_PATH, 'profiles');
2323
this.FIXTURES_PATH = path.resolve(this.ROOT_PATH, 'unit_tests/fixtures');
2424
this.BIN_PATH = process.env.OSRM_BUILD_DIR && process.env.OSRM_BUILD_DIR || path.resolve(this.ROOT_PATH, 'build');
25-
var stxxl_config = path.resolve(this.ROOT_PATH, 'test/.stxxl');
26-
if (!fs.existsSync(stxxl_config)) {
27-
return callback(new Error('*** '+stxxl_config+ 'does not exist'));
28-
}
29-
3025
this.DATASET_NAME = 'cucumber';
3126
this.PLATFORM_WINDOWS = process.platform.match(/^win.*/);
32-
this.DEFAULT_ENVIRONMENT = Object.assign({STXXLCFG: stxxl_config}, process.env);
27+
this.DEFAULT_ENVIRONMENT = process.env;
3328
this.DEFAULT_PROFILE = 'bicycle';
3429
this.DEFAULT_INPUT_FORMAT = 'osm';
3530
this.DEFAULT_LOAD_METHOD = process.argv[process.argv.indexOf('-m') +1].match('mmap') ? 'mmap' : 'datastore';

include/extractor/internal_extractor_edge.hpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -85,33 +85,6 @@ struct InternalExtractorEdge
8585
DurationData duration_data;
8686
// coordinate of the source node
8787
util::Coordinate source_coordinate;
88-
89-
// necessary static util functions for stxxl's sorting
90-
static InternalExtractorEdge min_osm_value()
91-
{
92-
return InternalExtractorEdge(
93-
MIN_OSM_NODEID, MIN_OSM_NODEID, WeightData(), DurationData(), util::Coordinate());
94-
}
95-
static InternalExtractorEdge max_osm_value()
96-
{
97-
return InternalExtractorEdge(
98-
MAX_OSM_NODEID, MAX_OSM_NODEID, WeightData(), DurationData(), util::Coordinate());
99-
}
100-
101-
static InternalExtractorEdge min_internal_value()
102-
{
103-
auto v = min_osm_value();
104-
v.result.source = 0;
105-
v.result.target = 0;
106-
return v;
107-
}
108-
static InternalExtractorEdge max_internal_value()
109-
{
110-
auto v = max_osm_value();
111-
v.result.source = std::numeric_limits<NodeID>::max();
112-
v.result.target = std::numeric_limits<NodeID>::max();
113-
return v;
114-
}
11588
};
11689
}
11790
}

include/storage/serialization.hpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
#include <cstdint>
1818
#include <tuple>
1919

20-
#if USE_STXXL_LIBRARY
21-
#include <stxxl/vector>
22-
#endif
23-
2420
namespace osrm
2521
{
2622
namespace storage
@@ -134,24 +130,6 @@ inline void write(storage::tar::FileWriter &writer,
134130
writer.WriteStreaming<T>(name, vec.begin(), vec.size());
135131
}
136132

137-
#if USE_STXXL_LIBRARY
138-
template <typename T>
139-
inline void read(storage::tar::FileReader &reader, const std::string &name, stxxl::vector<T> &vec)
140-
{
141-
auto size = reader.ReadElementCount64(name);
142-
vec.reserve(size);
143-
reader.ReadStreaming<T>(name, std::back_inserter(vec), size);
144-
}
145-
146-
template <typename T>
147-
inline void
148-
write(storage::tar::FileWriter &writer, const std::string &name, const stxxl::vector<T> &vec)
149-
{
150-
writer.WriteElementCount64(name, vec.size());
151-
writer.WriteStreaming<T>(name, vec.begin(), vec.size());
152-
}
153-
#endif
154-
155133
template <typename T> void read(io::BufferReader &reader, std::vector<T> &data)
156134
{
157135
const auto count = reader.ReadElementCount64();

include/util/meminfo.hpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,11 @@
77
#include <sys/resource.h>
88
#endif
99

10-
#if USE_STXXL_LIBRARY
11-
#include <stxxl/mng>
12-
#endif
13-
1410
namespace osrm
1511
{
1612
namespace util
1713
{
1814

19-
inline void DumpSTXXLStats()
20-
{
21-
#if USE_STXXL_LIBRARY
22-
#if STXXL_VERSION_MAJOR > 1 || (STXXL_VERSION_MAJOR == 1 && STXXL_VERSION_MINOR >= 4)
23-
auto manager = stxxl::block_manager::get_instance();
24-
util::Log() << "STXXL: peak bytes used: " << manager->get_maximum_allocation();
25-
util::Log() << "STXXL: total disk allocated: " << manager->get_total_bytes();
26-
#else
27-
#warning STXXL 1.4+ recommended - STXXL memory summary will not be available
28-
util::Log() << "STXXL: memory summary not available, needs STXXL 1.4 or higher";
29-
#endif
30-
#endif
31-
}
32-
3315
inline void DumpMemoryStats()
3416
{
3517
#ifndef _WIN32

include/util/vector_view.hpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
#include <utility>
2020
#include <vector>
2121

22-
#if USE_STXXL_LIBRARY
23-
#include <stxxl/vector>
24-
#endif
25-
2622
namespace osrm
2723
{
2824
namespace util
@@ -253,16 +249,10 @@ template <typename DataT> void swap(vector_view<DataT> &lhs, vector_view<DataT>
253249
std::swap(lhs.m_size, rhs.m_size);
254250
}
255251

256-
#if USE_STXXL_LIBRARY
257-
template <typename T> using ExternalVector = stxxl::vector<T>;
258-
#else
259-
template <typename T> using ExternalVector = std::vector<T>;
260-
#endif
261-
262252
template <typename DataT, storage::Ownership Ownership>
263253
using InternalOrExternalVector =
264254
typename std::conditional<Ownership == storage::Ownership::External,
265-
ExternalVector<DataT>,
255+
std::vector<DataT>,
266256
std::vector<DataT>>::type;
267257

268258
template <typename DataT, storage::Ownership Ownership>

0 commit comments

Comments
 (0)