Skip to content

Commit

Permalink
Simplify handling of Numba streams
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Dec 11, 2020
1 parent fadf308 commit 079d24d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/rmm/_cuda/stream.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ cdef class Stream:
return self.c_is_default()

def _init_from_numba_stream(self, obj):
if obj.handle.value is None:
self._cuda_stream = cuda_stream_default.value()
else:
self._cuda_stream = <cudaStream_t><uintptr_t>(obj.handle.value)
self._cuda_stream = <cudaStream_t><uintptr_t>(int(obj))
self._owner = obj

def _init_from_cupy_stream(self, obj):
Expand Down

0 comments on commit 079d24d

Please sign in to comment.