Skip to content

Commit

Permalink
changing func name
Browse files Browse the repository at this point in the history
  • Loading branch information
kab163 committed Jan 23, 2025
1 parent 1008e53 commit aeb1243
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/tutorial/tut_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int main(int, char**)
std::cout << "Created an add-on allocator of size " << addon_allocator.getCurrentSize() << " using the "
<< allocator.getName() << " allocator." << std::endl;

std::cout << "The total amount of memory used was: " << umpire::get_total_memory_allocated() << std::endl;
std::cout << "The total amount of memory used was: " << umpire::get_total_bytes_allocated() << std::endl;

// _sphinx_tag_tut_deallocate_start
allocator.deallocate(data);
Expand Down
2 changes: 1 addition & 1 deletion src/umpire/Umpire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void mark_event(const std::string& event)
[&](auto& e) { e.name("event").category(event::category::metadata).arg("name", event).tag("replay", "true"); });
}

std::size_t get_total_memory_allocated()
std::size_t get_total_bytes_allocated()
{
auto& rm = umpire::ResourceManager::getInstance();
std::size_t total_memory{0};
Expand Down
2 changes: 1 addition & 1 deletion src/umpire/Umpire.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void mark_event(const std::string& event);
/*!
* \brief Get the total umpire memory usage in bytes across all memory resources
*/
std::size_t get_total_memory_allocated();
std::size_t get_total_bytes_allocated();

/*!
* \brief Get memory usage of device device_id, using appropriate underlying
Expand Down

0 comments on commit aeb1243

Please sign in to comment.