source: trunk/cppad/configure.hpp.in @ 2939

Last change on this file since 2939 was 2939, checked in by bradbell, 7 years ago
  1. Make sure all '# defines' have an '# undef' and vise-verser.
  2. Add adolc tests to jenkins.sh.

check_define.sh: New reoutine that check defines have matching undef.
package.sh: run check_define.sh.
search.sh: add missing source directory to search.
configure.hpp.in: fix bug in speed tests (name of preprocessor macro).
pow.hpp: fix comment.
thread_alloc.hpp: fix spelling in comment.
jenkins.sh: Automatically set LD_LIBRARY_PATH.
base_adolc.hpp: fix problem when using ADOL-C-2.4.1
adolc_prefix.omh: add link to get_adolc.sh.

  • Property svn:keywords set to Id
File size: 4.3 KB
Line 
1/* $Id: configure.hpp.in 2939 2013-10-14 11:06:18Z bradbell $ */
2# ifndef CPPAD_CONFIGURE_INCLUDED
3# define CPPAD_CONFIGURE_INCLUDED
4
5/* --------------------------------------------------------------------------
6CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
7
8CppAD is distributed under multiple licenses. This distribution is under
9the terms of the
10                    Eclipse Public License Version 1.0.
11
12A copy of this license is included in the COPYING file of this distribution.
13Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
14-------------------------------------------------------------------------- */
15
16/*
17$begin configure$$
18$spell
19        CppAD
20$$
21
22$section Preprocessor Definitions Used by CppAD$$
23$index configure, symbol$$
24$index symbol, configure$$
25
26$head Preprocessor Symbols$$
27$index preprocessor, symbol$$
28$index symbol, processor$$
29All of the preprocessor symbols used by CppAD begin with
30$code CPPAD_$$
31(there are some deprecated symbols that begin with $code CppAD$$).
32
33$end
34*/
35
36/*!
37\defgroup configure_hpp configure.hpp
38\{
39 \file configure.hpp
40Replacement for config.h so that all preprocessor symbols begin with CPPAD_
41*/
42
43/*!
44\def CPPAD_PACKAGE_STRING
45cppad-yyyymmdd as a C string where yyyy is year, mm is month, and dd is day.
46*/
47# define CPPAD_PACKAGE_STRING "cppad-@cppad_version@"
48
49/*!
50def CPPAD_HAS_NULLPTR
51Does this compiler support the a c++11 null-pointer constant nullptr
52(true = 1, false = 0).
53*/
54# define CPPAD_HAS_NULLPTR @cppad_has_nullptr@
55 
56 /*!
57def CPPAD_INTERNAL_SPARSE_SET
58is the internal representation used for sparse vectors of std::set<size_t>
59either sparse_set or sparse_list).
60*/
61# define CPPAD_INTERNAL_SPARSE_SET @cppad_internal_sparse_set@
62
63/*!
64\def CPPAD_BOOSTVECTOR
65If this symbol is one, and _MSC_VER is not defined,
66we are using boost vector for CPPAD_TESTVECTOR.
67It this symbol is zero,
68we are not using boost vector for CPPAD_TESTVECTOR.
69*/
70# define CPPAD_BOOSTVECTOR @cppad_boostvector@
71
72/*!
73\def CPPAD_CPPADVECTOR
74If this symbol is one,
75we are using CppAD vector for CPPAD_TESTVECTOR.
76It this symbol is zero,
77we are not using CppAD vector for CPPAD_TESTVECTOR.
78*/
79# define CPPAD_CPPADVECTOR @cppad_cppadvector@
80
81/*!
82\def CPPAD_STDVECTOR
83If this symbol is one,
84we are using standard vector for CPPAD_TESTVECTOR.
85It this symbol is zero,
86we are not using standard vector for CPPAD_TESTVECTOR.
87*/
88# define CPPAD_STDVECTOR @cppad_stdvector@
89
90/*!
91\def CPPAD_EIGENVECTOR
92If this symbol is one,
93we are using Eigen vector for CPPAD_TESTVECTOR.
94If this symbol is zero,
95we are not using Eigen vector for CPPAD_TESTVECTOR.
96*/
97# define CPPAD_EIGENVECTOR @cppad_eigenvector@
98
99/*!
100\def CPPAD_HAS_GETTIMEOFDAY
101If this symbol is one, and _MSC_VER is not defined,
102this system supports the gettimeofday funcgtion.
103Otherwise, this smybol should be zero.
104*/
105# define CPPAD_HAS_GETTIMEOFDAY @cppad_has_gettimeofday@
106
107/*!
108\def CPPAD_SIZE_T_SAME_UNSIGNED_INT
109If this symbol is one, the type size_t is the same as the type unsigned int,
110otherwise this symbol is zero.
111*/
112# define CPPAD_SIZE_T_SAME_UNSIGNED_INT @cppad_size_t_same_unsigned_int@
113
114/*!
115\def CPPAD_TAPE_ADDR_TYPE
116Is the type used to store address on the tape. If not size_t, then
117<code>sizeof(CPPAD_TAPE_ADDR_TYPE) <= sizeof( size_t )</code>
118to conserve memory.
119This type must support \c std::numeric_limits,
120the \c <= operator,
121and conversion to \c size_t.
122Make sure that the type chosen returns true for is_pod<CPPAD_TAPE_ADDR_TYPE>
123in pod_vector.hpp.
124This type is later defined as \c addr_t in the CppAD namespace.
125*/
126# define CPPAD_TAPE_ADDR_TYPE @cppad_tape_addr_type@
127
128/*!
129\def CPPAD_TAPE_ID_TYPE
130Is the type used to store tape identifiers. If not size_t, then
131<code>sizeof(CPPAD_TAPE_ID_TYPE) <= sizeof( size_t )</code>
132to conserve memory.
133This type must support \c std::numeric_limits,
134the \c <= operator,
135and conversion to \c size_t.
136Make sure that the type chosen returns true for is_pod<CPPAD_TAPE_ID_TYPE>
137in pod_vector.hpp.
138This type is later defined as \c tape_id_t in the CppAD namespace.
139*/
140# define CPPAD_TAPE_ID_TYPE @cppad_tape_id_type@
141 
142/*!
143\def CPPAD_MAX_NUM_THREADS
144Specifies the maximum number of threads that CppAD can support
145(must be greater than or equal four).
146
147The user may define CPPAD_MAX_NUM_THREADS before including any of the CppAD
148header files.  If it is not yet defined,
149*/
150# ifndef CPPAD_MAX_NUM_THREADS
151# define CPPAD_MAX_NUM_THREADS @cppad_max_num_threads@
152# endif
153
154/*! \} */
155# endif
Note: See TracBrowser for help on using the repository browser.