Questions tagged [stxxl]

STXXL is an open source out-of-core implementation of the STL, that is available for all major desktop operating systems under the Boost Software License 1.0.

STXXL is an open source out-of-core implementation of the containers, that are part of the C++ STL. It is released under the Boost Software License 1.0 and available for Linux, Mac OS X, Free BSD and Windows (2000 upwards).

52 questions
1
vote
1 answer

OSRM extract and best swap stxxl location on 2 HDs

I want to set up the car profile data, but it is now taking 3 days and still at 100% Graphs (so way more to go) and I am thinking, maybe my swap and stxxl is just set up inappropriately. I have the following system 2HDs 4 TB SATA 6 Gb/s 7200 rpm…
TheRealPir
  • 445
  • 1
  • 6
  • 15
1
vote
1 answer

Operating with huge array with random access to its elements

I have to work with very large array (about 2000^3) of float, moreover, sometimes I have to route through array elements randomly, or by another non-sequential way. I use stxxl library and store my data in stxxl::vector container. This library…
user2760303
  • 55
  • 1
  • 8
1
vote
0 answers

Compiling STXXL on visual studio 2015

I am trying to use STXXL map in my c++ code in visual studio 2015. I followed the instruction on http://stxxl.sourceforge.net/tags/master/install_windows.html' and when I try to build the project in visual studio I get this message: "<"hash_map">"…
Rachel
  • 11
  • 1
1
vote
1 answer

C++: STXXL and VS runtime error in simple code

I have the following code which is a pretty simple test, but the VS refuses to run it: stxxl::syscall_file OutputFile("Data/test.bin", stxxl::file::RDWR | stxxl::file::CREAT | stxxl::file::DIRECT); typedef stxxl::VECTOR_GENERATOR
TheShadow
  • 69
  • 1
  • 9
1
vote
0 answers

Specify location to store stxxl::map/persist its data?

stxxl::vector has a constructor where you can provide a stxxl::file *. This ties the vector to that specific file: typedef stxxl::VECTOR_GENERATOR::result stxxl_vector_int; { stxxl::syscall_file f("some_vec.bin", stxxl::file::RDWR |…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
1
vote
1 answer

Parallel STXXL Vector Initialization

The following minimal example illustrates the behaviour of stxxl when initializing containers in parallel (using openMP): #include #include #include typedef stxxl::VECTOR_GENERATOR::result VEC_T; int main(int…
Lars Hadidi
  • 558
  • 1
  • 5
  • 15
1
vote
1 answer

STXXL: How to sort Vector of pairs on second element?

Similar Question is available here: How do I sort a vector of pairs based on the second element of the pair? but I am interested in External Memory Sorting. I have tried using the analogies from Internal Memory Sorting but the error occurs in…
Akif Khan
  • 53
  • 8
1
vote
3 answers

How to use std::string as key in stxxl::map

I am trying to use std::string as a key in the stxxl::map The insertion was fine for small number of strings about 10-100. But while trying to insert large number of strings about 100000 in it, I am getting segmentation fault. The code is as…
Sriram Mahavadi
  • 417
  • 4
  • 8
0
votes
1 answer

stxxl Assertion `it != root_node_.end()' failed

I am receiving this assertion failed error when trying to insert an element in a stxxl map. The entire assertion error is the following: resCache: /usr/include/stxxl/bits/containers/btree/btree.h:470: std::pair >, bool>…
0
votes
1 answer

Makefile with STXXL

I need to use the STXXL library for a software project I am working on, but for some reason, I am having trouble compiling a test file. I am not very familiar with makefiles, so I might have mixed up in linking some of the libraries together. The…
alguru
  • 404
  • 6
  • 16
0
votes
1 answer

stxxl and overriding cxx_constructor

I'm trying to use stxxl as a backing store to a vector. If I do nothing it will automatically allocate 1 gig of disk space and everything works perfectly. However I don't need that much space allocated and, in fact, I need to gracefully scale from…
Goz
  • 61,365
  • 24
  • 124
  • 204
0
votes
0 answers

stxxl exceeding OS limit of nr of threads

STXXL 1.4.1 on Windows 10 / VS2015. I have some code in which I essentially use this: typedef stxxl::vector, 2 * 1024> TVector; typedef stxxl::deque CellIndexList; This is to lower the block size from the…
Roel
  • 19,338
  • 6
  • 61
  • 90
0
votes
1 answer

Including STXXL library in the MakeFile

I was trying to install STXXL library to a custom path following this answer supplying prefix to cmake this way: cmake -DCMAKE_INSTALL_PREFIX=/usr . && make all install When I run the tests, they seems to be working fine. But I want to include…
Unni
  • 5,348
  • 6
  • 36
  • 55
0
votes
1 answer

STXXL fails at creating a map of strings in long numeric

With the code that follows, I want to create a map of type std::map. By using a debugger, I got that the exception was raised by stl_pair.h at line 368 (pair& operator=(typename conditional<__and_,…
jackb
  • 695
  • 8
  • 26
0
votes
1 answer

Any STXXL alternatives to STXXL to handle unknown size at compile time, or any tricks?

This question and answers to it reassure me that STXXL handles only fixed data length. Are there any alternatives to STXXL to handle dynamic data size (data size unknown at compile time)? Or are there any tricks to use STXXL to handle dynamic data…
sofname
  • 429
  • 1
  • 5
  • 20