3737
3838DPCTL_C_EXTERN_C_BEGIN
3939
40+ /* *
41+ * @defgroup ContextInterface Context class C wrapper
42+ */
43+
4044/* !
4145 * @brief Constructs a new SYCL context for the given SYCL device using the
4246 * optional async error handler and properties bit flags.
@@ -49,6 +53,7 @@ DPCTL_C_EXTERN_C_BEGIN
4953 * context properties. Currently, dpctl does not use
5054 * this argument.
5155 * @return A new opaque pointer wrapping a SYCL context.
56+ * @ingroup ContextInterface
5257 */
5358DPCTL_API
5459__dpctl_give DPCTLSyclContextRef
@@ -69,6 +74,7 @@ DPCTLContext_Create(__dpctl_keep const DPCTLSyclDeviceRef DRef,
6974 * context properties. Currently, dpctl does not use
7075 * this argument.
7176 * @return A new opaque pointer wrapping a SYCL context.
77+ * @ingroup ContextInterface
7278 */
7379DPCTL_API
7480__dpctl_give DPCTLSyclContextRef
@@ -83,6 +89,7 @@ DPCTLContext_CreateFromDevices(__dpctl_keep const DPCTLDeviceVectorRef DVRef,
8389 * @param CtxRef1 First opaque pointer to the sycl context.
8490 * @param CtxRef2 Second opaque pointer to the sycl context.
8591 * @return True if the underlying sycl::context are same, false otherwise.
92+ * @ingroup ContextInterface
8693 */
8794DPCTL_API
8895bool DPCTLContext_AreEq (__dpctl_keep const DPCTLSyclContextRef CtxRef1,
@@ -94,6 +101,7 @@ bool DPCTLContext_AreEq(__dpctl_keep const DPCTLSyclContextRef CtxRef1,
94101 * @param CRef DPCTLSyclContextRef object to be copied.
95102 * @return A new DPCTLSyclContextRef created by copying the passed in
96103 * DPCTLSyclContextRef object.
104+ * @ingroup ContextInterface
97105 */
98106DPCTL_API
99107__dpctl_give DPCTLSyclContextRef
@@ -105,6 +113,7 @@ DPCTLContext_Copy(__dpctl_keep const DPCTLSyclContextRef CRef);
105113 *
106114 * @param CRef DPCTLSyclContexRef object to query.
107115 * @return A positive count on success or zero on error.
116+ * @ingroup ContextInterface
108117 */
109118DPCTL_API
110119size_t DPCTLContext_DeviceCount (__dpctl_keep const DPCTLSyclContextRef CRef);
@@ -115,6 +124,7 @@ size_t DPCTLContext_DeviceCount(__dpctl_keep const DPCTLSyclContextRef CRef);
115124 *
116125 * @param CRef DPCTLSyclContexRef object to query.
117126 * @return A DPCTLDeviceVectorRef with devices associated with given CRef.
127+ * @ingroup ContextInterface
118128 */
119129DPCTL_API
120130__dpctl_give DPCTLDeviceVectorRef
@@ -125,6 +135,7 @@ DPCTLContext_GetDevices(__dpctl_keep const DPCTLSyclContextRef CRef);
125135 *
126136 * @param CtxRef An opaque pointer to a sycl::context.
127137 * @return True if the SYCL context is a host context, else False.
138+ * @ingroup ContextInterface
128139 */
129140DPCTL_API
130141bool DPCTLContext_IsHost (__dpctl_keep const DPCTLSyclContextRef CtxRef);
@@ -135,6 +146,7 @@ bool DPCTLContext_IsHost(__dpctl_keep const DPCTLSyclContextRef CtxRef);
135146 * @param CtxRef An opaque pointer to a sycl::context.
136147 * @return The sycl backend for the DPCTLSyclContextRef returned as
137148 * a DPCTLSyclBackendType enum type.
149+ * @ingroup ContextInterface
138150 */
139151DPCTL_API
140152DPCTLSyclBackendType
@@ -144,6 +156,7 @@ DPCTLContext_GetBackend(__dpctl_keep const DPCTLSyclContextRef CtxRef);
144156 * @brief Delete the pointer after casting it to sycl::context
145157 *
146158 * @param CtxRef The DPCTLSyclContextRef pointer to be deleted.
159+ * @ingroup ContextInterface
147160 */
148161DPCTL_API
149162void DPCTLContext_Delete (__dpctl_take DPCTLSyclContextRef CtxRef);
0 commit comments