Thrill  0.1
defines.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  * foxxll/defines.hpp
3  *
4  * Document all defines that may change the behavior of FOXXLL.
5  *
6  * Part of FOXXLL. See http://foxxll.org
7  *
8  * Copyright (C) 2008-2010 Andreas Beckmann <[email protected]>
9  *
10  * Distributed under the Boost Software License, Version 1.0.
11  * (See accompanying file LICENSE_1_0.txt or copy at
12  * http://www.boost.org/LICENSE_1_0.txt)
13  **************************************************************************/
14 
15 #ifndef FOXXLL_DEFINES_HEADER
16 #define FOXXLL_DEFINES_HEADER
17 
18 //#define FOXXLL_HAVE_MMAP_FILE 0/1
19 //#define FOXXLL_HAVE_WINCALL_FILE 0/1
20 //#define FOXXLL_HAVE_LINUXAIO_FILE 0/1
21 // default: 0/1 (platform and type dependent)
22 // used in: io/*_file.h, io/*_file.cpp, mng/mng.cpp
23 // affects: library
24 // effect: enables/disables some file implementations
25 
26 //#define FOXXLL_CHECK_BLOCK_ALIGNING
27 // default: not defined
28 // used in: io/*_file.cpp
29 // effect: call request::check_alignment() from request::request(...)
30 
31 //#define FOXXLL_CHECK_FOR_PENDING_REQUESTS_ON_SUBMISSION 0/1
32 // default: 1
33 // used in: io/*_queue*.cpp
34 // affects: library
35 // effect: check (and warn) for multiple concurrently pending I/O requests
36 // for the same block, usually causing coherency problems on
37 // out-of-order execution
38 
39 //#define FOXXLL_DO_NOT_COUNT_WAIT_TIME
40 // default: not defined
41 // used in: io/iostats.{h,cpp}
42 // effect: makes calls to wait time counting functions no-ops
43 
44 //#define FOXXLL_WAIT_LOG_ENABLED
45 // default: not defined
46 // used in: common/log.cpp, io/iostats.cpp
47 // effect: writes wait timing information to the file given via environment
48 // variable STXXLWAITLOGFILE, does nothing if this is not defined
49 
50 //#define FOXXLL_CHECK_ORDER_IN_SORTS 0/1
51 // default: 0
52 // used in: algo/*sort.h, stream/sort_stream.h, containers/priority_queue.h
53 // effect if set to 1: perform additional checking of sorted results
54 
55 //#define FOXXLL_HACK_SINGLE_IO_THREAD
56 // default: not defined
57 // used in: io/disk_queues.h
58 // affects: programs
59 // effect if defined: uses only a single I/O thread instead of one per disk
60 // used e.g. by EcoSort which puts input file, output file and
61 // scratch on a single disk (RAID0)
62 
63 #endif // !FOXXLL_DEFINES_HEADER
64 
65 /**************************************************************************/