Skip to content

Commit 402e257

Browse files
committed
Update Python to coll
1 parent 2c59ffd commit 402e257

File tree

8 files changed

+8
-9
lines changed

8 files changed

+8
-9
lines changed

python/rapidsmpf/rapidsmpf/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ rapids_cython_create_modules(
2121
)
2222

2323
add_subdirectory(_detail)
24-
add_subdirectory(allgather)
24+
add_subdirectory(coll)
2525
add_subdirectory(memory)
2626
add_subdirectory(communicator)
2727
add_subdirectory(integrations/cudf)

python/rapidsmpf/rapidsmpf/allgather/allgather.pxd renamed to python/rapidsmpf/rapidsmpf/coll/allgather.pxd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ from rapidsmpf.progress_thread cimport cpp_ProgressThread
1616
from rapidsmpf.statistics cimport cpp_Statistics
1717

1818

19-
cdef extern from "<rapidsmpf/allgather/allgather.hpp>" namespace \
20-
"rapidsmpf::allgather::AllGather" nogil:
19+
cdef extern from "<rapidsmpf/coll/allgather.hpp>" namespace \
20+
"rapidsmpf::coll::AllGather" nogil:
2121
cpdef enum class Ordered(bool):
2222
NO
2323
YES
2424

25-
cdef extern from "<rapidsmpf/allgather/allgather.hpp>" nogil:
25+
cdef extern from "<rapidsmpf/coll/allgather.hpp>" nogil:
2626
ctypedef int64_t milliseconds_t "std::chrono::milliseconds"
2727

28-
cdef cppclass cpp_AllGather "rapidsmpf::allgather::AllGather":
28+
cdef cppclass cpp_AllGather "rapidsmpf::coll::AllGather":
2929
cpp_AllGather(
3030
shared_ptr[cpp_Communicator] comm,
3131
shared_ptr[cpp_ProgressThread] progress_thread,

python/rapidsmpf/rapidsmpf/allgather/allgather.pyx renamed to python/rapidsmpf/rapidsmpf/coll/allgather.pyx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ from libcpp.memory cimport make_unique
88
from libcpp.utility cimport move
99
from libcpp.vector cimport vector
1010

11-
from rapidsmpf.allgather.allgather cimport (Ordered, cpp_AllGather,
12-
milliseconds_t)
11+
from rapidsmpf.coll.allgather cimport Ordered, cpp_AllGather, milliseconds_t
1312
from rapidsmpf.communicator.communicator cimport Communicator
1413
from rapidsmpf.memory.buffer_resource cimport (BufferResource,
1514
cpp_BufferResource)
@@ -23,7 +22,7 @@ cdef class AllGather:
2322
"""
2423
AllGather communication service for distributed operations.
2524
26-
The `rapidsmpf.allgather.AllGather` class provides a communication service
25+
The `rapidsmpf.coll.AllGather` class provides a communication service
2726
where each rank contributes data and all ranks receive all inputs from all ranks.
2827
2928
The implementation uses a ring broadcast algorithm where each rank receives a

python/rapidsmpf/rapidsmpf/tests/test_allgather.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import cudf
1313
from pylibcudf.contiguous_split import pack
1414

15-
from rapidsmpf.allgather import AllGather
15+
from rapidsmpf.coll import AllGather
1616
from rapidsmpf.integrations.cudf.partition import unpack_and_concat
1717
from rapidsmpf.memory.buffer_resource import BufferResource
1818
from rapidsmpf.memory.packed_data import PackedData

0 commit comments

Comments
 (0)