Skip to content

Commit 92b5b86

Browse files
Use [[deprecated]] attributed supported in both gcc/g++ and icx/icpx
This fixed build break of C extension in numba-dpex
1 parent 660ca1f commit 92b5b86

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

libsyclinterface/include/dpctl_sycl_device_interface.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,9 @@ DPCTLDevice_GetMaxWorkItemSizes3d(__dpctl_keep const DPCTLSyclDeviceRef DRef);
250250
* @return Returns the valid result if device exists else returns NULL.
251251
* @ingroup DeviceInterface
252252
*/
253-
DPCTL_API
254-
__dpctl_keep size_t *
255-
DPCTLDevice_GetMaxWorkItemSizes(__dpctl_keep const DPCTLSyclDeviceRef DRef)
256-
__attribute__((deprecated("DPCTLDevice_GetMaxWorkItemSizes is deprecated ",
257-
"Use DPCTLDevice_WorkItemSizes3d instead")));
253+
[[deprecated("Use DPCTLDevice_WorkItemSizes3d instead")]] DPCTL_API
254+
__dpctl_keep size_t *
255+
DPCTLDevice_GetMaxWorkItemSizes(__dpctl_keep const DPCTLSyclDeviceRef DRef);
258256

259257
/*!
260258
* @brief Wrapper for get_info<info::device::max_work_group_size>().

0 commit comments

Comments
 (0)