Skip to content

Commit

Permalink
changing function name to appease David
Browse files Browse the repository at this point in the history
  • Loading branch information
kab163 committed Jan 23, 2025
1 parent 6010c35 commit e953e95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/umpire/ResourceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ std::vector<std::string> ResourceManager::getResourceNames()
return registry.getResourceNames();
}

std::vector<std::string> ResourceManager::getSharedAllocNames()
std::vector<std::string> ResourceManager::getSharedAllocatorNames()
{
if (m_shared_allocator_names.size() == 0) {
UMPIRE_LOG(Debug, "Called getSharedAllocNames, but there are none. Returning empty vector.");
UMPIRE_LOG(Debug, "Called getSharedAllocatorNames, but there are none. Returning empty vector.");
return std::vector<std::string>(); // Return an empty vector of strings
}

Expand Down
2 changes: 1 addition & 1 deletion src/umpire/ResourceManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class ResourceManager {
*
* \return A vector of strings with the available SHARED allocator names.
*/
std::vector<std::string> getSharedAllocNames();
std::vector<std::string> getSharedAllocatorNames();

/*!
* \brief Set the default Allocator.
Expand Down
2 changes: 1 addition & 1 deletion src/umpire/Umpire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ std::size_t get_total_bytes_allocated()
total_memory += alloc.getActualSize();
}

for (auto s : rm.getSharedAllocNames()) {
for (auto s : rm.getSharedAllocatorNames()) {
umpire::Allocator alloc = rm.getAllocator(s);
total_memory += alloc.getActualSize();
}
Expand Down

0 comments on commit e953e95

Please sign in to comment.