We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8655e98 + cbaef17 commit d3ce471Copy full SHA for d3ce471
1 file changed
libsyclinterface/include/dpctl_sycl_device_interface.h
@@ -250,9 +250,11 @@ DPCTLDevice_GetMaxWorkItemSizes3d(__dpctl_keep const DPCTLSyclDeviceRef DRef);
250
* @return Returns the valid result if device exists else returns NULL.
251
* @ingroup DeviceInterface
252
*/
253
-[[deprecated("Use DPCTLDevice_WorkItemSizes3d instead")]] DPCTL_API
254
- __dpctl_keep size_t *
255
- DPCTLDevice_GetMaxWorkItemSizes(__dpctl_keep const DPCTLSyclDeviceRef DRef);
+#if __cplusplus || (defined(__GNUC__) && __GNUC__ > 10)
+[[deprecated("Use DPCTLDevice_WorkItemSizes3d instead")]]
+#endif
256
+DPCTL_API __dpctl_keep size_t *
257
+DPCTLDevice_GetMaxWorkItemSizes(__dpctl_keep const DPCTLSyclDeviceRef DRef);
258
259
/*!
260
* @brief Wrapper for get_info<info::device::max_work_group_size>().
0 commit comments