baoabmd 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/BaoabMD.js +928 -0
  2. package/CL/cl.h +1979 -0
  3. package/CL/cl_d3d10.h +268 -0
  4. package/CL/cl_d3d11.h +270 -0
  5. package/CL/cl_dx9_media_sharing.h +386 -0
  6. package/CL/cl_dx9_media_sharing_intel.h +18 -0
  7. package/CL/cl_egl.h +187 -0
  8. package/CL/cl_ext.h +4738 -0
  9. package/CL/cl_ext_intel.h +19 -0
  10. package/CL/cl_function_types.h +1199 -0
  11. package/CL/cl_gl.h +421 -0
  12. package/CL/cl_gl_ext.h +18 -0
  13. package/CL/cl_half.h +440 -0
  14. package/CL/cl_icd.h +349 -0
  15. package/CL/cl_layer.h +163 -0
  16. package/CL/cl_platform.h +1414 -0
  17. package/CL/cl_va_api_media_sharing_intel.h +220 -0
  18. package/CL/cl_version.h +85 -0
  19. package/CL/opencl.h +32 -0
  20. package/INSTRUCTIONS.txt +13 -0
  21. package/OpenCL.lib +0 -0
  22. package/binding.gyp +24 -0
  23. package/build/Release/forces.exp +0 -0
  24. package/build/Release/forces.iobj +0 -0
  25. package/build/Release/forces.ipdb +0 -0
  26. package/build/Release/forces.lib +0 -0
  27. package/build/Release/forces.node +0 -0
  28. package/build/Release/forces.pdb +0 -0
  29. package/build/Release/nothing.lib +0 -0
  30. package/build/Release/obj/forces/forces.node.recipe +11 -0
  31. package/build/Release/obj/forces/forces.obj +0 -0
  32. package/build/Release/obj/forces/forces.tlog/CL.command.1.tlog +0 -0
  33. package/build/Release/obj/forces/forces.tlog/CL.read.1.tlog +0 -0
  34. package/build/Release/obj/forces/forces.tlog/CL.write.1.tlog +0 -0
  35. package/build/Release/obj/forces/forces.tlog/Cl.items.tlog +2 -0
  36. package/build/Release/obj/forces/forces.tlog/forces.lastbuildstate +2 -0
  37. package/build/Release/obj/forces/forces.tlog/link.command.1.tlog +0 -0
  38. package/build/Release/obj/forces/forces.tlog/link.read.1.tlog +0 -0
  39. package/build/Release/obj/forces/forces.tlog/link.secondary.1.tlog +5 -0
  40. package/build/Release/obj/forces/forces.tlog/link.write.1.tlog +0 -0
  41. package/build/Release/obj/forces/win_delay_load_hook.obj +0 -0
  42. package/build/binding.sln +39 -0
  43. package/build/forces.vcxproj +156 -0
  44. package/build/forces.vcxproj.filters +46 -0
  45. package/extra xyz files/traj_GB1-10000s.xyz +451900 -0
  46. package/forces.cpp +194 -0
  47. package/package.json +26 -0
  48. package/pdb/1UBQ.pdb +970 -0
  49. package/pdb/1YRF.pdb +1467 -0
  50. package/pdb/input.pdb +4521 -0
