summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Ashbaugh <ben.ashbaugh@intel.com>2021-04-26 07:01:46 -0700
committerGitHub <noreply@github.com>2021-04-26 07:01:46 -0700
commit1d3dc4e7562ac56ee8ab00607af7bd55fb091f22 (patch)
treeb7f89838d05ad6ce5b93a18058da05264ecdd33a
parent101bdd16ecd7842de21af5ffa7679550786081ba (diff)
downloadOpenCL-Headers-upstream/v2021.04.29.tar.gz
add cl_khr_pci_bus_info and cl_khr_suggested_local_work_size (#166)upstream/v2021.04.29
-rw-r--r--CL/cl_ext.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/CL/cl_ext.h b/CL/cl_ext.h
index 4692fa1..3015f46 100644
--- a/CL/cl_ext.h
+++ b/CL/cl_ext.h
@@ -694,6 +694,46 @@ typedef struct _cl_name_version_khr
#define CL_DEVICE_NODE_MASK_KHR 0x106E
+/***************************************************************
+* cl_khr_pci_bus_info
+***************************************************************/
+#define cl_khr_pci_bus_info 1
+
+typedef struct _cl_device_pci_bus_info_khr {
+ cl_uint pci_domain;
+ cl_uint pci_bus;
+ cl_uint pci_device;
+ cl_uint pci_function;
+} cl_device_pci_bus_info_khr;
+
+/* cl_device_info */
+#define CL_DEVICE_PCI_BUS_INFO_KHR 0x410F
+
+
+/***************************************************************
+* cl_khr_suggested_local_work_size
+***************************************************************/
+#define cl_khr_suggested_local_work_size 1
+
+extern CL_API_ENTRY cl_int CL_API_CALL
+clGetKernelSuggestedLocalWorkSizeKHR(
+ cl_command_queue command_queue,
+ cl_kernel kernel,
+ cl_uint work_dim,
+ const size_t* global_work_offset,
+ const size_t* global_work_size,
+ size_t* suggested_local_work_size) CL_API_SUFFIX__VERSION_3_0;
+
+typedef cl_int (CL_API_CALL *
+clGetKernelSuggestedLocalWorkSizeKHR_fn)(
+ cl_command_queue command_queue,
+ cl_kernel kernel,
+ cl_uint work_dim,
+ const size_t* global_work_offset,
+ const size_t* global_work_size,
+ size_t* suggested_local_work_size) CL_API_SUFFIX__VERSION_3_0;
+
+
/**********************************
* cl_arm_import_memory extension *
**********************************/