Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ files:
includes:
- cuda_version
- depends_on_dask_cuda
- numpy_run
- test_python_common
- test_python_cudf_polars
- cudf_polars_trace
Expand Down
5 changes: 0 additions & 5 deletions python/cudf_polars/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ classifiers = [
[project.optional-dependencies]
test = [
"dask-cuda==26.6.*,>=0.0.0a0",
"numpy>=1.26,<3.0",
"pytest",
"pytest-cov",
"pytest-httpserver",
Expand All @@ -59,10 +58,6 @@ experimental = [
trace = [
"structlog",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
rapidsmpf = [
"pyarrow>=19.0.0,<24",
"rapidsmpf==26.6.*,>=0.0.0a0",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
ray = [
"ray>=2.55.1",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
Expand Down
11 changes: 9 additions & 2 deletions python/cudf_polars/tests/experimental/test_allgather.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@

import asyncio

import numpy as np
from rapidsmpf.streaming.cudf.table_chunk import TableChunk

import polars as pl

import pylibcudf as plc

from cudf_polars.experimental.rapidsmpf.collectives.allgather import AllGatherManager
Expand All @@ -24,7 +25,13 @@ async def _test_allgather(engine) -> None:

# Create simple test tables with different sizes
tables = [
plc.Table([plc.Column.from_array(np.full(num_elements, i).astype(np.int32))])
plc.Table(
[
plc.Column.from_arrow(
pl.Series([i] * num_elements, dtype=pl.Int32()), stream=stream
)
]
)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
for i, num_elements in enumerate([100, 200, 300])
]

Expand Down
9 changes: 6 additions & 3 deletions python/cudf_polars/tests/experimental/test_spilling.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@

from __future__ import annotations

import random
from typing import TYPE_CHECKING

import numpy as np
import pytest
from rapidsmpf.memory.buffer import MemoryType
from rapidsmpf.memory.pinned_memory_resource import is_pinned_memory_resources_supported
from rapidsmpf.streaming.core.message import Message
from rapidsmpf.streaming.core.spillable_messages import SpillableMessages
from rapidsmpf.streaming.cudf.table_chunk import TableChunk

import polars as pl

import pylibcudf as plc

from cudf_polars.experimental.rapidsmpf.frontend.options import StreamingOptions
Expand All @@ -31,8 +33,9 @@ def create_test_table(nbytes: int, stream: Stream) -> plc.Table:
assert nbytes % 4 == 0, "nbytes must be divisible by 4 for float32"
# Create a simple table with one column of random float32 data
num_elements = nbytes // 4
data = np.random.random(num_elements).astype(np.float32)
return plc.Table([plc.Column.from_array(data, stream=stream)])
rng = random.Random(42)
pl_data = pl.Series([rng.random() for _ in range(num_elements)], dtype=pl.Float32())
return plc.Table([plc.Column.from_arrow(pl_data, stream=stream)])
Comment thread
mroeschke marked this conversation as resolved.


@pytest.mark.parametrize(
Expand Down
Loading