Skip to content

Commit 586a2ab

Browse files
Use lru_cache, to support Python 3.8
1 parent 76637ae commit 586a2ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/_sycl_device.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ cdef void _init_helper(_SyclDevice device, DPCTLSyclDeviceRef DRef):
199199
device._max_work_item_sizes = DPCTLDevice_GetMaxWorkItemSizes3d(DRef)
200200

201201

202-
@functools.cache
202+
@functools.lru_cache(maxsize=None)
203203
def _cached_filter_string(d : SyclDevice):
204204
"""
205205
Internal utility to compute filter_string of input SyclDevice

0 commit comments

Comments
 (0)