1 //-----------------------------------------------------------------------------
2 // OpenMP runtime support library for Visual C++
3 // Copyright (C) Microsoft Corporation.  All rights reserved.
4 //-----------------------------------------------------------------------------
5
6 // OpenMP C/C++ Version 2.0 March 2002
7
8 #pragma once
9
10 #if defined(__cplusplus)
11 extern "C" {
12 #endif
13
14 #define _OMPAPI        __cdecl
15
16 #if !defined(_OMP_LOCK_T)
17 #define _OMP_LOCK_T
18 typedef void * omp_lock_t;
19 #endif
20
21 #if !defined(_OMP_NEST_LOCK_T)
22 #define _OMP_NEST_LOCK_T
23 typedef void * omp_nest_lock_t;
24 #endif
25
26 #if !defined(_OPENMP)
27
28 #if defined(_DEBUG)
29       #pragma comment(lib, "vcompd")
30 #else     // _DEBUG
31       #pragma comment(lib, "vcomp")
32 #endif  // _DEBUG
33
34 #endif // _OPENMP
35
36 #if !defined(_OPENMP_NOFORCE_MANIFEST)
37
38       #include <ompassem.h>
39
40       #if defined(_DEBUG)
41
42              #if defined(_M_IX86)
43                     #pragma comment(linker,"/manifestdependency:\"type='win32' "                    \
44                           "name='" __OPENMP_ASSEMBLY_NAME_PREFIX ".DebugOpenMP' "               \
45                           "version='" __OPENMP_ASSEMBLY_VERSION "' "                                           \
46                           "processorArchitecture='x86' "                                                        \
47                           "publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")
48              #elif defined(_M_AMD64)
49                     #pragma comment(linker,"/manifestdependency:\"type='win32' "                    \
50                           "name='" __OPENMP_ASSEMBLY_NAME_PREFIX ".DebugOpenMP' "               \
51                           "version='" __OPENMP_ASSEMBLY_VERSION "' "                                           \
52                           "processorArchitecture='amd64' "                                                        \
53                           "publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")
54              #elif defined(_M_IA64)
55                     #pragma comment(linker,"/manifestdependency:\"type='win32' "                    \
56                           "name='" __OPENMP_ASSEMBLY_NAME_PREFIX ".DebugOpenMP' "               \
57                           "version='" __OPENMP_ASSEMBLY_VERSION "' "                                           \
58                           "processorArchitecture='ia64' "                                                        \
59                           "publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")
60              #endif
61
62       #else     // _DEBUG
63
64              #if defined(_M_IX86)
65                     #pragma comment(linker,"/manifestdependency:\"type='win32' "                    \
66                           "name='" __OPENMP_ASSEMBLY_NAME_PREFIX ".OpenMP' "                       \
67                           "version='" __OPENMP_ASSEMBLY_VERSION "' "                                           \
68                           "processorArchitecture='x86' "                                                        \
69                           "publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")
70              #elif defined(_M_AMD64)
71                     #pragma comment(linker,"/manifestdependency:\"type='win32' "                    \
72                           "name='" __OPENMP_ASSEMBLY_NAME_PREFIX ".OpenMP' "                       \
73                           "version='" __OPENMP_ASSEMBLY_VERSION "' "                                           \
74                           "processorArchitecture='amd64' "                                                        \
75                           "publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")
76              #elif defined(_M_IA64)
77                     #pragma comment(linker,"/manifestdependency:\"type='win32' "                    \
78                           "name='" __OPENMP_ASSEMBLY_NAME_PREFIX ".OpenMP' "                       \
79                           "version='" __OPENMP_ASSEMBLY_VERSION "' "                                           \
80                           "processorArchitecture='ia64' "                                                        \
81                           "publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")
82              #endif
83
84       #endif  // _DEBUG
85
86 #endif  // _OPENMP_NOFORCE_MANIFEST
87
88 #if !defined(_OMPIMP)
89 #define _OMPIMP        __declspec(dllimport)
90 #endif
91
92 _OMPIMP void _OMPAPI
93 omp_set_num_threads(
94       int _Num_threads
95       );
96
97 _OMPIMP int _OMPAPI
98 omp_get_num_threads(
99       void
100       );
101
102 _OMPIMP int _OMPAPI
103 omp_get_max_threads(
104       void
105       );
106
107 _OMPIMP int _OMPAPI
108 omp_get_thread_num(
109       void
110       );
111
112 _OMPIMP int _OMPAPI
113 omp_get_num_procs(
114       void
115       );
116
117 _OMPIMP void _OMPAPI
118 omp_set_dynamic(
119       int _Dynamic_threads
120       );
121
122 _OMPIMP int _OMPAPI
123 omp_get_dynamic(
124       void
125       );
126
127 _OMPIMP int _OMPAPI
128 omp_in_parallel(
129       void
130       );
131
132 _OMPIMP void _OMPAPI
133 omp_set_nested(
134       int _Nested
135       );
136
137 _OMPIMP int _OMPAPI
138 omp_get_nested(
139       void
140       );
Lines 141 ... 150 are skipped.
151
152 _OMPIMP void _OMPAPI
153 omp_set_lock(
154       omp_lock_t * _Lock
155       );
156
157 _OMPIMP void _OMPAPI
158 omp_unset_lock(
159       omp_lock_t * _Lock
160       );
161
162 _OMPIMP int _OMPAPI
163 omp_test_lock(
164       omp_lock_t * _Lock
165       );
166
167 _OMPIMP void _OMPAPI
168 omp_init_nest_lock(
169       omp_nest_lock_t * _Lock
170       );
171
172 _OMPIMP void _OMPAPI
173 omp_destroy_nest_lock(
174       omp_nest_lock_t * _Lock
175       );
176
177 _OMPIMP void _OMPAPI
178 omp_set_nest_lock(
179       omp_nest_lock_t * _Lock
180       );
181
182 _OMPIMP void _OMPAPI
183 omp_unset_nest_lock(
184       omp_nest_lock_t * _Lock
185       );
186
187 _OMPIMP int _OMPAPI
188 omp_test_nest_lock(
189       omp_nest_lock_t * _Lock
190       );
191
192 _OMPIMP double _OMPAPI
193 omp_get_wtime(
194       void
195       );
196
197 _OMPIMP double _OMPAPI
198 omp_get_wtick(
199       void
200       );
201
202 #if defined(__cplusplus)
203 }
204 #endif
205