Skip to content

Commit

Permalink
Merge branch 'branch-24.02' into fix-explicit-pool-size
Browse files Browse the repository at this point in the history
  • Loading branch information
harrism authored Jan 15, 2024
2 parents 592975d + 9b2b723 commit 7ecdc4f
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repos:
args: ["--config pyproject.toml"]
additional_dependencies: ["tomli"]
- repo: https://github.com/rapidsai/dependency-file-generator
rev: v1.5.1
rev: v1.8.0
hooks:
- id: rapids-dependency-file-generator
args: ["--clean"]
Expand Down
6 changes: 5 additions & 1 deletion ci/build_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@

set -euo pipefail

source rapids-env-update
rapids-configure-conda-channels

source rapids-configure-sccache

source rapids-date-string

export CMAKE_GENERATOR=Ninja

Expand Down
6 changes: 5 additions & 1 deletion ci/build_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@

set -euo pipefail

source rapids-env-update
rapids-configure-conda-channels

source rapids-configure-sccache

source rapids-date-string

export CMAKE_GENERATOR=Ninja

Expand Down
50 changes: 28 additions & 22 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ files:
includes:
- build_cpp
- build_python
- cudatoolkit
- cuda
- cuda_version
- develop
- docs
- py_version
Expand All @@ -23,18 +24,18 @@ files:
test_cpp:
output: none
includes:
- cudatoolkit
- cuda_version
test_python:
output: none
includes:
- cudatoolkit
- cuda_version
- py_version
- test_python_cuspatial
- test_python_cuproj
test_notebooks:
output: none
includes:
- cudatoolkit
- cuda_version
- depends_on_cuml
- notebooks
- py_version
Expand All @@ -46,7 +47,7 @@ files:
docs:
output: none
includes:
- cudatoolkit
- cuda_version
- docs
- py_version
py_build_cuspatial:
Expand Down Expand Up @@ -155,7 +156,6 @@ dependencies:
- matrix:
cuda: "12.0"
packages:
- cuda-version=12.0
- cuda-nvcc
build_cpp_cuproj:
common:
Expand Down Expand Up @@ -200,7 +200,6 @@ dependencies:
- matrix:
cuda: "12.0"
packages:
- cuda-version=12.0
- cuda-nvcc
build_python:
common:
Expand Down Expand Up @@ -232,36 +231,43 @@ dependencies:
packages:
- wheel
- setuptools
cudatoolkit:
cuda_version:
specific:
- output_types: conda
matrices:
- matrix:
cuda: "12.0"
cuda: "11.2"
packages:
- cuda-version=12.0
- cuda-cudart-dev
- cuda-nvrtc-dev
- cuda-cupti-dev
- cuda-version=11.2
- matrix:
cuda: "11.8"
cuda: "11.4"
packages:
- cuda-version=11.8
- cudatoolkit
- cuda-version=11.4
- matrix:
cuda: "11.5"
packages:
- cuda-version=11.5
- cudatoolkit
- matrix:
cuda: "11.4"
cuda: "11.8"
packages:
- cuda-version=11.4
- cudatoolkit
- cuda-version=11.8
- matrix:
cuda: "11.2"
cuda: "12.0"
packages:
- cuda-version=12.0
cuda:
specific:
- output_types: conda
matrices:
- matrix:
cuda: "12.*"
packages:
- cuda-cudart-dev
- cuda-cupti-dev
- cuda-nvrtc-dev
- matrix:
cuda: "11.*"
packages:
- cuda-version=11.2
- cudatoolkit
develop:
common:
Expand Down
4 changes: 2 additions & 2 deletions python/cuspatial/cuspatial/core/_column/geocolumn.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import pyarrow as pa

import cudf
from cudf.core.column import ColumnBase, arange, as_column, build_list_column
from cudf.core.column import ColumnBase, as_column, build_list_column

from cuspatial.core._column.geometa import Feature_Enum, GeoMeta
from cuspatial.utils.column_utils import empty_geometry_column
Expand Down Expand Up @@ -364,5 +364,5 @@ def _xy_as_variable_sized_list(xy: ColumnBase):
raise ValueError("xy must have an even number of elements")

num_points = len(xy) // 2
indices = arange(0, num_points * 2 + 1, 2, dtype="int32")
indices = as_column(range(0, num_points * 2 + 1, 2), dtype="int32")
return build_list_column(indices=indices, elements=xy, size=num_points)
6 changes: 3 additions & 3 deletions python/cuspatial/cuspatial/core/binops/distance_dispatch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cudf
from cudf.core.column import arange, full
from cudf.core.column import as_column, full

from cuspatial._lib.distance import (
pairwise_linestring_distance,
Expand Down Expand Up @@ -190,8 +190,8 @@ def __call__(self):
float("nan"),
dtype="float64",
)
scatter_map = arange(
len(self._res_index), dtype="int32"
scatter_map = as_column(
range(len(self._res_index)), dtype="int32"
).apply_boolean_mask(self._non_null_mask)

result[scatter_map] = dist
Expand Down
4 changes: 2 additions & 2 deletions python/cuspatial/cuspatial/core/binops/intersection.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import TYPE_CHECKING

import cudf
from cudf.core.column import arange, build_list_column
from cudf.core.column import as_column, build_list_column

from cuspatial._lib.intersection import (
pairwise_linestring_intersection as c_pairwise_linestring_intersection,
Expand Down Expand Up @@ -93,7 +93,7 @@ def pairwise_linestring_intersection(
]

linestring_column = build_list_column(
indices=arange(0, len(segments) + 1, dtype="int32"),
indices=as_column(range(0, len(segments) + 1), dtype="int32"),
elements=segments,
size=len(segments),
)
Expand Down

0 comments on commit 7ecdc4f

Please sign in to comment.