Skip to content

Commit

Permalink
Avoid unused parameter warnings in do_get_mem_info (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkallen authored Sep 28, 2022
1 parent e1a44e3 commit d8c18e6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/rmm/mr/device/arena_memory_resource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ class arena_memory_resource final : public device_memory_resource {
* @param stream to execute on.
* @return std::pair containing free_size and total_size of memory.
*/
std::pair<std::size_t, std::size_t> do_get_mem_info(cuda_stream_view stream) const override
std::pair<std::size_t, std::size_t> do_get_mem_info(cuda_stream_view) const override
{
return std::make_pair(0, 0);
}
Expand Down
3 changes: 1 addition & 2 deletions include/rmm/mr/device/binning_memory_resource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ class binning_memory_resource final : public device_memory_resource {
* @param stream the stream being executed on
* @return std::pair with available and free memory for resource
*/
[[nodiscard]] std::pair<std::size_t, std::size_t> do_get_mem_info(
cuda_stream_view stream) const override
[[nodiscard]] std::pair<std::size_t, std::size_t> do_get_mem_info(cuda_stream_view) const override
{
return std::make_pair(0, 0);
}
Expand Down
3 changes: 1 addition & 2 deletions include/rmm/mr/device/fixed_size_memory_resource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ class fixed_size_memory_resource
* @param stream the stream being executed on
* @return std::pair with available and free memory for resource
*/
[[nodiscard]] std::pair<std::size_t, std::size_t> do_get_mem_info(
cuda_stream_view stream) const override
[[nodiscard]] std::pair<std::size_t, std::size_t> do_get_mem_info(cuda_stream_view) const override
{
return std::make_pair(0, 0);
}
Expand Down
3 changes: 1 addition & 2 deletions include/rmm/mr/device/limiting_resource_adaptor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ class limiting_resource_adaptor final : public device_memory_resource {
* @param stream Stream on which to get the mem info.
* @return std::pair contaiing free_size and total_size of memory
*/
[[nodiscard]] std::pair<std::size_t, std::size_t> do_get_mem_info(
cuda_stream_view stream) const override
[[nodiscard]] std::pair<std::size_t, std::size_t> do_get_mem_info(cuda_stream_view) const override
{
return {allocation_limit_ - allocated_bytes_, allocation_limit_};
}
Expand Down
3 changes: 1 addition & 2 deletions include/rmm/mr/device/managed_memory_resource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ class managed_memory_resource final : public device_memory_resource {
* @param stream to execute on
* @return std::pair contaiing free_size and total_size of memory
*/
[[nodiscard]] std::pair<std::size_t, std::size_t> do_get_mem_info(
cuda_stream_view stream) const override
[[nodiscard]] std::pair<std::size_t, std::size_t> do_get_mem_info(cuda_stream_view) const override
{
std::size_t free_size{};
std::size_t total_size{};
Expand Down

0 comments on commit d8c18e6

Please sign in to comment.