CppADCodeGen
2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
openmp_h.hpp
1
const
char
CPPADCG_OPENMP_H_FILE[] = R
"*=*(#ifndef CPPADCG_OPENMP_H
2
#define CPPADCG_OPENMP_H
3
/* --------------------------------------------------------------------------
4
* CppADCodeGen: C++ Algorithmic Differentiation with Source Code Generation:
5
* Copyright (C) 2016 Ciengis
6
*
7
* CppADCodeGen is distributed under multiple licenses:
8
*
9
* - Eclipse Public License Version 1.0 (EPL1), and
10
* - GNU General Public License Version 3 (GPL3).
11
*
12
* EPL1 terms and conditions can be found in the file "epl-v10.txt", while
13
* terms and conditions for the GPL3 can be found in the file "gpl3.txt".
14
* ----------------------------------------------------------------------------
15
* Author: Joao Leal
16
*/
17
#ifdef __cplusplus
18
extern "C" {
19
#endif
20
21
enum ScheduleStrategy {SCHED_STATIC = 1, // omp_sched_static
22
SCHED_DYNAMIC = 2, // omp_sched_dynamic with chunk size 1
23
SCHED_GUIDED = 3 // omp_sched_guided
24
};
25
26
27
void cppadcg_openmp_set_threads(unsigned int n);
28
29
unsigned int cppadcg_openmp_get_threads();
30
31
32
void cppadcg_openmp_set_scheduler_strategy(enum ScheduleStrategy s);
33
34
enum ScheduleStrategy cppadcg_openmp_get_scheduler_strategy();
35
36
void cppadcg_openmp_apply_scheduler_strategy();
37
38
39
void cppadcg_openmp_set_verbose(int v);
40
41
int cppadcg_openmp_is_verbose();
42
43
44
void cppadcg_openmp_set_disabled(int disabled);
45
46
int cppadcg_openmp_is_disabled();
47
48
49
#ifdef __cplusplus
50
}
51
#endif
52
53
#endif)*=*";
54
55
const
size_t
CPPADCG_OPENMP_H_FILE_SIZE = 1413;
56
include
cppad
cg
model
threadpool
openmp_h.hpp
Generated on Tue Jan 23 2024 13:46:34 for CppADCodeGen by
1.8.17