CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
Loading...
Searching...
No Matches
openmp_h.hpp
1const 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
18extern "C" {
19#endif
20
21enum 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
27void cppadcg_openmp_set_threads(unsigned int n);
28
29unsigned int cppadcg_openmp_get_threads();
30
31
32void cppadcg_openmp_set_scheduler_strategy(enum ScheduleStrategy s);
33
34enum ScheduleStrategy cppadcg_openmp_get_scheduler_strategy();
35
36void cppadcg_openmp_apply_scheduler_strategy();
37
38
39void cppadcg_openmp_set_verbose(int v);
40
41int cppadcg_openmp_is_verbose();
42
43
44void cppadcg_openmp_set_disabled(int disabled);
45
46int cppadcg_openmp_is_disabled();
47
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif)*=*";
54
55const size_t CPPADCG_OPENMP_H_FILE_SIZE = 1413;
56