Skip to content

Commit ff9b8af

Browse files
committed
fix to avoid the circular initialization issue
Signed-off-by: Monishver Chandrasekaran <monishverchandrasekaran@gmail.com>
1 parent 98bf0d4 commit ff9b8af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cuda_core/cuda/core/_stream.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ cdef class Stream:
455455

456456

457457
# c-only python objects, not public
458-
cdef Stream C_LEGACY_DEFAULT_STREAM = Stream.legacy_default()
459-
cdef Stream C_PER_THREAD_DEFAULT_STREAM = Stream.per_thread_default()
458+
cdef Stream C_LEGACY_DEFAULT_STREAM = Stream._from_handle(Stream, get_legacy_stream())
459+
cdef Stream C_PER_THREAD_DEFAULT_STREAM = Stream._from_handle(Stream, get_per_thread_stream())
460460

461461
# standard python objects, public
462462
LEGACY_DEFAULT_STREAM = C_LEGACY_DEFAULT_STREAM

0 commit comments

Comments
 (0)