Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated raft headers #5134

Merged
merged 10 commits into from
Jan 31, 2023
2 changes: 1 addition & 1 deletion cpp/bench/common/ml_benchmark.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <cuml/common/logger.hpp>
#include <cuml/common/utils.hpp>
#include <memory>
#include <raft/core/cudart_utils.hpp>
#include <raft/util/cudart_utils.hpp>
#include <sstream>
#include <string>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion cpp/bench/sg/arima_loglikelihood.cu
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <rmm/device_uvector.hpp>

#include "benchmark.cuh"
#include <raft/core/cudart_utils.hpp>
#include <raft/util/cudart_utils.hpp>

namespace ML {
namespace Bench {
Expand Down
2 changes: 1 addition & 1 deletion cpp/bench/sg/benchmark.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include <benchmark/benchmark.h>
#include <cuda_runtime.h>
#include <cuml/common/logger.hpp>
#include <raft/core/cudart_utils.hpp>
#include <raft/core/handle.hpp>
#include <raft/util/cudart_utils.hpp>

namespace ML {
namespace Bench {
Expand Down
4 changes: 2 additions & 2 deletions cpp/bench/sg/dataset.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
#include <cuml/datasets/make_blobs.hpp>
#include <fstream>
#include <iostream>
#include <raft/core/cudart_utils.hpp>
#include <raft/core/handle.hpp>
#include <raft/cuda_utils.cuh>
#include <raft/linalg/transpose.cuh>
#include <raft/linalg/unary_op.cuh>
#include <raft/random/make_regression.cuh>
#include <raft/util/cuda_utils.cuh>
#include <raft/util/cudart_utils.hpp>
#include <sstream>
#include <string>
#include <vector>
Expand Down
4 changes: 2 additions & 2 deletions cpp/bench/sg/dataset_ts.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

#pragma once

#include <raft/core/cudart_utils.hpp>
#include <raft/core/handle.hpp>
#include <raft/cuda_utils.cuh>
#include <raft/random/rng.cuh>
#include <raft/util/cuda_utils.cuh>
#include <raft/util/cudart_utils.hpp>

namespace ML {
namespace Bench {
Expand Down
2 changes: 1 addition & 1 deletion cpp/bench/sg/umap.cu
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "benchmark.cuh"
#include <cuml/manifold/umap.hpp>
#include <cuml/manifold/umapparams.h>
#include <raft/cuda_utils.cuh>
#include <raft/util/cuda_utils.cuh>
#include <utility>

namespace ML {
Expand Down
2 changes: 1 addition & 1 deletion cpp/examples/symreg/symreg_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <cuml/genetic/genetic.h>
#include <cuml/genetic/program.h>

#include <raft/core/cudart_utils.hpp>
#include <raft/util/cudart_utils.hpp>
#include <rmm/device_scalar.hpp>
#include <rmm/device_uvector.hpp>

Expand Down
2 changes: 1 addition & 1 deletion cpp/include/cuml/common/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <cuda_runtime.h>
#include <execinfo.h>
#include <raft/core/cudart_utils.hpp>
#include <raft/util/cudart_utils.hpp>

#include <cstdio>

Expand Down
2 changes: 1 addition & 1 deletion cpp/include/cuml/fil/multi_sum.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
/** @file multi_sum.cuh */
#pragma once
#include <raft/cuda_utils.cuh>
#include <raft/util/cuda_utils.cuh>
/**
template parameters: data [T]ype, reduction [R]adix
function parameters:
Expand Down
2 changes: 1 addition & 1 deletion cpp/include/cuml/neighbors/knn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <raft/distance/distance_types.hpp>
#include <raft/spatial/knn/ann_common.h>
#include <raft/spatial/knn/ball_cover_common.h>
#include <raft/spatial/knn/ball_cover_types.hpp>

namespace raft {
class handle_t;
Expand Down
2 changes: 1 addition & 1 deletion cpp/include/cuml/tsa/arima_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <algorithm>

#include <raft/core/cudart_utils.hpp>
#include <raft/util/cudart_utils.hpp>
#include <thrust/execution_policy.h>
#include <thrust/for_each.h>
#include <thrust/iterator/counting_iterator.h>
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arima/batched_arima.cu
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
#include <raft/core/handle.hpp>
#include <raft/core/nvtx.hpp>
#include <raft/linalg/matrix_vector_op.cuh>
#include <raft/stats/common.hpp>
#include <raft/stats/information_criterion.cuh>
#include <raft/stats/stats_types.hpp>
#include <raft/util/cuda_utils.cuh>
#include <raft/util/cudart_utils.hpp>
#include <rmm/device_uvector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/common/cumlHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "cumlHandle.hpp"

#include <cuml/common/logger.hpp>
#include <raft/core/cudart_utils.hpp>
#include <raft/util/cudart_utils.hpp>
// #TODO: Replace with public header when ready
#include <raft/linalg/detail/cublas_wrappers.hpp>
// #TODO: Replace with public header when ready
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/common/cuml_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <cuml/common/utils.hpp>
#include <cuml/cuml_api.h>

#include <raft/core/cudart_utils.hpp>
#include <raft/util/cudart_utils.hpp>

#include <cstddef>
#include <functional>
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/dbscan/dbscan.cu
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <cuml/cluster/dbscan.hpp>

#include "dbscan.cuh"
#include <raft/core/cudart_utils.hpp>
#include <raft/util/cudart_utils.hpp>

namespace ML {
namespace Dbscan {
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/dbscan/runner.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include "mergelabels/tree_reduction.cuh"
#include "vertexdeg/runner.cuh"
#include <common/nvtx.hpp>
#include <raft/core/cudart_utils.hpp>
#include <raft/core/nvtx.hpp>
#include <raft/label/classlabels.cuh>
#include <raft/sparse/csr.hpp>
#include <raft/util/cudart_utils.hpp>

#include <cuml/common/logger.hpp>

Expand Down
6 changes: 3 additions & 3 deletions cpp/src/dbscan/vertexdeg/precomputed.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
#include <cub/cub.cuh>
#include <cuda_runtime.h>
#include <math.h>
#include <raft/core/cudart_utils.hpp>
#include <raft/cuda_utils.cuh>
#include <raft/device_atomics.cuh>
#include <raft/linalg/coalesced_reduction.cuh>
#include <raft/linalg/reduce.cuh>
#include <raft/util/cuda_utils.cuh>
#include <raft/util/cudart_utils.hpp>
#include <raft/util/device_atomics.cuh>

#include "pack.h"

Expand Down
2 changes: 1 addition & 1 deletion cpp/src/decisiontree/batched-levelalgo/bins.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/
#pragma once
#include <raft/cuda_utils.cuh>
#include <raft/util/cuda_utils.cuh>

namespace ML {
namespace DT {
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/decisiontree/batched-levelalgo/builder.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <common/Timer.h>
#include <cuml/common/pinned_host_vector.hpp>
#include <cuml/tree/flatnode.h>
#include <raft/cuda_utils.cuh>
#include <raft/util/cuda_utils.cuh>

#include <deque>
#include <raft/core/nvtx.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <common/grid_sync.cuh>
#include <cub/cub.cuh>
#include <raft/cuda_utils.cuh>
#include <raft/util/cuda_utils.cuh>
#include <thrust/binary_search.h>

#include "builder_kernels.cuh"
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/decisiontree/batched-levelalgo/quantiles.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <iostream>
#include <memory>
#include <raft/core/handle.hpp>
#include <raft/cuda_utils.cuh>
#include <raft/util/cuda_utils.cuh>
#include <rmm/device_uvector.hpp>
#include <rmm/exec_policy.hpp>
#include <thrust/fill.h>
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/decisiontree/batched-levelalgo/split.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#pragma once

#include <raft/cuda_utils.cuh>
#include <raft/linalg/unary_op.cuh>
#include <raft/util/cuda_utils.cuh>

namespace ML {
namespace DT {
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/decisiontree/decisiontree.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include <cuml/common/logger.hpp>
#include <cuml/tree/flatnode.h>

#include <raft/core/cudart_utils.hpp>
#include <raft/core/handle.hpp>
#include <raft/util/cudart_utils.hpp>

#include "treelite_util.h"
#include <treelite/c_api.h>
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/explainer/kernel_shap.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

#include <raft/core/cudart_utils.hpp>
#include <raft/core/handle.hpp>
#include <raft/util/cudart_utils.hpp>

#include <cuml/explainer/kernel_shap.hpp>

Expand Down
2 changes: 1 addition & 1 deletion cpp/src/explainer/permutation_shap.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

#include <raft/core/cudart_utils.hpp>
#include <raft/core/handle.hpp>
#include <raft/util/cudart_utils.hpp>

#include <cuml/explainer/permutation_shap.hpp>

Expand Down
2 changes: 1 addition & 1 deletion cpp/src/fil/common.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <string>

#include <cuml/fil/fil.h>
#include <raft/cuda_utils.cuh>
#include <raft/util/cuda_utils.cuh>

#include "internal.cuh"

Expand Down
2 changes: 1 addition & 1 deletion cpp/src/fil/fil.cu
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ creation and prediction (the main inference kernel is defined in infer.cu). */

#include <cuml/fil/fil.h> // for algo_t,

#include <raft/core/cudart_utils.hpp> // for RAFT_CUDA_TRY, cudaStream_t,
#include <raft/core/error.hpp> // for ASSERT
#include <raft/core/handle.hpp> // for handle_t
#include <raft/util/cudart_utils.hpp> // for RAFT_CUDA_TRY, cudaStream_t,
#include <rmm/device_uvector.hpp> // for device_uvector
#include <thrust/host_vector.h> // for host_vector

Expand Down
4 changes: 2 additions & 2 deletions cpp/src/fil/infer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

#include <cuml/fil/multi_sum.cuh>

#include <raft/core/cudart_utils.hpp>
#include <raft/cuda_utils.cuh>
#include <raft/util/cuda_utils.cuh>
#include <raft/util/cudart_utils.hpp>

#include <thrust/functional.h>

Expand Down
2 changes: 1 addition & 1 deletion cpp/src/fil/internal.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <iostream>
#include <numeric>
#include <raft/core/error.hpp>
#include <raft/cuda_utils.cuh>
#include <raft/util/cuda_utils.cuh>
#include <rmm/device_uvector.hpp>
#include <treelite/c_api.h>
#include <treelite/tree.h>
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/fil/treelite_import.cu
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
#include <cuml/fil/fil.h> // for algo_t, from_treelite, storage_type_repr, storage_type_t, treelite_params_t
#include <cuml/fil/fnv_hash.h> // for fowler_noll_vo_fingerprint64_32

#include <raft/core/cudart_utils.hpp> // for RAFT_CUDA_TRY
#include <raft/core/error.hpp> // for ASSERT
#include <raft/core/handle.hpp> // for handle_t
#include <raft/util/cudart_utils.hpp> // for RAFT_CUDA_TRY

#include <treelite/base.h> // for Operator, SplitFeatureType, kGE, kGT, kLE, kLT, kNumerical
#include <treelite/c_api.h> // for ModelHandle
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/genetic/fitness.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* limitations under the License.
*/

#include <raft/cuda_utils.cuh>
#include <raft/linalg/eltwise.cuh>
#include <raft/linalg/matrix_vector_op.cuh>
#include <raft/linalg/strided_reduction.cuh>
Expand All @@ -24,6 +23,7 @@
#include <raft/stats/mean_center.cuh>
#include <raft/stats/stddev.cuh>
#include <raft/stats/sum.cuh>
#include <raft/util/cuda_utils.cuh>

#include <rmm/device_scalar.hpp>
#include <rmm/device_uvector.hpp>
Expand All @@ -40,7 +40,7 @@
#include <thrust/sort.h>
#include <thrust/transform.h>

#include <raft/core/cudart_utils.hpp>
#include <raft/util/cudart_utils.hpp>

namespace cuml {
namespace genetic {
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/genetic/node.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#pragma once

#include <cuml/genetic/node.h>
#include <raft/cuda_utils.cuh>
#include <raft/util/cuda_utils.cuh>

namespace cuml {
namespace genetic {
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/genetic/reg_stack.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include <raft/cuda_utils.cuh>
#include <raft/util/cuda_utils.cuh>

#ifndef CUDA_PRAGMA_UNROLL
#ifdef __CUDA_ARCH__
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/glm/qn/glm_linear.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include "glm_base.cuh"
#include "simple_mat.cuh"
#include <raft/cuda_utils.cuh>
#include <raft/linalg/add.cuh>
#include <raft/util/cuda_utils.cuh>

namespace ML {
namespace GLM {
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/glm/qn/glm_logistic.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include "glm_base.cuh"
#include "simple_mat.cuh"
#include <raft/cuda_utils.cuh>
#include <raft/linalg/add.cuh>
#include <raft/util/cuda_utils.cuh>

namespace ML {
namespace GLM {
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/glm/qn/glm_softmax.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include "glm_base.cuh"
#include "simple_mat.cuh"
#include <raft/cuda_utils.cuh>
#include <raft/linalg/add.cuh>
#include <raft/util/cuda_utils.cuh>

namespace ML {
namespace GLM {
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/glm/qn/glm_svm.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include "glm_base.cuh"
#include "simple_mat.cuh"
#include <raft/cuda_utils.cuh>
#include <raft/linalg/add.cuh>
#include <raft/util/cuda_utils.cuh>

namespace ML {
namespace GLM {
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/glm/qn/qn_solvers.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include "qn_util.cuh"
#include "simple_mat.cuh"
#include <cuml/common/logger.hpp>
#include <raft/cuda_utils.cuh>
#include <raft/util/cuda_utils.cuh>
#include <rmm/device_uvector.hpp>

namespace ML {
Expand Down
Loading