Skip to content

Commit

Permalink
Upgrade to libcu++ on GitHub(#297)
Browse files Browse the repository at this point in the history
Update to libcu++ on Github.

Authors:
  - ptaylor <paul.e.taylor@me.com>
  - Paul Taylor <paul.e.taylor@me.com>

Approvers:
  - Mark Harris
  - Christopher Harris

URL: #297
  • Loading branch information
trxcllnt authored Dec 9, 2020
1 parent 1f49960 commit fa778a4
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 29 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## New Features

## Improvements
- PR #297 Upgrade to libcu++ on GitHub.

## Bug Fixes

Expand Down
4 changes: 2 additions & 2 deletions cpp/cmake/thirdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ message("Fetching libcudacxx")

FetchContent_Declare(
libcudacxx
GIT_REPOSITORY https://github.com/rapidsai/thirdparty-freestanding.git
GIT_TAG cudf
GIT_REPOSITORY https://github.com/NVIDIA/libcudacxx.git
GIT_TAG 1.4.0
GIT_SHALLOW true
)

Expand Down
3 changes: 2 additions & 1 deletion cpp/include/cuspatial/point_in_polygon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@

#include <cudf/column/column.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/types.hpp>

#include <memory>
#include "cudf/types.hpp"

namespace cuspatial {

Expand Down
5 changes: 3 additions & 2 deletions cpp/src/indexing/construction/detail/phase_1.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@

#pragma once

#include "indexing/construction/detail/utilities.cuh"
#include "utility/z_order.cuh"
#include "utilities.cuh"

#include <utility/z_order.cuh>

#include <cudf/column/column_factories.hpp>
#include <cudf/types.hpp>
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/indexing/construction/detail/phase_2.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include "indexing/construction/detail/utilities.cuh"
#include "utilities.cuh"

#include <cudf/column/column_factories.hpp>
#include <cudf/types.hpp>
Expand Down
6 changes: 3 additions & 3 deletions cpp/src/indexing/construction/point_quadtree.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

#include "indexing/construction/detail/phase_1.cuh"
#include "indexing/construction/detail/phase_2.cuh"
#include "indexing/construction/detail/utilities.cuh"
#include "detail/phase_1.cuh"
#include "detail/phase_2.cuh"
#include "detail/utilities.cuh"

#include <cuspatial/error.hpp>
#include <cuspatial/point_quadtree.hpp>
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/join/detail/intersection.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#pragma once

#include "indexing/construction/detail/utilities.cuh"
#include "utility/z_order.cuh"
#include <indexing/construction/detail/utilities.cuh>
#include <utility/z_order.cuh>

#include <cudf/column/column_device_view.cuh>
#include <cudf/table/table_view.hpp>
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/join/detail/traversal.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#pragma once

#include "indexing/construction/detail/utilities.cuh"
#include "utility/z_order.cuh"
#include <indexing/construction/detail/utilities.cuh>
#include <utility/z_order.cuh>

#include <rmm/thrust_rmm_allocator.h>
#include <rmm/cuda_stream_view.hpp>
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/join/quadtree_point_in_polygon.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

#include "indexing/construction/detail/utilities.cuh"
#include "utility/point_in_polygon.cuh"
#include <indexing/construction/detail/utilities.cuh>
#include <utility/point_in_polygon.cuh>

#include <cuspatial/error.hpp>
#include <cuspatial/spatial_join.hpp>
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/join/quadtree_point_to_nearest_polyline.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#include "indexing/construction/detail/utilities.cuh"
#include <indexing/construction/detail/utilities.cuh>

#include <cuspatial/error.hpp>
#include <cuspatial/spatial_join.hpp>
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/join/quadtree_poly_filtering.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

#include "join/detail/intersection.cuh"
#include "join/detail/traversal.cuh"
#include "detail/intersection.cuh"
#include "detail/traversal.cuh"

#include <cuspatial/error.hpp>
#include <cuspatial/spatial_join.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

#pragma once

#include <utility/size_from_offsets.cuh>

#include <thrust/binary_search.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/pair.h>
#include <utility>
#include "utility/size_from_offsets.cuh"

namespace cuspatial {
namespace detail {
Expand Down
File renamed without changes.
9 changes: 5 additions & 4 deletions cpp/src/spatial/hausdorff.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
* limitations under the License.
*/

#include "utility/scatter_output_iterator.cuh"
#include "utility/size_from_offsets.cuh"
#include "detail/cartesian_product_group_index_iterator.cuh"
#include "detail/hausdorff.cuh"

#include <utility/scatter_output_iterator.cuh>
#include <utility/size_from_offsets.cuh>

#include <cuspatial/detail/cartesian_product_group_index_iterator.cuh>
#include <cuspatial/detail/hausdorff.cuh>
#include <cuspatial/error.hpp>

#include <cudf/column/column_device_view.cuh>
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/trajectory/trajectory_distances_and_speeds.cu
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct dispatch_timestamp {

using Rep = typename Timestamp::rep;
using Dur = typename Timestamp::duration;
using Seconds = typename simt::std::chrono::seconds;
using Seconds = typename cuda::std::chrono::seconds;

rmm::device_vector<Rep> durations(x.size() + 1);
rmm::device_vector<double> distances(x.size() + 1);
Expand Down Expand Up @@ -144,7 +144,7 @@ struct dispatch_timestamp {
);

using Period =
typename simt::std::ratio_divide<typename Timestamp::period, typename Seconds::period>::type;
typename cuda::std::ratio_divide<typename Timestamp::period, typename Seconds::period>::type;

// Reduce the intermediate durations and kilometer distances into meter
// distances and speeds in meters/second
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

#include <vector>

#include <cuspatial/detail/cartesian_product_group_index_iterator.cuh>
#include <cuspatial/error.hpp>

#include <spatial/detail/cartesian_product_group_index_iterator.cuh>

#include <thrust/binary_search.h>
#include <thrust/iterator/constant_iterator.h>
#include <thrust/iterator/counting_iterator.h>
Expand Down
2 changes: 1 addition & 1 deletion cpp/tests/trajectory/test_derive_trajectories.cu
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <cudf_test/column_utilities.hpp>
#include <cudf_test/table_utilities.hpp>

#include "tests/trajectory/trajectory_utilities.cuh"
#include "trajectory_utilities.cuh"

struct DeriveTrajectoriesTest : public cudf::test::BaseFixture {
};
Expand Down
2 changes: 1 addition & 1 deletion cpp/tests/trajectory/test_trajectory_bounding_boxes.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#include "tests/trajectory/trajectory_utilities.cuh"
#include "trajectory_utilities.cuh"

#include <cudf/utilities/traits.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#include "tests/trajectory/trajectory_utilities.cuh"
#include "trajectory_utilities.cuh"

#include <cudf_test/column_utilities.hpp>
#include <cudf_test/type_lists.hpp>
Expand Down

0 comments on commit fa778a4

Please sign in to comment.