Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 756 Bytes

move_to_managed.rst

File metadata and controls

18 lines (13 loc) · 756 Bytes

Moving Host Data to Managed Memory

When using a system with NVIDIA GPUs, you may realize that some host data should be moved to unified memory in order to make it accessible by the GPU. You can do this with the umpire::ResourceManager::move operation:

../../../examples/cookbook/recipe_move_to_managed.cpp

The move operation will copy the data from host memory to unified memory, allocated using the provided um_allocator. The original allocation in host memory will be deallocated. The complete example is included below:

../../../examples/cookbook/recipe_move_to_managed.cpp