Compute Library
18.05
|
Class for loading OpenCL symbols. More...
#include <OpenCL.h>
Public Member Functions | |
bool | load (const std::string &library) |
Load symbols from the given OpenCL library path. More... | |
bool | load_default () |
Load symbols from any of the default OpenCL library names. More... | |
Static Public Member Functions | |
static CLSymbols & | get () |
Get the static instance of CLSymbols. More... | |
Data Fields | |
std::function< decltype(clCreateContextFromType)> | clCreateContextFromType_ptr = nullptr |
std::function< decltype(clCreateCommandQueue)> | clCreateCommandQueue_ptr = nullptr |
std::function< decltype(clGetContextInfo)> | clGetContextInfo_ptr = nullptr |
std::function< decltype(clBuildProgram)> | clBuildProgram_ptr = nullptr |
std::function< decltype(clEnqueueNDRangeKernel)> | clEnqueueNDRangeKernel_ptr = nullptr |
std::function< decltype(clSetKernelArg)> | clSetKernelArg_ptr = nullptr |
std::function< decltype(clReleaseKernel)> | clReleaseKernel_ptr = nullptr |
std::function< decltype(clCreateProgramWithSource)> | clCreateProgramWithSource_ptr = nullptr |
std::function< decltype(clCreateBuffer)> | clCreateBuffer_ptr = nullptr |
std::function< decltype(clRetainKernel)> | clRetainKernel_ptr = nullptr |
std::function< decltype(clCreateKernel)> | clCreateKernel_ptr = nullptr |
std::function< decltype(clGetProgramInfo)> | clGetProgramInfo_ptr = nullptr |
std::function< decltype(clFlush)> | clFlush_ptr = nullptr |
std::function< decltype(clFinish)> | clFinish_ptr = nullptr |
std::function< decltype(clReleaseProgram)> | clReleaseProgram_ptr = nullptr |
std::function< decltype(clRetainContext)> | clRetainContext_ptr = nullptr |
std::function< decltype(clCreateProgramWithBinary)> | clCreateProgramWithBinary_ptr = nullptr |
std::function< decltype(clReleaseCommandQueue)> | clReleaseCommandQueue_ptr = nullptr |
std::function< decltype(clEnqueueMapBuffer)> | clEnqueueMapBuffer_ptr = nullptr |
std::function< decltype(clRetainProgram)> | clRetainProgram_ptr = nullptr |
std::function< decltype(clGetProgramBuildInfo)> | clGetProgramBuildInfo_ptr = nullptr |
std::function< decltype(clEnqueueReadBuffer)> | clEnqueueReadBuffer_ptr = nullptr |
std::function< decltype(clEnqueueWriteBuffer)> | clEnqueueWriteBuffer_ptr = nullptr |
std::function< decltype(clReleaseEvent)> | clReleaseEvent_ptr = nullptr |
std::function< decltype(clReleaseContext)> | clReleaseContext_ptr = nullptr |
std::function< decltype(clRetainCommandQueue)> | clRetainCommandQueue_ptr = nullptr |
std::function< decltype(clEnqueueUnmapMemObject)> | clEnqueueUnmapMemObject_ptr = nullptr |
std::function< decltype(clRetainMemObject)> | clRetainMemObject_ptr = nullptr |
std::function< decltype(clReleaseMemObject)> | clReleaseMemObject_ptr = nullptr |
std::function< decltype(clGetDeviceInfo)> | clGetDeviceInfo_ptr = nullptr |
std::function< decltype(clGetDeviceIDs)> | clGetDeviceIDs_ptr = nullptr |
std::function< decltype(clRetainEvent)> | clRetainEvent_ptr = nullptr |
std::function< decltype(clGetPlatformIDs)> | clGetPlatformIDs_ptr = nullptr |
std::function< decltype(clGetKernelWorkGroupInfo)> | clGetKernelWorkGroupInfo_ptr = nullptr |
std::function< decltype(clGetCommandQueueInfo)> | clGetCommandQueueInfo_ptr = nullptr |
std::function< decltype(clGetKernelInfo)> | clGetKernelInfo_ptr = nullptr |
std::function< decltype(clGetEventProfilingInfo)> | clGetEventProfilingInfo_ptr = nullptr |
std::function< decltype(clSVMAlloc)> | clSVMAlloc_ptr = nullptr |
std::function< decltype(clSVMFree)> | clSVMFree_ptr = nullptr |
std::function< decltype(clEnqueueSVMMap)> | clEnqueueSVMMap_ptr = nullptr |
std::function< decltype(clEnqueueSVMUnmap)> | clEnqueueSVMUnmap_ptr = nullptr |
std::function< decltype(clEnqueueMarker)> | clEnqueueMarker_ptr = nullptr |
std::function< decltype(clWaitForEvents)> | clWaitForEvents_ptr = nullptr |
|
static |
Get the static instance of CLSymbols.
Referenced by OpenCLMemoryUsage::test_start(), OpenCLTimer::test_start(), OpenCLMemoryUsage::test_stop(), and OpenCLTimer::test_stop().
bool load | ( | const std::string & | library | ) |
Load symbols from the given OpenCL library path.
[in] | library | Path to the OpenCL library. |
bool load_default | ( | ) |
Load symbols from any of the default OpenCL library names.
std::function<decltype( clBuildProgram )> clBuildProgram_ptr = nullptr |
std::function<decltype( clCreateBuffer )> clCreateBuffer_ptr = nullptr |
Definition at line 89 of file OpenCL.h.
Referenced by OpenCLMemoryUsage::test_start(), and OpenCLMemoryUsage::test_stop().
std::function<decltype( clCreateCommandQueue )> clCreateCommandQueue_ptr = nullptr |
std::function<decltype( clCreateContextFromType )> clCreateContextFromType_ptr = nullptr |
std::function<decltype( clCreateKernel )> clCreateKernel_ptr = nullptr |
std::function<decltype( clCreateProgramWithBinary )> clCreateProgramWithBinary_ptr = nullptr |
std::function<decltype( clCreateProgramWithSource )> clCreateProgramWithSource_ptr = nullptr |
std::function<decltype( clEnqueueMapBuffer )> clEnqueueMapBuffer_ptr = nullptr |
std::function<decltype( clEnqueueMarker )> clEnqueueMarker_ptr = nullptr |
std::function<decltype( clEnqueueNDRangeKernel )> clEnqueueNDRangeKernel_ptr = nullptr |
Definition at line 85 of file OpenCL.h.
Referenced by OpenCLTimer::test_start(), and OpenCLTimer::test_stop().
std::function<decltype( clEnqueueReadBuffer )> clEnqueueReadBuffer_ptr = nullptr |
std::function<decltype( clEnqueueSVMMap )> clEnqueueSVMMap_ptr = nullptr |
std::function<decltype( clEnqueueSVMUnmap )> clEnqueueSVMUnmap_ptr = nullptr |
std::function<decltype( clEnqueueUnmapMemObject )> clEnqueueUnmapMemObject_ptr = nullptr |
std::function<decltype( clEnqueueWriteBuffer )> clEnqueueWriteBuffer_ptr = nullptr |
std::function<decltype( clGetCommandQueueInfo )> clGetCommandQueueInfo_ptr = nullptr |
std::function<decltype( clGetContextInfo )> clGetContextInfo_ptr = nullptr |
std::function<decltype( clGetDeviceIDs )> clGetDeviceIDs_ptr = nullptr |
std::function<decltype( clGetDeviceInfo )> clGetDeviceInfo_ptr = nullptr |
std::function<decltype( clGetEventProfilingInfo )> clGetEventProfilingInfo_ptr = nullptr |
std::function<decltype( clGetKernelInfo )> clGetKernelInfo_ptr = nullptr |
std::function<decltype( clGetKernelWorkGroupInfo )> clGetKernelWorkGroupInfo_ptr = nullptr |
std::function<decltype( clGetPlatformIDs )> clGetPlatformIDs_ptr = nullptr |
std::function<decltype( clGetProgramBuildInfo )> clGetProgramBuildInfo_ptr = nullptr |
std::function<decltype( clGetProgramInfo )> clGetProgramInfo_ptr = nullptr |
std::function<decltype( clReleaseCommandQueue )> clReleaseCommandQueue_ptr = nullptr |
std::function<decltype( clReleaseContext )> clReleaseContext_ptr = nullptr |
std::function<decltype( clReleaseEvent )> clReleaseEvent_ptr = nullptr |
std::function<decltype( clReleaseKernel )> clReleaseKernel_ptr = nullptr |
std::function<decltype( clReleaseMemObject )> clReleaseMemObject_ptr = nullptr |
Definition at line 109 of file OpenCL.h.
Referenced by OpenCLMemoryUsage::test_start(), and OpenCLMemoryUsage::test_stop().
std::function<decltype( clReleaseProgram )> clReleaseProgram_ptr = nullptr |
std::function<decltype( clRetainCommandQueue )> clRetainCommandQueue_ptr = nullptr |
std::function<decltype( clRetainContext )> clRetainContext_ptr = nullptr |
std::function<decltype( clRetainEvent )> clRetainEvent_ptr = nullptr |
std::function<decltype( clRetainKernel )> clRetainKernel_ptr = nullptr |
std::function<decltype( clRetainMemObject )> clRetainMemObject_ptr = nullptr |
Definition at line 108 of file OpenCL.h.
Referenced by OpenCLMemoryUsage::test_start(), and OpenCLMemoryUsage::test_stop().
std::function<decltype( clRetainProgram )> clRetainProgram_ptr = nullptr |
std::function<decltype( clSetKernelArg )> clSetKernelArg_ptr = nullptr |
std::function<decltype( clSVMAlloc )> clSVMAlloc_ptr = nullptr |
Definition at line 118 of file OpenCL.h.
Referenced by OpenCLMemoryUsage::test_start(), and OpenCLMemoryUsage::test_stop().
std::function<decltype( clSVMFree )> clSVMFree_ptr = nullptr |
Definition at line 119 of file OpenCL.h.
Referenced by OpenCLMemoryUsage::test_start(), and OpenCLMemoryUsage::test_stop().
std::function<decltype( clWaitForEvents )> clWaitForEvents_ptr = nullptr |