@@ -124,6 +124,28 @@ bool DPCTLDevice_IsGPU(__dpctl_keep const DPCTLSyclDeviceRef DRef);
124
124
DPCTL_API
125
125
bool DPCTLDevice_IsHost (__dpctl_keep const DPCTLSyclDeviceRef DRef);
126
126
127
+ /* !
128
+ * @brief Returns the backend for the device.
129
+ *
130
+ * @param DRef Opaque pointer to a sycl::device
131
+ * @return A DPCTLSyclBackendType enum value representing the sycl::backend
132
+ * for the device.
133
+ */
134
+ DPCTL_API
135
+ DPCTLSyclBackendType
136
+ DPCTLDevice_GetBackend (__dpctl_keep const DPCTLSyclDeviceRef DRef);
137
+
138
+ /* !
139
+ * @brief Returns the DPCTLSyclDeviceType enum value for the DPCTLSyclDeviceRef
140
+ * argument.
141
+ *
142
+ * @param DRef Opaque pointer to a sycl::device
143
+ * @return The DPCTLSyclDeviceType value corresponding to the device.
144
+ */
145
+ DPCTL_API
146
+ DPCTLSyclDeviceType
147
+ DPCTLDevice_GetDeviceType (__dpctl_keep const DPCTLSyclDeviceRef DRef);
148
+
127
149
/* !
128
150
* @brief Returns the OpenCL software driver version as a C string.
129
151
*
@@ -185,6 +207,17 @@ DPCTL_API
185
207
uint32_t
186
208
DPCTLDevice_GetMaxNumSubGroups (__dpctl_keep const DPCTLSyclDeviceRef DRef);
187
209
210
+ /* !
211
+ * @brief Returns the sycl::platform for the device as DPCTLSyclPlatformRef
212
+ * opaque pointer.
213
+ *
214
+ * @param DRef Opaque pointer to a sycl::device
215
+ * @return An opaque pointer to the sycl::platform for the device.
216
+ */
217
+ DPCTL_API
218
+ __dpctl_give DPCTLSyclPlatformRef
219
+ DPCTLDevice_GetPlatform (__dpctl_keep const DPCTLSyclDeviceRef DRef);
220
+
188
221
/* !
189
222
* @brief Wrapper over
190
223
* device.get_info<info::device::aspect::int64_base_atomics>.
@@ -244,11 +277,12 @@ bool DPCTLDevice_IsHostUnifiedMemory(
244
277
* @brief Checks if two DPCTLSyclDeviceRef objects point to the same
245
278
* sycl::device.
246
279
*
247
- * @param DevRef1 First opaque pointer to the sycl device.
248
- * @param DevRef2 Second opaque pointer to the sycl device.
280
+ * @param DRef1 First opaque pointer to a sycl device.
281
+ * @param DRef2 Second opaque pointer to a sycl device.
249
282
* @return True if the underlying sycl::device are same, false otherwise.
250
283
*/
251
284
DPCTL_API
252
- bool DPCTLDevice_AreEq (__dpctl_keep const DPCTLSyclDeviceRef DevRef1,
253
- __dpctl_keep const DPCTLSyclDeviceRef DevRef2);
285
+ bool DPCTLDevice_AreEq (__dpctl_keep const DPCTLSyclDeviceRef DRef1,
286
+ __dpctl_keep const DPCTLSyclDeviceRef DRef2);
287
+
254
288
DPCTL_C_EXTERN_C_END
0 commit comments