summaryrefslogtreecommitdiff
path: root/src/cl_khr_icd.c
AgeCommit message (Collapse)AuthorFilesLines
2017-02-06Make CL-GL sharing available via ICDRebecca N. Palmer1-12/+16
Signed-off-by: Rebecca N. Palmer <rebecca_palmer@zoho.com> Reviewed-by: Chuanbo Weng <chuanbo.weng@intel.com>
2016-11-08Runtime: Add pipe related APIsPan Xiuli1-2/+2
Add clCreatePipe and clGetPipeInfo Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2016-11-08Runtime: Add clCreateSamplerWithPropertiesPan Xiuli1-6/+6
Add api clCreateSamplerWithProperties Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2016-11-08OCL20: Implement clSetKernelExecInfo apiYang Rong1-1/+1
The extra exec info need reloc, otherwize gpu can't read/write. And it don't need set to curbe. So reloc it to unused binding table. Signed-off-by: Yang Rong <rong.r.yang at intel.com> Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
2016-11-08Runtime: Add API clCreateCommandQueueWithPropertiesLuo Xionghu1-1/+1
Contributor: Luo Xionghu <xionghu.luo at intel.com> Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2016-11-08OCL20: add svm enqueue apis and svm's sub buffer support.Yang Rong1-3/+3
Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
2016-11-08OCL20: Add OpenCL2.0 apis to icd.Yang Rong1-15/+15
Also set the LIBCL_C_VERSION to 2.0 Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
2016-10-20Add clGetKernelSubGroupInfoKHR to _cl_icd_dispatch tableRebecca N. Palmer1-2/+19
ocl-icd >= 2.2.8 has this function in its table; as the lookup process tries the dispatch table before the ICD's clGetExtensionFunctionAddress, requesting a function that is in the ICD loader's table but off the end of the ICD's table will return a garbage pointer. Signed-off-by: Rebecca N. Palmer <rebecca_palmer@zoho.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2014-11-11License: adjust all license version to LGPL v2.1+.Zhigang Gong1-1/+1
To make the license statement consistent to each other, adjust all license versions to v2.1+. Thus beignet should have a pure LGPL v2.1+ license. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
2014-09-10Runtime: Implement clGetExtensionFunctionAddressForPlatform.Zhigang Gong1-1/+1
It seems that this function is required by latest PyOpenCL. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
2014-06-24implement API clEnqueueFillImage.Luo1-1/+1
enqueues a command to fill an image object with a specified color. fix typo cl_context_get_static_kernel_from_bin. v2: fix image 1d array bug. Signed-off-by: Luo <xionghu.luo@intel.com> Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2014-06-13utests: use OpenCL 1.2 API for image related test cases.Zhigang Gong1-8/+0
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
2014-06-13add [opencl-1.2] clUnloadPlatformCompiler implementationLuo1-1/+1
just a empty hook. Signed-off-by: Luo <xionghu.luo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2014-06-13Implement the clEnqueueMigrateMemObjects APIJunyan He1-1/+1
So far, we just support 1 device and no subdevices. So all the command queues should belong to the small context. There is no need to migrate the mem objects from one subcontext to another by now. We just do the checks and fill the event. Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2014-06-13GBE: Enable some implemented Opencl 1.2 functions in icd table.Zhigang Gong1-11/+11
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com> Reviewed-by: He Junyan <junyan.he@inbox.com>
2014-01-16CL: back port ICD support to 1.1 branch.Zhigang Gong1-1/+8
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com> Tested-by: "Song, Ruiling" <ruiling.song@intel.com>
2014-01-14Revert faulty pushed patchsetZhigang Gong1-8/+1
This reverts: Revert "GBE: fixed a long related bug." Revert "Refine the method to find pch and pcm files." Revert "GBE: enable relocatable pch files." Revert "CL: prepare to support ICD if the system has ocl-icd.." Revert "CL: back port ICD support to 1.1 branch." The above patches are merged by accident without review comments and are broken. Now revert them.
2014-01-10CL: back port ICD support to 1.1 branch.Zhigang Gong1-1/+8
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
2013-06-06Refine error check in clGetPlatformIDs() and clGetPlatformInfo()Ruiling Song1-1/+1
Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2013-04-18Implement KHR ICD extensionSimon Richter1-0/+175
This adds a pointer to the dispatch table at the beginning of every object of type - cl_command_queue - cl_context - cl_device_id - cl_event - cl_kernel - cl_mem - cl_platform_id - cl_program - cl_sampler as required by the ICD specification. The layout of the dispatch table comes from the OpenCL ICD loader by Brice Videau <brice.videau@imag.fr> and Vincent Danjean <Vincent.Danjean@ens-lyon.org>. To avoid dispatch table entries being overwritten with the ICD loader's implementations of the CL functions (as would be the proper behaviour for the ELF loader), the -Bsymbolic option is given to the linker. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>