#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>
#define __CL_ENABLE_EXCEPTIONS |
#define GL_SHARING_EXTENSION "cl_khr_gl_sharing" |
#define LOCAL_SIZE_X 16 |
#define LOCAL_SIZE_Y 16 |
typedef cl::Buffer oclBuffer |
typedef cl::BufferGL oclBufferGL |
typedef cl::CommandQueue oclCmdQ |
typedef cl::Context oclContext |
typedef cl::Device oclDevice |
typedef cl::Error oclError |
typedef cl::Kernel oclKernel |
typedef cl::Platform oclPlatform |
typedef cl::Program oclProgram |
cl_int bindOpenCL | ( | cl_uint | GLpbo, | |
cl_int | width, | |||
cl_int | height | |||
) |
cl_int displayCL | ( | ) |
cl_int initOpenCL | ( | host_info_id | host, | |
cl_device_type | devType, | |||
cl_bool | supportGL | |||
) |
cl_int loadDataCL | ( | ) |
size_t roundUp | ( | int | group_size, | |
int | global_size | |||
) |
cl_int runCL | ( | ) |
int cellcount |
cl_int error |
int gridcount |
size_t gwsize[2] |
int img_height |
int img_width |
const char* kernels[] |
{ "kernel_grid.cl" "kernel_zero.cl" "kernels.cl" }
size_t lwsize[2] = {16,16} |
cl_int pixcount |