Skip to content

Commit 0755757

Browse files
Merge pull request #158 from LLNL/task/update-umpire-v4.1.2
Update Umpire to 4.1.2 and fix bug in deepCopyRecord
2 parents 8656be1 + b502d82 commit 0755757

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/chai/ArrayManager.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,11 @@ PointerRecord* ArrayManager::deepCopyRecord(PointerRecord const* record)
445445
copy->m_user_callback = [] (const PointerRecord*, Action, ExecutionSpace) {};
446446

447447
const ExecutionSpace last_space = record->m_last_space;
448-
449448
copy->m_last_space = last_space;
449+
for (int space = CPU; space < NUM_EXECUTION_SPACES; ++space) {
450+
copy->m_allocators[space] = record->m_allocators[space];
451+
}
452+
450453
allocate(copy, last_space);
451454

452455
for (int space = CPU; space < NUM_EXECUTION_SPACES; ++space) {

src/tpl/umpire

Submodule umpire updated 59 files

0 commit comments

Comments
 (0)