Skip to content

Commit

Permalink
Merge branch 'branch-24.08' into verify-alpha-spec
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA committed Jul 17, 2024
2 parents ed51811 + c8616c1 commit a2d8ce1
Show file tree
Hide file tree
Showing 16 changed files with 274 additions and 409 deletions.
2 changes: 1 addition & 1 deletion conda/environments/all_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ channels:
dependencies:
- c-compiler
- clang-tools=16.0.6
- cmake>=3.26.4
- cmake>=3.26.4,!=3.30.0
- cuda-version=11.8
- cudatoolkit
- cudf==24.8.*,>=0.0.0a0
Expand Down
2 changes: 1 addition & 1 deletion conda/environments/all_cuda-122_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ channels:
dependencies:
- c-compiler
- clang-tools=16.0.6
- cmake>=3.26.4
- cmake>=3.26.4,!=3.30.0
- cuda-cudart-dev
- cuda-cupti-dev
- cuda-nvcc
Expand Down
2 changes: 1 addition & 1 deletion conda/recipes/cuproj/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ c_stdlib_version:
- "2.17"

cmake_version:
- ">=3.26.4"
- ">=3.26.4,!=3.30.0"

# Workaround until proj 9.3.1 migration completes
proj:
Expand Down
2 changes: 1 addition & 1 deletion conda/recipes/cuspatial/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ c_stdlib_version:
- "2.17"

cmake_version:
- ">=3.26.4"
- ">=3.26.4,!=3.30.0"
2 changes: 1 addition & 1 deletion conda/recipes/libcuspatial/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cuda11_compiler:
- nvcc

cmake_version:
- ">=3.26.4"
- ">=3.26.4,!=3.30.0"

gtest_version:
- ">=1.13.0"
Expand Down
6 changes: 3 additions & 3 deletions cpp/include/cuspatial/range/multipolygon_range.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, NVIDIA CORPORATION.
* Copyright (c) 2023-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -115,10 +115,10 @@ class multipolygon_range {
CUSPATIAL_HOST_DEVICE auto point_end();

/// Return the iterator to the first geometry offset in the range.
CUSPATIAL_HOST_DEVICE auto geometry_offset_begin() { return _part_begin; }
CUSPATIAL_HOST_DEVICE auto geometry_offset_begin() { return _geometry_begin; }

/// Return the iterator to the one past the last geometry offset in the range.
CUSPATIAL_HOST_DEVICE auto geometry_offset_end() { return _part_end; }
CUSPATIAL_HOST_DEVICE auto geometry_offset_end() { return _geometry_end; }

/// Return the iterator to the first part offset in the range.
CUSPATIAL_HOST_DEVICE auto part_offset_begin() { return _part_begin; }
Expand Down
24 changes: 20 additions & 4 deletions cpp/include/cuspatial_test/vector_factories.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,26 @@ class multipolygon_array {
{
auto [geometry_offsets, part_offsets, ring_offsets, coordinates] = arr.to_host();

return os << "Geometry Offsets:\n\t{" << geometry_offsets << "}\n"
<< "Part Offsets:\n\t{" << part_offsets << "}\n"
<< "Ring Offsets: \n\t{" << ring_offsets << "}\n"
<< "Coordinates: \n\t{" << coordinates << "}\n";
auto print_vector = [&](auto const& vec) {
for (auto it = vec.begin(); it != vec.end(); it++) {
os << *it;
if (std::next(it) != vec.end()) { os << ", "; }
}
};

os << "Geometry Offsets:\n\t{";
print_vector(geometry_offsets);
os << "}\n";
os << "Part Offsets:\n\t{";
print_vector(part_offsets);
os << "}\n";
os << "Ring Offsets: \n\t{";
print_vector(ring_offsets);
os << "}\n";
os << "Coordinates: \n\t{";
print_vector(coordinates);
os << "}\n";
return os;
}

protected:
Expand Down
4 changes: 2 additions & 2 deletions cpp/tests/range/multipolygon_range_test.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, NVIDIA CORPORATION.
* Copyright (c) 2023-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1069,7 +1069,7 @@ class MultipolygonRangeOneTest : public MultipolygonRangeTestBase<T> {
void test_geometry_offsets_it()
{
rmm::device_uvector<std::size_t> d_offsets = this->copy_geometry_offsets();
auto expected = make_device_vector<std::size_t>({0, 1});
auto expected = make_device_vector<std::size_t>({0, 2});

CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(d_offsets, expected);
}
Expand Down
11 changes: 9 additions & 2 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ files:
includes:
- cuda_version
- depends_on_cuml
- test_notebooks
- notebooks
- py_version
- test_cuspatial
Expand Down Expand Up @@ -140,7 +141,7 @@ dependencies:
- output_types: [conda, requirements, pyproject]
packages:
- ninja
- cmake>=3.26.4
- cmake>=3.26.4,!=3.30.0
- output_types: conda
packages:
- c-compiler
Expand Down Expand Up @@ -183,7 +184,7 @@ dependencies:
- output_types: [conda, requirements, pyproject]
packages:
- ninja
- cmake>=3.26.4
- cmake>=3.26.4,!=3.30.0
- output_types: conda
packages:
- c-compiler
Expand Down Expand Up @@ -334,6 +335,12 @@ dependencies:
- output_types: [conda]
packages:
- curl
# TODO: Remove geopandas.dataset usage in cuspatial_api_examples.ipynb
test_notebooks:
common:
- output_types: [conda, requirements, pyproject]
packages:
- geopandas<1
py_version:
specific:
- output_types: conda
Expand Down
Loading

0 comments on commit a2d8ce1

Please sign in to comment.