Skip to content

Commit

Permalink
fix unguarded use of umpire (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush authored Nov 6, 2023
1 parent 11b731d commit b3e4f54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ DeviceMemory::allocate(size_t bytes)
"Cannot use DeviceMemory::alloc().");
#endif

#if defined(ASCENT_DEVICE_ENABLED)
#if defined(ASCENT_DEVICE_ENABLED) && defined(ASCENT_UMPIRE_ENABLED)
m_total_bytes_alloced += bytes;
m_alloc_count++;
auto &rm = umpire::ResourceManager::getInstance ();
Expand Down Expand Up @@ -334,7 +334,7 @@ DeviceMemory::deallocate(void *data_ptr)
"Cannot use DeviceMemory::free().");
#endif

#if defined(ASCENT_DEVICE_ENABLED)
#if defined(ASCENT_DEVICE_ENABLED) && defined(ASCENT_UMPIRE_ENABLED)
m_free_count++;
auto &rm = umpire::ResourceManager::getInstance ();
const int allocator_id = AllocationManager::device_allocator_id();
Expand Down

0 comments on commit b3e4f54

Please sign in to comment.