Equalizer  1.6.1
cudaContext.h
1 
2 /* Copyright (c) 2009, Philippe Robert <philippe.robert@gmail.com>
3  * 2010-2011, Stefan Eilemann <eile@eyescale.ch>
4  *
5  * This library is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License version 2.1 as published
7  * by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef EQ_CUDACONTEXT_H
20 #define EQ_CUDACONTEXT_H
21 
22 #include <eq/client/computeContext.h> // base class
23 
24 namespace eq
25 {
30  class CUDAContext : public ComputeContext
31  {
32  public:
34  EQ_API CUDAContext( Pipe* parent );
35 
37  EQ_API virtual ~CUDAContext( );
38 
42  EQ_API virtual bool configInit();
43 
45  EQ_API virtual void configExit();
47 
48 #ifdef WIN32_API
49 
50  WGLEWContext* wglewGetContext();
51 #endif
52  private:
53  int _getFastestDeviceID();
54  struct Private;
55  Private* _private; // placeholder for binary-compatible changes
56  };
57 }
58 
59 #endif // EQ_CUDA_COMPUTE_CONTEXT_H
CUDAContext(Pipe *parent)
Create a new CUDA compute context.
A Pipe represents a graphics card (GPU) on a Node.
virtual void configExit()
De-initialize the ComputeCtx.
virtual ~CUDAContext()
Destroy the context.
CUDA implementation of a ComputeContext.
Definition: cudaContext.h:30
The interface definition for API-specific GPGPU handling.
virtual bool configInit()
Initialize the ComputeCtx.