Skip to content

Commit

Permalink
Merge branch 'fea-explicit-initial-pool-size' into fea-host-pinned-mr
Browse files Browse the repository at this point in the history
  • Loading branch information
harrism committed Jan 9, 2024
2 parents b6edcd1 + 782ff55 commit 4ef844a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions include/rmm/cuda_device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,19 @@ inline std::pair<std::size_t, std::size_t> available_device_memory()
return {free, total};
}

// TODO: temporary alias for backward compatibility. Remove once dependent libraries like cuGraph
// and cuDF are fixed to not use the old `rmm::defail::available_device_memory` function.
namespace detail {

/**
* @brief Returns the available and total device memory in bytes for the current device
*
* @deprecated Use rmm::available_device_memory instead.
*
* @return The available and total device memory in bytes for the current device as a std::pair.
*/
[[deprecated("Use `rmm::available_device_memory` instead.")]] //
const auto available_device_memory = rmm::available_device_memory;
}

} // namespace detail

/**
* @brief Returns the approximate specified percent of free device memory on the current CUDA
Expand Down

0 comments on commit 4ef844a

Please sign in to comment.