CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418427
1
/*
2
* Normaliz
3
* Copyright (C) 2012,2013 Christof Soeger
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*
17
* As an exception, when this program is distributed through (i) the App Store
18
* by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or (iii) Google Play
19
* by Google Inc., then that store may impose any digital rights management,
20
* device limits and/or redistribution restrictions that are required by its
21
* terms of service.
22
*/
23
24
/*
25
* This header provide some dummy replacements of OpenMP functions. We use it
26
* to compile Normaliz without OpenMP.
27
*/
28
29
#ifndef MY_OMP_H_
30
#define MY_OMP_H_
31
32
#ifdef _OPENMP
33
#include <omp.h>
34
#else
35
36
inline int omp_in_parallel() {
37
return false;
38
}
39
40
inline int omp_get_level(){
41
return 0;
42
}
43
44
inline int omp_get_active_level() {
45
return 0;
46
}
47
48
inline int omp_get_thread_num() {
49
return 0;
50
}
51
52
inline int omp_get_max_threads() {
53
return 1;
54
}
55
56
inline int omp_get_ancestor_thread_num(int level) {
57
return 0;
58
}
59
60
#endif /* ifndef _OPENMP */
61
#endif /* MY_OMP_H_ */
62
63