#include "CL/cl.h"
#include <chrono>
#include <cctype>
#include <vector>
◆ CL_USE_DEPRECATED_OPENCL_1_1_APIS
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS |
◆ MAX_SOURCE_SIZE
#define MAX_SOURCE_SIZE (0x100000) |
◆ CreateCommandQueue()
cl_command_queue CreateCommandQueue |
( |
cl_context |
context, |
|
|
cl_device_id * |
device |
|
) |
| |
◆ CreateContext()
cl_context CreateContext |
( |
| ) |
|
◆ CreateProgram()
cl_program CreateProgram |
( |
cl_context |
context, |
|
|
cl_device_id |
device, |
|
|
const char * |
fileName |
|
) |
| |
◆ ocl_init()
Declare for OpenCL code execution
◆ commandQueue
cl_command_queue commandQueue |
|
extern |
◆ context
◆ device
◆ errNum
◆ gComputeCost1
◆ gComputeVisualhull
cl_kernel gComputeVisualhull |
◆ gFilterCost1
◆ gRefineSurfels1
cl_kernel gRefineSurfels1 |
◆ gRefineSurfels2
cl_kernel gRefineSurfels2 |
◆ platformChooser
Choose Platform
0 for desktop or laptop with non-optimus
1 for laptop with optimus
2 for embedded board (e.g. Odroid-XU4)
◆ program