mod_fem_viewer/FemViewer/ocl/ocl.cpp File Reference

#include "Log.h"
#include "types.h"
#include "fv_threads.h"
#include "fv_helper_routines.h"
#include "fv_dictstr.h"
#include "fv_config.h"
#include "ocl.h"
#include "Mesh.h"
#include "VtxAccumulator.h"
#include "Field.h"
#include "ModelControler.h"
#include "ViewManager.h"
#include <memory>
#include <vector>
#include <limits>
#include <string>
#include <fstream>
#include <iostream>
#include "cl.hpp"
#include <CL/cl_gl.h>
#include <GL/glx.h>
Include dependency graph for ocl.cpp:

Classes

class  ocl

Defines

#define __CL_ENABLE_EXCEPTIONS
#define LOCAL_SIZE_X   16
#define LOCAL_SIZE_Y   16
#define GL_SHARING_EXTENSION   "cl_khr_gl_sharing"

Typedefs

typedef cl::Platform oclPlatform
typedef cl::Device oclDevice
typedef cl::Context oclContext
typedef cl::CommandQueue oclCmdQ
typedef cl::Program oclProgram
typedef cl::Kernel oclKernel
typedef cl::Event oclEvent
typedef cl::Error oclError
typedef cl::BufferGL oclBufferGL
typedef cl::Buffer oclBuffer

Functions

size_t roundUp (int group_size, int global_size)
cl_int initOpenCL (host_info_id host, cl_device_type devType, cl_bool supportGL)
cl_int loadDataCL ()
cl_int displayCL ()
cl_int runCL ()
cl_int bindOpenCL (cl_uint GLpbo, cl_int width, cl_int height)
void shutdownOpenCL (void)

Variables

cl_int error
cl_int pixcount
size_t gwsize [2]
size_t lwsize [2] = {16,16}
pixel_simage = NULL
int gridcount
int cellcount
int img_width
int img_height
const char * kernels []
oclBuffer outBuffers [2]
oclBuffer elDataBuffer
oclBuffer coeffBuffer
oclBuffer gridInfoBuffer
oclBuffer gridBuffer
oclBuffer cellsBuffer
oclEvent mapEvt
oclEvent unmapEvt
oclEvent evt
std::vector< oclEventevents
oclKernel kern_priray

Define Documentation

#define __CL_ENABLE_EXCEPTIONS
#define GL_SHARING_EXTENSION   "cl_khr_gl_sharing"
#define LOCAL_SIZE_X   16
#define LOCAL_SIZE_Y   16

Typedef Documentation

typedef cl::Error oclError

Function Documentation

cl_int bindOpenCL ( cl_uint  GLpbo,
cl_int  width,
cl_int  height 
)

Here is the call graph for this function:

Here is the caller graph for this function:

cl_int displayCL (  ) 
cl_int initOpenCL ( host_info_id  host,
cl_device_type  devType,
cl_bool  supportGL 
)

Here is the call graph for this function:

Here is the caller graph for this function:

cl_int loadDataCL (  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

size_t roundUp ( int  group_size,
int  global_size 
)

Here is the caller graph for this function:

cl_int runCL (  ) 

Here is the call graph for this function:

void shutdownOpenCL ( void   ) 

Here is the caller graph for this function:


Variable Documentation

int cellcount
cl_int error
std::vector<oclEvent> events
int gridcount
size_t gwsize[2]
int img_width
const char* kernels[]
Initial value:
 {
        "kernel_grid.cl"
        "kernel_zero.cl"
        "kernels.cl"

}
size_t lwsize[2] = {16,16}
cl_int pixcount
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1