mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 06:45:35 +00:00
criu/plugin: Read and write BO contents in parallel
Implement multi-threaded code to read and write contents of each GPU VRAM BOs in parallel in order to speed up dumping process when using multiple GPUs. Signed-off-by: David Yat Sin <david.yatsin@amd.com> Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
This commit is contained in:
committed by
Andrei Vagin
parent
ba9c62df24
commit
a218fe0baa
@@ -151,6 +151,17 @@ struct tp_node *sys_get_node_by_render_minor(const struct tp_system *sys, const
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct tp_node *sys_get_node_by_index(const struct tp_system *sys, uint32_t index)
|
||||
{
|
||||
struct tp_node *node;
|
||||
|
||||
list_for_each_entry(node, &sys->nodes, listm_system) {
|
||||
if (NODE_IS_GPU(node) && index-- == 0)
|
||||
return node;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct tp_node *sys_get_node_by_gpu_id(const struct tp_system *sys, const uint32_t gpu_id)
|
||||
{
|
||||
struct tp_node *node;
|
||||
|
Reference in New Issue
Block a user