From ff9b8867dfdb13a24699853497c63296d7af20f5 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Wed, 25 May 2022 00:00:02 -0500 Subject: [PATCH] Add missing thrust includes. --- cpp/include/raft/cluster/detail/kmeans.cuh | 7 +++++++ cpp/include/raft/core/span.hpp | 1 + cpp/include/raft/lap/detail/lap_functions.cuh | 2 ++ cpp/include/raft/lap/detail/lap_kernels.cuh | 1 + cpp/include/raft/lap/lap.cuh | 3 +++ cpp/include/raft/lap/lap.hpp | 3 +++ cpp/include/raft/linalg/detail/add.cuh | 2 ++ cpp/include/raft/linalg/detail/eltwise.cuh | 2 ++ cpp/include/raft/matrix/detail/matrix.cuh | 1 + .../detail/coo_spmv_strategies/coo_mask_row_iterators.cuh | 3 +++ .../distance/detail/coo_spmv_strategies/hash_strategy.cuh | 3 +++ cpp/include/raft/sparse/distance/detail/l2_distance.cuh | 3 +++ .../raft/sparse/hierarchy/detail/agglomerative.cuh | 7 +++++++ .../raft/sparse/hierarchy/detail/connectivities.cuh | 4 ++++ cpp/include/raft/sparse/mst/detail/mst_solver_inl.cuh | 8 ++++++++ cpp/include/raft/sparse/op/detail/filter.cuh | 1 + cpp/include/raft/sparse/op/detail/sort.h | 3 +++ .../raft/sparse/selection/detail/connect_components.cuh | 6 ++++++ cpp/include/raft/spatial/knn/detail/ball_cover.cuh | 5 +++++ cpp/include/raft/spatial/knn/detail/ball_cover/common.cuh | 1 + .../raft/spatial/knn/detail/ball_cover/registers.cuh | 2 ++ cpp/include/raft/spectral/detail/matrix_wrappers.hpp | 2 ++ cpp/include/raft/spectral/detail/spectral_util.cuh | 6 ++++++ cpp/include/raft/stats/detail/adjusted_rand_index.cuh | 4 ++++ .../raft/stats/detail/batched/silhouette_score.cuh | 2 ++ cpp/include/raft/stats/detail/contingencyMatrix.cuh | 2 ++ cpp/include/raft/stats/detail/scores.cuh | 2 ++ cpp/test/linalg/reduce.cuh | 1 + cpp/test/matrix/matrix.cu | 4 ++++ cpp/test/mdarray.cu | 2 ++ cpp/test/mst.cu | 4 ++++ cpp/test/random/make_regression.cu | 1 + cpp/test/span.cu | 5 +++++ cpp/test/spatial/ball_cover.cu | 2 ++ 34 files changed, 105 insertions(+) diff --git a/cpp/include/raft/cluster/detail/kmeans.cuh b/cpp/include/raft/cluster/detail/kmeans.cuh index f3777405c0..c992ef016e 100644 --- a/cpp/include/raft/cluster/detail/kmeans.cuh +++ b/cpp/include/raft/cluster/detail/kmeans.cuh @@ -22,12 +22,19 @@ #include #include +#include +#include +#include +#include #include #include +#include #include #include +#include #include #include +#include #include #include diff --git a/cpp/include/raft/core/span.hpp b/cpp/include/raft/core/span.hpp index b4fbf5b63a..96950e979e 100644 --- a/cpp/include/raft/core/span.hpp +++ b/cpp/include/raft/core/span.hpp @@ -19,6 +19,7 @@ #include // size_t #include // std::byte #include +#include #include #include // __host__ __device__ #include diff --git a/cpp/include/raft/lap/detail/lap_functions.cuh b/cpp/include/raft/lap/detail/lap_functions.cuh index e03185f508..1c97392a87 100644 --- a/cpp/include/raft/lap/detail/lap_functions.cuh +++ b/cpp/include/raft/lap/detail/lap_functions.cuh @@ -32,6 +32,8 @@ #include #include +#include +#include #include #include diff --git a/cpp/include/raft/lap/detail/lap_kernels.cuh b/cpp/include/raft/lap/detail/lap_kernels.cuh index e98b246733..728acdf7df 100644 --- a/cpp/include/raft/lap/detail/lap_kernels.cuh +++ b/cpp/include/raft/lap/detail/lap_kernels.cuh @@ -29,6 +29,7 @@ #include #include +#include #include #include diff --git a/cpp/include/raft/lap/lap.cuh b/cpp/include/raft/lap/lap.cuh index f040e27dad..e9a862e45a 100644 --- a/cpp/include/raft/lap/lap.cuh +++ b/cpp/include/raft/lap/lap.cuh @@ -31,6 +31,9 @@ #include #include +#include +#include + #include "detail/d_structs.h" #include "detail/lap_functions.cuh" diff --git a/cpp/include/raft/lap/lap.hpp b/cpp/include/raft/lap/lap.hpp index 2a4f10f000..a9f205932c 100644 --- a/cpp/include/raft/lap/lap.hpp +++ b/cpp/include/raft/lap/lap.hpp @@ -36,6 +36,9 @@ #include #include +#include +#include + #include "detail/d_structs.h" #include "detail/lap_functions.cuh" diff --git a/cpp/include/raft/linalg/detail/add.cuh b/cpp/include/raft/linalg/detail/add.cuh index 652ffd2e86..288ac228c9 100644 --- a/cpp/include/raft/linalg/detail/add.cuh +++ b/cpp/include/raft/linalg/detail/add.cuh @@ -22,6 +22,8 @@ #include #include +#include + namespace raft { namespace linalg { namespace detail { diff --git a/cpp/include/raft/linalg/detail/eltwise.cuh b/cpp/include/raft/linalg/detail/eltwise.cuh index 6d728c8b0f..019f86a779 100644 --- a/cpp/include/raft/linalg/detail/eltwise.cuh +++ b/cpp/include/raft/linalg/detail/eltwise.cuh @@ -21,6 +21,8 @@ #include #include +#include + namespace raft { namespace linalg { namespace detail { diff --git a/cpp/include/raft/matrix/detail/matrix.cuh b/cpp/include/raft/matrix/detail/matrix.cuh index 3fa602d865..3683132161 100644 --- a/cpp/include/raft/matrix/detail/matrix.cuh +++ b/cpp/include/raft/matrix/detail/matrix.cuh @@ -22,6 +22,7 @@ #include #include +#include #include #include diff --git a/cpp/include/raft/sparse/distance/detail/coo_spmv_strategies/coo_mask_row_iterators.cuh b/cpp/include/raft/sparse/distance/detail/coo_spmv_strategies/coo_mask_row_iterators.cuh index da51767307..59dbee5b34 100644 --- a/cpp/include/raft/sparse/distance/detail/coo_spmv_strategies/coo_mask_row_iterators.cuh +++ b/cpp/include/raft/sparse/distance/detail/coo_spmv_strategies/coo_mask_row_iterators.cuh @@ -21,6 +21,9 @@ #include +#include +#include + namespace raft { namespace sparse { namespace distance { diff --git a/cpp/include/raft/sparse/distance/detail/coo_spmv_strategies/hash_strategy.cuh b/cpp/include/raft/sparse/distance/detail/coo_spmv_strategies/hash_strategy.cuh index 4f8637b425..a228a3e4cd 100644 --- a/cpp/include/raft/sparse/distance/detail/coo_spmv_strategies/hash_strategy.cuh +++ b/cpp/include/raft/sparse/distance/detail/coo_spmv_strategies/hash_strategy.cuh @@ -20,6 +20,9 @@ #include +#include +#include + // this is needed by cuco as key, value must be bitwise comparable. // compilers don't declare float/double as bitwise comparable // but that is too strict diff --git a/cpp/include/raft/sparse/distance/detail/l2_distance.cuh b/cpp/include/raft/sparse/distance/detail/l2_distance.cuh index 468689848b..234b08e933 100644 --- a/cpp/include/raft/sparse/distance/detail/l2_distance.cuh +++ b/cpp/include/raft/sparse/distance/detail/l2_distance.cuh @@ -31,6 +31,9 @@ #include +#include +#include + #include namespace raft { diff --git a/cpp/include/raft/sparse/hierarchy/detail/agglomerative.cuh b/cpp/include/raft/sparse/hierarchy/detail/agglomerative.cuh index c89f5a370a..c8a1eb8304 100644 --- a/cpp/include/raft/sparse/hierarchy/detail/agglomerative.cuh +++ b/cpp/include/raft/sparse/hierarchy/detail/agglomerative.cuh @@ -24,7 +24,14 @@ #include #include +#include +#include +#include +#include +#include +#include #include +#include #include diff --git a/cpp/include/raft/sparse/hierarchy/detail/connectivities.cuh b/cpp/include/raft/sparse/hierarchy/detail/connectivities.cuh index 9d4126f8fd..f56366f21f 100644 --- a/cpp/include/raft/sparse/hierarchy/detail/connectivities.cuh +++ b/cpp/include/raft/sparse/hierarchy/detail/connectivities.cuh @@ -29,6 +29,10 @@ #include #include +#include +#include +#include + #include namespace raft { diff --git a/cpp/include/raft/sparse/mst/detail/mst_solver_inl.cuh b/cpp/include/raft/sparse/mst/detail/mst_solver_inl.cuh index 0482b1c50f..cd0339f628 100644 --- a/cpp/include/raft/sparse/mst/detail/mst_solver_inl.cuh +++ b/cpp/include/raft/sparse/mst/detail/mst_solver_inl.cuh @@ -26,12 +26,20 @@ #include #include +#include #include #include +#include +#include #include +#include #include +#include #include #include +#include +#include +#include namespace raft { namespace mst { diff --git a/cpp/include/raft/sparse/op/detail/filter.cuh b/cpp/include/raft/sparse/op/detail/filter.cuh index 4e4e76946c..ca0ffe8180 100644 --- a/cpp/include/raft/sparse/op/detail/filter.cuh +++ b/cpp/include/raft/sparse/op/detail/filter.cuh @@ -25,6 +25,7 @@ #include #include +#include #include #include diff --git a/cpp/include/raft/sparse/op/detail/sort.h b/cpp/include/raft/sparse/op/detail/sort.h index a8b8161716..17dbf6a70d 100644 --- a/cpp/include/raft/sparse/op/detail/sort.h +++ b/cpp/include/raft/sparse/op/detail/sort.h @@ -24,7 +24,10 @@ #include #include +#include #include +#include +#include #include diff --git a/cpp/include/raft/sparse/selection/detail/connect_components.cuh b/cpp/include/raft/sparse/selection/detail/connect_components.cuh index 9cfa2bbd44..87123ee673 100644 --- a/cpp/include/raft/sparse/selection/detail/connect_components.cuh +++ b/cpp/include/raft/sparse/selection/detail/connect_components.cuh @@ -28,8 +28,14 @@ #include #include +#include #include +#include +#include +#include #include +#include +#include #include diff --git a/cpp/include/raft/spatial/knn/detail/ball_cover.cuh b/cpp/include/raft/spatial/knn/detail/ball_cover.cuh index cfb428a7e0..2f7c76a11d 100644 --- a/cpp/include/raft/spatial/knn/detail/ball_cover.cuh +++ b/cpp/include/raft/spatial/knn/detail/ball_cover.cuh @@ -42,10 +42,15 @@ #include #include +#include +#include #include +#include +#include #include #include #include +#include namespace raft { namespace spatial { diff --git a/cpp/include/raft/spatial/knn/detail/ball_cover/common.cuh b/cpp/include/raft/spatial/knn/detail/ball_cover/common.cuh index a6656a3b67..d32475e192 100644 --- a/cpp/include/raft/spatial/knn/detail/ball_cover/common.cuh +++ b/cpp/include/raft/spatial/knn/detail/ball_cover/common.cuh @@ -19,6 +19,7 @@ #include "../haversine_distance.cuh" #include #include +#include namespace raft { namespace spatial { diff --git a/cpp/include/raft/spatial/knn/detail/ball_cover/registers.cuh b/cpp/include/raft/spatial/knn/detail/ball_cover/registers.cuh index 07608f1688..32f55c7931 100644 --- a/cpp/include/raft/spatial/knn/detail/ball_cover/registers.cuh +++ b/cpp/include/raft/spatial/knn/detail/ball_cover/registers.cuh @@ -32,6 +32,8 @@ #include #include +#include + namespace raft { namespace spatial { namespace knn { diff --git a/cpp/include/raft/spectral/detail/matrix_wrappers.hpp b/cpp/include/raft/spectral/detail/matrix_wrappers.hpp index 716260abd5..7fcb912886 100644 --- a/cpp/include/raft/spectral/detail/matrix_wrappers.hpp +++ b/cpp/include/raft/spectral/detail/matrix_wrappers.hpp @@ -21,8 +21,10 @@ #include #include +#include #include #include +#include #include diff --git a/cpp/include/raft/spectral/detail/spectral_util.cuh b/cpp/include/raft/spectral/detail/spectral_util.cuh index 08ae9b856a..8fa096b26b 100644 --- a/cpp/include/raft/spectral/detail/spectral_util.cuh +++ b/cpp/include/raft/spectral/detail/spectral_util.cuh @@ -21,9 +21,15 @@ #include #include +#include #include +#include +#include +#include +#include #include #include +#include #include diff --git a/cpp/include/raft/stats/detail/adjusted_rand_index.cuh b/cpp/include/raft/stats/detail/adjusted_rand_index.cuh index 6b97c49864..ae33b9d1ac 100644 --- a/cpp/include/raft/stats/detail/adjusted_rand_index.cuh +++ b/cpp/include/raft/stats/detail/adjusted_rand_index.cuh @@ -33,6 +33,10 @@ #include #include +#include +#include +#include + namespace raft { namespace stats { namespace detail { diff --git a/cpp/include/raft/stats/detail/batched/silhouette_score.cuh b/cpp/include/raft/stats/detail/batched/silhouette_score.cuh index d709c7472a..2f65d873b8 100644 --- a/cpp/include/raft/stats/detail/batched/silhouette_score.cuh +++ b/cpp/include/raft/stats/detail/batched/silhouette_score.cuh @@ -22,6 +22,8 @@ #include #include #include +#include +#include namespace raft { namespace stats { diff --git a/cpp/include/raft/stats/detail/contingencyMatrix.cuh b/cpp/include/raft/stats/detail/contingencyMatrix.cuh index 6318e241bf..86d56a3d98 100644 --- a/cpp/include/raft/stats/detail/contingencyMatrix.cuh +++ b/cpp/include/raft/stats/detail/contingencyMatrix.cuh @@ -20,6 +20,8 @@ #include #include +#include +#include #include #include diff --git a/cpp/include/raft/stats/detail/scores.cuh b/cpp/include/raft/stats/detail/scores.cuh index 0c345cbb21..85fd8290b3 100644 --- a/cpp/include/raft/stats/detail/scores.cuh +++ b/cpp/include/raft/stats/detail/scores.cuh @@ -26,7 +26,9 @@ #include #include #include +#include #include +#include #include #define N_THREADS 512 diff --git a/cpp/test/linalg/reduce.cuh b/cpp/test/linalg/reduce.cuh index 16f261cfc2..130f10b1cc 100644 --- a/cpp/test/linalg/reduce.cuh +++ b/cpp/test/linalg/reduce.cuh @@ -23,6 +23,7 @@ #include #include +#include namespace raft { namespace linalg { diff --git a/cpp/test/matrix/matrix.cu b/cpp/test/matrix/matrix.cu index 1b6ac57fc4..654043ba41 100644 --- a/cpp/test/matrix/matrix.cu +++ b/cpp/test/matrix/matrix.cu @@ -21,6 +21,10 @@ #include #include +#include +#include +#include + namespace raft { namespace matrix { diff --git a/cpp/test/mdarray.cu b/cpp/test/mdarray.cu index 101127f5d6..987f2dcf2e 100644 --- a/cpp/test/mdarray.cu +++ b/cpp/test/mdarray.cu @@ -23,8 +23,10 @@ #include #include #include +#include #include #include +#include namespace { namespace stdex = std::experimental; diff --git a/cpp/test/mst.cu b/cpp/test/mst.cu index d47b70f7be..610bf15121 100644 --- a/cpp/test/mst.cu +++ b/cpp/test/mst.cu @@ -32,6 +32,10 @@ #include +#include +#include +#include + #include #include diff --git a/cpp/test/random/make_regression.cu b/cpp/test/random/make_regression.cu index 72c7f64cd0..9ee5b0cc21 100644 --- a/cpp/test/random/make_regression.cu +++ b/cpp/test/random/make_regression.cu @@ -16,6 +16,7 @@ #include #include +#include #include #include "../test_utils.h" diff --git a/cpp/test/span.cu b/cpp/test/span.cu index abecfc677c..6667db4b7c 100644 --- a/cpp/test/span.cu +++ b/cpp/test/span.cu @@ -19,8 +19,13 @@ #include #include #include +#include #include +#include +#include #include +#include +#include namespace raft { struct TestStatus { diff --git a/cpp/test/spatial/ball_cover.cu b/cpp/test/spatial/ball_cover.cu index 8a4c57b4d2..f5c218e79f 100644 --- a/cpp/test/spatial/ball_cover.cu +++ b/cpp/test/spatial/ball_cover.cu @@ -27,6 +27,8 @@ #include #include +#include +#include #include #include