Skip to content

Commit fff600c

Browse files
committed
Merge branch 'rparolin/cuda.core.hashable' of github.com:rparolin/cuda-python into rparolin/cuda.core.hashable
2 parents 17ca70e + 714091c commit fff600c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda_core/cuda/core/experimental/_event.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ cdef class Event:
183183
results in undefined behavior. The event handle may be reused by
184184
the CUDA driver for new events.
185185
"""
186-
return hash(<uintptr_t>(self._handle))
186+
return hash(int(self._handle))
187187

188188
def __eq__(self, other) -> bool:
189189
"""Check equality based on the underlying CUevent handle address.

0 commit comments

Comments
 (0)