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