package/CL/cl_gl.h ADDED
@@ -0,0 +1,421 @@
1
+ /*******************************************************************************
2
+ * Copyright (c) 2008-2026 The Khronos Group Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ******************************************************************************/
16
+
17
+ #ifndef OPENCL_CL_GL_H_
18
+ #define OPENCL_CL_GL_H_
19
+
20
+ /*
21
+ ** This header is generated from the Khronos OpenCL XML API Registry.
22
+ */
23
+
24
+ #include <CL/cl.h>
25
+
26
+ /* CL_NO_PROTOTYPES implies CL_NO_EXTENSION_PROTOTYPES: */
27
+ #if defined(CL_NO_PROTOTYPES) && !defined(CL_NO_EXTENSION_PROTOTYPES)
28
+ #define CL_NO_EXTENSION_PROTOTYPES
29
+ #endif
30
+
31
+ /* CL_NO_EXTENSION_PROTOTYPES implies
32
+ CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES and
33
+ CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES: */
34
+ #if defined(CL_NO_EXTENSION_PROTOTYPES) && \
35
+ !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
36
+ #define CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES
37
+ #endif
38
+ #if defined(CL_NO_EXTENSION_PROTOTYPES) && \
39
+ !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
40
+ #define CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES
41
+ #endif
42
+
43
+ #ifdef __cplusplus
44
+ extern "C" {
45
+ #endif
46
+
47
+ /***************************************************************
48
+ * cl_khr_gl_sharing
49
+ ***************************************************************/
50
+ #define cl_khr_gl_sharing 1
51
+ #define CL_KHR_GL_SHARING_EXTENSION_NAME \
52
+ "cl_khr_gl_sharing"
53
+
54
+
55
+ #define CL_KHR_GL_SHARING_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
56
+
57
+ typedef int cl_GLint;
58
+ typedef unsigned int cl_GLenum;
59
+ typedef unsigned int cl_GLuint;
60
+
61
+ typedef cl_uint cl_gl_context_info;
62
+
63
+ /* Error codes */
64
+ #define CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR -1000
65
+
66
+ /* cl_gl_context_info */
67
+ #define CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR 0x2006
68
+ #define CL_DEVICES_FOR_GL_CONTEXT_KHR 0x2007
69
+
70
+ /* Additional cl_context_properties */
71
+ #define CL_GL_CONTEXT_KHR 0x2008
72
+ #define CL_EGL_DISPLAY_KHR 0x2009
73
+ #define CL_GLX_DISPLAY_KHR 0x200A
74
+ #define CL_WGL_HDC_KHR 0x200B
75
+ #define CL_CGL_SHAREGROUP_KHR 0x200C
76
+
77
+ typedef cl_uint cl_gl_object_type;
78
+ typedef cl_uint cl_gl_texture_info;
79
+ typedef cl_uint cl_gl_platform_info;
80
+
81
+ /* cl_gl_object_type */
82
+ #define CL_GL_OBJECT_BUFFER 0x2000
83
+ #define CL_GL_OBJECT_TEXTURE2D 0x2001
84
+ #define CL_GL_OBJECT_TEXTURE3D 0x2002
85
+ #define CL_GL_OBJECT_RENDERBUFFER 0x2003
86
+
87
+ #if defined(CL_VERSION_1_2)
88
+ /* cl_gl_object_type */
89
+ #define CL_GL_OBJECT_TEXTURE2D_ARRAY 0x200E
90
+ #define CL_GL_OBJECT_TEXTURE1D 0x200F
91
+ #define CL_GL_OBJECT_TEXTURE1D_ARRAY 0x2010
92
+ #define CL_GL_OBJECT_TEXTURE_BUFFER 0x2011
93
+
94
+ #endif /* defined(CL_VERSION_1_2) */
95
+
96
+ /* cl_gl_texture_info */
97
+ #define CL_GL_TEXTURE_TARGET 0x2004
98
+ #define CL_GL_MIPMAP_LEVEL 0x2005
99
+
100
+
101
+ typedef cl_int CL_API_CALL
102
+ clGetGLContextInfoKHR_t(
103
+ const cl_context_properties* properties,
104
+ cl_gl_context_info param_name,
105
+ size_t param_value_size,
106
+ void* param_value,
107
+ size_t* param_value_size_ret);
108
+
109
+ typedef clGetGLContextInfoKHR_t *
110
+ clGetGLContextInfoKHR_fn CL_API_SUFFIX__VERSION_1_0;
111
+
112
+ typedef cl_mem CL_API_CALL
113
+ clCreateFromGLBuffer_t(
114
+ cl_context context,
115
+ cl_mem_flags flags,
116
+ cl_GLuint bufobj,
117
+ cl_int* errcode_ret);
118
+
119
+ typedef clCreateFromGLBuffer_t *
120
+ clCreateFromGLBuffer_fn CL_API_SUFFIX__VERSION_1_0;
121
+
122
+ #if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
123
+
124
+ extern CL_API_ENTRY cl_int CL_API_CALL
125
+ clGetGLContextInfoKHR(
126
+ const cl_context_properties* properties,
127
+ cl_gl_context_info param_name,
128
+ size_t param_value_size,
129
+ void* param_value,
130
+ size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
131
+
132
+ extern CL_API_ENTRY cl_mem CL_API_CALL
133
+ clCreateFromGLBuffer(
134
+ cl_context context,
135
+ cl_mem_flags flags,
136
+ cl_GLuint bufobj,
137
+ cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
138
+
139
+ #endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
140
+
141
+ #if defined(CL_VERSION_1_2)
142
+
143
+ typedef cl_mem CL_API_CALL
144
+ clCreateFromGLTexture_t(
145
+ cl_context context,
146
+ cl_mem_flags flags,
147
+ cl_GLenum target,
148
+ cl_GLint miplevel,
149
+ cl_GLuint texture,
150
+ cl_int* errcode_ret);
151
+
152
+ typedef clCreateFromGLTexture_t *
153
+ clCreateFromGLTexture_fn CL_API_SUFFIX__VERSION_1_2;
154
+
155
+ #if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
156
+
157
+ extern CL_API_ENTRY cl_mem CL_API_CALL
158
+ clCreateFromGLTexture(
159
+ cl_context context,
160
+ cl_mem_flags flags,
161
+ cl_GLenum target,
162
+ cl_GLint miplevel,
163
+ cl_GLuint texture,
164
+ cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2;
165
+
166
+ #endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
167
+
168
+ #endif /* defined(CL_VERSION_1_2) */
169
+
170
+
171
+ typedef cl_mem CL_API_CALL
172
+ clCreateFromGLRenderbuffer_t(
173
+ cl_context context,
174
+ cl_mem_flags flags,
175
+ cl_GLuint renderbuffer,
176
+ cl_int* errcode_ret);
177
+
178
+ typedef clCreateFromGLRenderbuffer_t *
179
+ clCreateFromGLRenderbuffer_fn CL_API_SUFFIX__VERSION_1_0;
180
+
181
+ typedef cl_int CL_API_CALL
182
+ clGetGLObjectInfo_t(
183
+ cl_mem memobj,
184
+ cl_gl_object_type* gl_object_type,
185
+ cl_GLuint* gl_object_name);
186
+
187
+ typedef clGetGLObjectInfo_t *
188
+ clGetGLObjectInfo_fn CL_API_SUFFIX__VERSION_1_0;
189
+
190
+ typedef cl_int CL_API_CALL
191
+ clGetGLTextureInfo_t(
192
+ cl_mem memobj,
193
+ cl_gl_texture_info param_name,
194
+ size_t param_value_size,
195
+ void* param_value,
196
+ size_t* param_value_size_ret);
197
+
198
+ typedef clGetGLTextureInfo_t *
199
+ clGetGLTextureInfo_fn CL_API_SUFFIX__VERSION_1_0;
200
+
201
+ typedef cl_int CL_API_CALL
202
+ clEnqueueAcquireGLObjects_t(
203
+ cl_command_queue command_queue,
204
+ cl_uint num_objects,
205
+ const cl_mem* mem_objects,
206
+ cl_uint num_events_in_wait_list,
207
+ const cl_event* event_wait_list,
208
+ cl_event* event);
209
+
210
+ typedef clEnqueueAcquireGLObjects_t *
211
+ clEnqueueAcquireGLObjects_fn CL_API_SUFFIX__VERSION_1_0;
212
+
213
+ typedef cl_int CL_API_CALL
214
+ clEnqueueReleaseGLObjects_t(
215
+ cl_command_queue command_queue,
216
+ cl_uint num_objects,
217
+ const cl_mem* mem_objects,
218
+ cl_uint num_events_in_wait_list,
219
+ const cl_event* event_wait_list,
220
+ cl_event* event);
221
+
222
+ typedef clEnqueueReleaseGLObjects_t *
223
+ clEnqueueReleaseGLObjects_fn CL_API_SUFFIX__VERSION_1_0;
224
+
225
+ #if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
226
+
227
+ extern CL_API_ENTRY cl_mem CL_API_CALL
228
+ clCreateFromGLRenderbuffer(
229
+ cl_context context,
230
+ cl_mem_flags flags,
231
+ cl_GLuint renderbuffer,
232
+ cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
233
+
234
+ extern CL_API_ENTRY cl_int CL_API_CALL
235
+ clGetGLObjectInfo(
236
+ cl_mem memobj,
237
+ cl_gl_object_type* gl_object_type,
238
+ cl_GLuint* gl_object_name) CL_API_SUFFIX__VERSION_1_0;
239
+
240
+ extern CL_API_ENTRY cl_int CL_API_CALL
241
+ clGetGLTextureInfo(
242
+ cl_mem memobj,
243
+ cl_gl_texture_info param_name,
244
+ size_t param_value_size,
245
+ void* param_value,
246
+ size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
247
+
248
+ extern CL_API_ENTRY cl_int CL_API_CALL
249
+ clEnqueueAcquireGLObjects(
250
+ cl_command_queue command_queue,
251
+ cl_uint num_objects,
252
+ const cl_mem* mem_objects,
253
+ cl_uint num_events_in_wait_list,
254
+ const cl_event* event_wait_list,
255
+ cl_event* event) CL_API_SUFFIX__VERSION_1_0;
256
+
257
+ extern CL_API_ENTRY cl_int CL_API_CALL
258
+ clEnqueueReleaseGLObjects(
259
+ cl_command_queue command_queue,
260
+ cl_uint num_objects,
261
+ const cl_mem* mem_objects,
262
+ cl_uint num_events_in_wait_list,
263
+ const cl_event* event_wait_list,
264
+ cl_event* event) CL_API_SUFFIX__VERSION_1_0;
265
+
266
+ #endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
267
+
268
+ /* OpenCL 1.0 APIs that were deprecated in OpenCL 1.2 */
269
+
270
+ typedef cl_mem CL_API_CALL
271
+ clCreateFromGLTexture2D_t(
272
+ cl_context context,
273
+ cl_mem_flags flags,
274
+ cl_GLenum target,
275
+ cl_GLint miplevel,
276
+ cl_GLuint texture,
277
+ cl_int* errcode_ret);
278
+
279
+ typedef clCreateFromGLTexture2D_t *
280
+ clCreateFromGLTexture2D_fn CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
281
+
282
+ typedef cl_mem CL_API_CALL
283
+ clCreateFromGLTexture3D_t(
284
+ cl_context context,
285
+ cl_mem_flags flags,
286
+ cl_GLenum target,
287
+ cl_GLint miplevel,
288
+ cl_GLuint texture,
289
+ cl_int* errcode_ret);
290
+
291
+ typedef clCreateFromGLTexture3D_t *
292
+ clCreateFromGLTexture3D_fn CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
293
+
294
+ #if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
295
+
296
+ extern CL_API_ENTRY cl_mem CL_API_CALL
297
+ clCreateFromGLTexture2D(
298
+ cl_context context,
299
+ cl_mem_flags flags,
300
+ cl_GLenum target,
301
+ cl_GLint miplevel,
302
+ cl_GLuint texture,
303
+ cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
304
+
305
+ extern CL_API_ENTRY cl_mem CL_API_CALL
306
+ clCreateFromGLTexture3D(
307
+ cl_context context,
308
+ cl_mem_flags flags,
309
+ cl_GLenum target,
310
+ cl_GLint miplevel,
311
+ cl_GLuint texture,
312
+ cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
313
+
314
+ #endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
315
+
316
+ /***************************************************************
317
+ * cl_khr_gl_event
318
+ ***************************************************************/
319
+ #define cl_khr_gl_event 1
320
+ #define CL_KHR_GL_EVENT_EXTENSION_NAME \
321
+ "cl_khr_gl_event"
322
+
323
+
324
+ #define CL_KHR_GL_EVENT_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
325
+
326
+ typedef struct __GLsync * cl_GLsync;
327
+
328
+ /* cl_command_type */
329
+ #define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR 0x200D
330
+
331
+
332
+ typedef cl_event CL_API_CALL
333
+ clCreateEventFromGLsyncKHR_t(
334
+ cl_context context,
335
+ cl_GLsync sync,
336
+ cl_int* errcode_ret);
337
+
338
+ typedef clCreateEventFromGLsyncKHR_t *
339
+ clCreateEventFromGLsyncKHR_fn CL_API_SUFFIX__VERSION_1_1;
340
+
341
+ #if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
342
+
343
+ extern CL_API_ENTRY cl_event CL_API_CALL
344
+ clCreateEventFromGLsyncKHR(
345
+ cl_context context,
346
+ cl_GLsync sync,
347
+ cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_1;
348
+
349
+ #endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
350
+
351
+ /***************************************************************
352
+ * cl_khr_gl_depth_images
353
+ ***************************************************************/
354
+ #define cl_khr_gl_depth_images 1
355
+ #define CL_KHR_GL_DEPTH_IMAGES_EXTENSION_NAME \
356
+ "cl_khr_gl_depth_images"
357
+
358
+
359
+ #define CL_KHR_GL_DEPTH_IMAGES_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
360
+
361
+ /* cl_channel_order */
362
+ #define CL_DEPTH_STENCIL 0x10BE
363
+
364
+ /* cl_channel_type */
365
+ #define CL_UNORM_INT24 0x10DF
366
+
367
+ /***************************************************************
368
+ * cl_khr_gl_msaa_sharing
369
+ ***************************************************************/
370
+ #define cl_khr_gl_msaa_sharing 1
371
+ #define CL_KHR_GL_MSAA_SHARING_EXTENSION_NAME \
372
+ "cl_khr_gl_msaa_sharing"
373
+
374
+
375
+ #define CL_KHR_GL_MSAA_SHARING_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
376
+
377
+ /* cl_gl_texture_info */
378
+ #define CL_GL_NUM_SAMPLES 0x2012
379
+
380
+ /***************************************************************
381
+ * cl_intel_sharing_format_query_gl
382
+ ***************************************************************/
383
+ #define cl_intel_sharing_format_query_gl 1
384
+ #define CL_INTEL_SHARING_FORMAT_QUERY_GL_EXTENSION_NAME \
385
+ "cl_intel_sharing_format_query_gl"
386
+
387
+
388
+ #define CL_INTEL_SHARING_FORMAT_QUERY_GL_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0)
389
+
390
+ /* when cl_khr_gl_sharing is supported */
391
+
392
+ typedef cl_int CL_API_CALL
393
+ clGetSupportedGLTextureFormatsINTEL_t(
394
+ cl_context context,
395
+ cl_mem_flags flags,
396
+ cl_mem_object_type image_type,
397
+ cl_uint num_entries,
398
+ cl_GLenum* gl_formats,
399
+ cl_uint* num_texture_formats);
400
+
401
+ typedef clGetSupportedGLTextureFormatsINTEL_t *
402
+ clGetSupportedGLTextureFormatsINTEL_fn ;
403
+
404
+ #if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
405
+
406
+ extern CL_API_ENTRY cl_int CL_API_CALL
407
+ clGetSupportedGLTextureFormatsINTEL(
408
+ cl_context context,
409
+ cl_mem_flags flags,
410
+ cl_mem_object_type image_type,
411
+ cl_uint num_entries,
412
+ cl_GLenum* gl_formats,
413
+ cl_uint* num_texture_formats) ;
414
+
415
+ #endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
416
+
417
+ #ifdef __cplusplus
418
+ }
419
+ #endif
420
+
421
+ #endif /* OPENCL_CL_GL_H_ */
package/CL/cl_gl_ext.h ADDED
@@ -0,0 +1,18 @@
1
+ /*******************************************************************************
2
+ * Copyright (c) 2008-2026 The Khronos Group Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ******************************************************************************/
16
+
17
+ #include <CL/cl_gl.h>
18
+ #pragma message("The extensions in cl_gl_ext.h have been moved into cl_gl.h. Please include cl_gl.h directly.")