Skip to content

Commit

Permalink
Add detail::available_device_memory back as an alias of rmm::availabl…
Browse files Browse the repository at this point in the history
…e_device_memory
  • Loading branch information
harrism committed Jan 9, 2024
1 parent 5d66f40 commit fae5b73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/rmm/cuda_device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ 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 {
const auto available_device_memory = rmm::available_device_memory;
}

/**
* @brief Returns the approximate specified percent of free device memory on the current CUDA
* device, aligned to the nearest CUDA allocation size.
Expand Down

0 comments on commit fae5b73

Please sign in to comment.