Skip to content

Commit

Permalink
Add missing includes of rmm/mr/device/per_device_resource.hpp (#5369)
Browse files Browse the repository at this point in the history
Some files use `rmm::mr::get_current_device_resource()` but not do not include `rmm/mr/device/per_device_resource.hpp` . This PR fixes that.

The missing include was surfaced by #5363. 

This PR is necessary to prevent breakage when rapidsai/raft#1415 is merged.

Authors:
  - Allard Hendriksen (https://github.com/ahendriksen)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: #5369
  • Loading branch information
ahendriksen authored Apr 18, 2023
1 parent e573c72 commit ab0e03b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions cpp/bench/common/ml_benchmark.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <cuml/common/utils.hpp>
#include <memory>
#include <raft/util/cudart_utils.hpp>
#include <rmm/mr/device/per_device_resource.hpp>
#include <sstream>
#include <string>
#include <vector>
Expand Down
3 changes: 2 additions & 1 deletion cpp/examples/symreg/symreg_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <raft/util/cudart_utils.hpp>
#include <rmm/device_scalar.hpp>
#include <rmm/device_uvector.hpp>
#include <rmm/mr/device/per_device_resource.hpp>

// Namespace alias
namespace cg = cuml::genetic;
Expand Down Expand Up @@ -340,4 +341,4 @@ int main(int argc, char* argv[])
CUDA_RT_CALL(cudaEventDestroy(start));
CUDA_RT_CALL(cudaEventDestroy(stop));
return 0;
}
}
1 change: 1 addition & 0 deletions cpp/include/cuml/tsa/arima_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <algorithm>

#include <raft/util/cudart_utils.hpp>
#include <rmm/mr/device/per_device_resource.hpp>
#include <thrust/execution_policy.h>
#include <thrust/for_each.h>
#include <thrust/iterator/counting_iterator.h>
Expand Down
1 change: 1 addition & 0 deletions cpp/src/genetic/genetic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

#include <device_launch_parameters.h>
#include <rmm/device_uvector.hpp>
#include <rmm/mr/device/per_device_resource.hpp>

namespace cuml {
namespace genetic {
Expand Down
1 change: 1 addition & 0 deletions cpp/src/svm/linear.cu
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <raft/matrix/matrix.cuh>
#include <raft/util/cuda_utils.cuh>
#include <rmm/device_uvector.hpp>
#include <rmm/mr/device/per_device_resource.hpp>
#include <thrust/copy.h>
#include <thrust/device_ptr.h>
#include <thrust/execution_policy.h>
Expand Down
2 changes: 2 additions & 0 deletions cpp/test/mg/knn.cu
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

#include <raft/util/cuda_utils.cuh>

#include <rmm/mr/device/per_device_resource.hpp>

namespace ML {
namespace KNN {
namespace opg {
Expand Down
1 change: 1 addition & 0 deletions cpp/test/sg/genetic/evolution_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <raft/core/handle.hpp>
#include <raft/util/cudart_utils.hpp>
#include <rmm/device_uvector.hpp>
#include <rmm/mr/device/per_device_resource.hpp>
#include <test_utils.h>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions cpp/test/sg/genetic/program_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <raft/core/handle.hpp>
#include <raft/util/cudart_utils.hpp>
#include <rmm/device_uvector.hpp>
#include <rmm/mr/device/per_device_resource.hpp>
#include <test_utils.h>
#include <vector>

Expand Down

0 comments on commit ab0e03b

Please sign in to comment.