Free Electron
OpenCLContext.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __opencl_OpenCLContext_h__
8 #define __opencl_OpenCLContext_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief shared FE context for OpenCL usage
17 
18  @ingroup opencl
19 
20 *//***************************************************************************/
21 class FE_DL_EXPORT OpenCLContext
22 {
23  public:
24 
25 static void confirm(sp<Master> a_spMaster,BWORD a_allowGLX);
26 
27  private:
28 
29 static RecursiveMutex ms_mutex;
30 static BWORD ms_usingGLX;
31 static cl_device_id ms_clDeviceId;
32 static cl_context ms_clContext;
33 static cl_command_queue ms_clCommandQueue;
34 static cl_command_queue ms_clCommandQueue2;
35 };
36 
37 } /* namespace ext */
38 } /* namespace fe */
39 
40 #endif /* __opencl_OpenCLContext_h__ */
kernel
Definition: namespace.dox:3
shared FE context for OpenCL usage
Definition: OpenCLContext.h:21
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53